aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Biernacki <kaktus@FreeBSD.org>2020-10-08 11:45:10 +0000
committerPawel Biernacki <kaktus@FreeBSD.org>2020-10-08 11:45:10 +0000
commit9ef917591248e35efea846d0d743b74503387099 (patch)
tree4ad8437775bb23e624e1dac2f4398e01271dccf8
parentc3a38d6c91d5d251dd481bb5bbbbf347f3c54595 (diff)
downloadsrc-9ef917591248e35efea846d0d743b74503387099.tar.gz
src-9ef917591248e35efea846d0d743b74503387099.zip
[pf] /etc/rc.d/pf should REQUIRE routing
When a system with pf_enable="YES" in /etc/rc.conf uses hostnames in /etc/pf.conf, these hostnames cannot be resolved via external nameservers because the default route is not yet set. This results in an empty (all open) ruleset. Since r195026 already put netif back to REQUIRE, this change does not affect the issue that the firewall should rather have been setup before any network traffic can occur. PR: 211928 Submitted by: Robert Schulze Reported by: Robert Schulze Tested by: Mateusz Kwiatkowski No objections from: kp MFC after: 3 days
Notes
Notes: svn path=/head/; revision=366537
-rwxr-xr-xlibexec/rc/rc.d/pf3
1 files changed, 1 insertions, 2 deletions
diff --git a/libexec/rc/rc.d/pf b/libexec/rc/rc.d/pf
index 57de19218fcf..1f7394007667 100755
--- a/libexec/rc/rc.d/pf
+++ b/libexec/rc/rc.d/pf
@@ -4,8 +4,7 @@
#
# PROVIDE: pf
-# REQUIRE: FILESYSTEMS netif pflog pfsync
-# BEFORE: routing
+# REQUIRE: FILESYSTEMS netif pflog pfsync routing
# KEYWORD: nojailvnet
. /etc/rc.subr