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