Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
bsd [2008/11/28 10:21] einherjar |
bsd [2009/05/25 00:35] 127.0.0.1 external edit |
||
---|---|---|---|
Line 4: | Line 4: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
</ | </ | ||
< | < | ||
===== FreeBSD ===== | ===== FreeBSD ===== | ||
+ | |||
+ | |||
Line 46: | Line 49: | ||
ipfw list | ipfw list | ||
+ | |||
+ | **Firewalling IPv6** | ||
+ | Below some rules of implementing firewall in FreeBSD. //Using IPFW (please compile your kernel, if it’s not supported).// | ||
+ | |||
+ | < | ||
+ | # Simple Firewall : | ||
+ | (allow network 2404: | ||
+ | ip6fw add 100 allow all from 2404: | ||
+ | |||
+ | (allow network 2001: | ||
+ | ip6fw add 200 allow all from 2001: | ||
+ | |||
+ | (allow all ipv6 to host 2404: | ||
+ | ip6fw add 300 allow all from :: to 2404: | ||
+ | |||
+ | (deny other all traffic). | ||
+ | ip6fw add 1000 deny all from any to any in via fxp0 | ||
+ | </ | ||
+ | |||
+ | **FreeBSD GRE tunnels** | ||
+ | |||
+ | < | ||
+ | b0x# kldstat | ||
+ | Id Refs Address Size Name | ||
+ | 1 5 0xc0400000 34f898 kernel | ||
+ | 2 14 0xc0750000 56270 acpi.ko | ||
+ | 3 1 0xc0c97000 1c000 ipl.ko | ||
+ | 4 1 0xc15ef000 4000 if_gre.ko | ||
+ | |||
+ | # kldload if_gre.ko | ||
+ | # sysctl -w net.inet.ip.gre_default_mtu=1450 | ||
+ | # ifconfig gre1 create | ||
+ | # ifconfig gre1 tunnel 217.154.12.2 212.25.240.34 | ||
+ | # ifconfig gre1 mtu 1450 | ||
+ | # ifconfig gre1 inet 10.1.12.38 10.1.12.37 netmask 255.255.255.252 | ||
+ | # ifconfig gre1 up | ||
+ | < | ||
+ | |||
+ | or | ||
+ | |||
+ | # ifconfig gre1 inet 10.1.12.37 10.1.12.38 netmask 255.255.255.252 up | ||
+ | # / | ||
Line 51: | Line 96: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | **Manual IPv6 configuration** | ||
+ | |||
+ | | ||
+ | | ||
+ | route -n add -inet6 default 2001: | ||
+ | |||
+ | |||
===== NetBSD ===== | ===== NetBSD ===== | ||
+ | |||
+ | **Basic config:** | ||
+ | |||
+ | | ||
+ | | ||
+ | route add -inet6 default default_ip6_gateway_addr | ||
+ | |||
+ | **Setting up an IPv6-over-IPv4 tunnel:** | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | For more information on IPv6 and NetBSD, please consult the [[http:// | ||
+ | |||
===== FruBSD ===== | ===== FruBSD ===== | ||
Going through heavy developing phase ... | Going through heavy developing phase ... |