mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-22 22:59:09 +02:00
Keep the DNS interception hooks installed when the firewall is disabled
This commit is contained in:
@@ -21,9 +21,10 @@ const (
|
||||
)
|
||||
|
||||
// HooksFilter is a minimal packet filter that only handles outbound DNS hooks.
|
||||
// It is installed on the WireGuard interface when the userspace bind is active
|
||||
// but a full firewall filter (Manager) is not needed because a native kernel
|
||||
// firewall (nftables/iptables) handles packet filtering.
|
||||
// It is installed on the interface when the userspace bind is active but a full
|
||||
// filter (Manager) is not: either because a native kernel firewall
|
||||
// (nftables/iptables) handles packet filtering, or because no firewall manager
|
||||
// runs at all.
|
||||
type HooksFilter struct {
|
||||
udpHook atomic.Pointer[common.PacketHook]
|
||||
tcpHook atomic.Pointer[common.PacketHook]
|
||||
|
||||
Reference in New Issue
Block a user