Start natd(8) before loading firewall rules, to give the

ipdivert.ko module a chance to load.
This commit is contained in:
Ruslan Ermilov 2005-03-16 08:47:48 +00:00
parent 7f76b06b35
commit 3e1631ce0a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143688

View File

@ -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.'