diff options
author | ru <ru@FreeBSD.org> | 2005-03-16 08:47:48 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-03-16 08:47:48 +0000 |
commit | e4eb5675394dced8c40394ac89ef1a31b5919f31 (patch) | |
tree | 2c9abbd03a76b1d12e070ae24a3bc06d84702eca /etc/rc.d/ipfw | |
parent | 64c69bfb4e911016c73b3e9bf14c13c3aa693f12 (diff) | |
download | FreeBSD-src-e4eb5675394dced8c40394ac89ef1a31b5919f31.zip FreeBSD-src-e4eb5675394dced8c40394ac89ef1a31b5919f31.tar.gz |
Start natd(8) before loading firewall rules, to give the
ipdivert.ko module a chance to load.
Diffstat (limited to 'etc/rc.d/ipfw')
-rw-r--r-- | etc/rc.d/ipfw | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc.d/ipfw b/etc/rc.d/ipfw index eda4437..90636c2 100644 --- a/etc/rc.d/ipfw +++ b/etc/rc.d/ipfw @@ -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.' |