Skip to content

Commit

Permalink
firewall: fix rpfilter blocking dhcp offers when no ip was bound yet
Browse files Browse the repository at this point in the history
(cherry picked from commit 05761e9)
  • Loading branch information
bluescreen303 authored and fpletz committed Nov 24, 2017
1 parent 5cf0f37 commit 87c9b01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/services/networking/firewall.nix
Expand Up @@ -125,6 +125,9 @@ let
ip46tables -t raw -N nixos-fw-rpfilter 2> /dev/null || true
ip46tables -t raw -A nixos-fw-rpfilter -m rpfilter ${optionalString (cfg.checkReversePath == "loose") "--loose"} -j RETURN
# Allows this host to act as a DHCP4 client without first having to use APIPA
iptables -t raw -A nixos-fw-rpfilter -p udp --sport 67 --dport 68 -j RETURN
# Allows this host to act as a DHCPv4 server
iptables -t raw -A nixos-fw-rpfilter -s 0.0.0.0 -d 255.255.255.255 -p udp --sport 68 --dport 67 -j RETURN
Expand Down

0 comments on commit 87c9b01

Please sign in to comment.