2000-01-29 13:54:44 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-05-04 17:33:27 +00:00
|
|
|
fwcmd=/sbin/ip6fw
|
2000-01-29 13:54:44 +00:00
|
|
|
|
|
|
|
$fwcmd -f flush
|
|
|
|
|
|
|
|
#
|
|
|
|
# loopback
|
|
|
|
#
|
|
|
|
$fwcmd add 1000 pass all from any to any via lo0
|
|
|
|
|
|
|
|
#
|
|
|
|
# ND
|
|
|
|
#
|
|
|
|
# DAD
|
|
|
|
$fwcmd add 2000 pass ipv6-icmp from ff02::/16 to ::
|
|
|
|
$fwcmd add 2100 pass ipv6-icmp from :: to ff02::/16
|
|
|
|
# RS, RA, NS, NA, redirect...
|
|
|
|
$fwcmd add 2300 pass ipv6-icmp from fe80::/10 to fe80::/10
|
|
|
|
$fwcmd add 2400 pass ipv6-icmp from fe80::/10 to ff02::/16
|
|
|
|
|
|
|
|
$fwcmd add 5000 pass tcp from any to any established
|
|
|
|
|
|
|
|
# RIPng
|
|
|
|
$fwcmd add 6000 pass udp from fe80::/10 521 to ff02::9 521
|
|
|
|
|
|
|
|
$fwcmd add 65000 pass log all from any to any
|