mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Start natd(8) before loading firewall rules, to give the
ipdivert.ko module a chance to load.
This commit is contained in:
parent
7f76b06b35
commit
3e1631ce0a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143688
@ -35,11 +35,12 @@ ipfw_start()
|
||||
[ -z "${firewall_script}" ] && firewall_script=/etc/rc.firewall
|
||||
|
||||
if [ -r "${firewall_script}" ]; then
|
||||
. "${firewall_script}"
|
||||
echo -n 'Firewall rules loaded, starting divert daemons:'
|
||||
echo -n 'Starting divert daemons:'
|
||||
if [ -f /etc/rc.d/natd ] ; then
|
||||
/etc/rc.d/natd start
|
||||
fi
|
||||
. "${firewall_script}"
|
||||
echo -n 'Firewall rules loaded'
|
||||
elif [ "`ipfw l 65535`" = "65535 deny ip from any to any" ]; then
|
||||
echo 'Warning: kernel has firewall functionality, but' \
|
||||
' firewall rules are not enabled.'
|
||||
|
Loading…
Reference in New Issue
Block a user