diff options
author | mlaier <mlaier@FreeBSD.org> | 2006-05-12 19:17:34 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2006-05-12 19:17:34 +0000 |
commit | 23ea781ace4085a281de5182a8204c5d78bbcb7a (patch) | |
tree | 575ed05e633db17f9a9f7be224bd7e1404bb559d /etc/rc.d | |
parent | 8ee51ef3f4051cfbc08eb92250470c24b71590c2 (diff) | |
download | FreeBSD-src-23ea781ace4085a281de5182a8204c5d78bbcb7a.zip FreeBSD-src-23ea781ace4085a281de5182a8204c5d78bbcb7a.tar.gz |
Move etc/rc.firewall6 to ipfw2+v6, update related rc.d and periodic scripts.
Since ipfw2 now does dual-stack, statistics for IPv6 come from the ipfw
scripts as well.
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/ip6fw | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/ip6fw b/etc/rc.d/ip6fw index 36aa295..6688cbd 100644 --- a/etc/rc.d/ip6fw +++ b/etc/rc.d/ip6fw @@ -20,7 +20,7 @@ ip6fw_prestart() { # Load IPv6 firewall module, if not already loaded if ! ${SYSCTL} net.inet6.ip6.fw.enable > /dev/null 2>&1; then - kldload ip6fw && { + kldload ipfw && { debug 'Kernel IPv6 firewall module loaded.' return 0 } @@ -41,7 +41,7 @@ ip6fw_start() if [ -r "${ipv6_firewall_script}" ]; then . "${ipv6_firewall_script}" echo 'IPv6 Firewall rules loaded.' - elif [ "`ip6fw l 65535`" = "65535 deny ipv6 from any to any" ]; then + elif [ "`ipfw show 65535`" = "65535 deny ip from any to any" ]; then warn 'IPv6 firewall rules have not been loaded. Default' \ ' to DENY all access.' fi @@ -50,7 +50,7 @@ ip6fw_start() # if checkyesno ipv6_firewall_logging; then echo 'IPv6 Firewall logging=YES' - sysctl net.inet6.ip6.fw.verbose=1 >/dev/null + sysctl net.inet.ip.fw.verbose=1 >/dev/null fi # Enable the firewall |