Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FQDNCache ¶
type FQDNCache interface {
GetSetsForRendering(fqdns []firewallv1.FQDNSelector) (result []dns.RenderIPSet)
GetSetsForFQDN(fqdn firewallv1.FQDNSelector) (result []firewallv1.IPSet)
IsInitialized() bool
CacheAddr() string
}
type Nftables ¶ added in v2.6.0
type Nftables struct {
// contains filtered or unexported fields
}
Nftables assembles nftable rules based on k8s entities
func New ¶ added in v2.6.0
func New( firewall *firewallv2.Firewall, cwnps *firewallv1.ClusterwideNetworkPolicyList, svcs *corev1.ServiceList, cache FQDNCache, log logr.Logger, recorder record.EventRecorder, allocation *apiv2.MachineAllocation, ) *Nftables
New creates a new nftables firewall object based on k8s entities
func (*Nftables) Apply ¶ added in v2.6.0
Apply applies the interface addresses through netlink and writes the /etc/nftables/firewall-controller.v4 rules file.
func (*Nftables) ApplyBaseRules ¶ added in v2.6.0
ApplyBaseRules applies the /etc/nftables/rules file (to enable or disable the DNS proxy).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.