14 rcvar=`set_rcvar ipv6_firewall`
15 start_cmd="ip6fw_start"
16 stop_cmd="${SYSCTL_W} net.inet6.ip6.fw.enable=0"
17 required_modules="ipfw"
21 # Specify default rules file if none provided
22 if [ -z "${ipv6_firewall_script}" ]; then
23 ipv6_firewall_script=/etc/rc.firewall6
28 if [ -r "${ipv6_firewall_script}" ]; then
29 /bin/sh "${ipv6_firewall_script}"
30 echo 'IPv6 Firewall rules loaded.'
31 elif [ "`ipfw show 65535`" = "65535 deny ip from any to any" ]; then
32 warn 'IPv6 firewall rules have not been loaded. Default' \
33 ' to DENY all access.'
36 # Enable firewall logging
38 if checkyesno ipv6_firewall_logging; then
39 echo 'IPv6 Firewall logging=YES'
40 sysctl net.inet.ip.fw.verbose=1 >/dev/null
45 ${SYSCTL_W} net.inet6.ip6.fw.enable=1