mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-17 12:19:07 +02:00
Keep the DNS interception hooks installed when the firewall is disabled
This commit is contained in:
@@ -732,6 +732,14 @@ func (e *Engine) Start(netbirdConfig *mgmProto.NetbirdConfig, mgmtURL *url.URL)
|
||||
func (e *Engine) createFirewall() error {
|
||||
if e.config.DisableFirewall {
|
||||
log.Infof("firewall is disabled")
|
||||
|
||||
// The DNS hooks are not firewall rules. Without the filter that carries
|
||||
// them the resolver never receives a query, while the system is still
|
||||
// pointed at it.
|
||||
if err := firewall.InstallDNSHooksFilter(e.wgInterface); err != nil {
|
||||
log.Errorf("failed to install DNS hooks filter, DNS will not work: %v", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user