Thursday, November 22, 2012

Implementasi IPv6 di FreeBSD

Implementasi IPv6 di FreeBSD
http://www.ip-stories.com/?p=620

Contoh sederhana IPv6 di FreeBSD

=========================

# IP Config [/etc/rc.conf]

ipv6_network_interfaces=?fxp0?
ipv6_ifconfig_fxp0=?2404:170:ee02:ee02::10 prefixlen 64?
ipv6_ifconfig_fxp0_alias0=?2404:170:ee02:ee03::10 prefixlen 64? (IPv6 secondary sample).
ipv6_defaultrouter=?2404:170:ee02:ee02::1?

# DNS config [/etc/recolv.conf]

domain ipv6.risnaini.net
nameserver 2404:170:ee02:ee02::2

# Manual Directly Input IPv6 Address on # prompt :

ifconfig fxp0 inet6 2404:170:ee02:ee02::10 prefixle 64
ifconfig fxp0 inet6 2404:170:ee02:ee03::10 prefixle 64
route add -inet6 default 2404:170:ee02:ee02::1

# Simple Firewall :

(allow network 2404:170::/32 to any host)
ip6fw add 100 allow all from 2404:170::/32 to any in via fxp0

(allow network 2001:dc6::/32 to any host)
ip6fw add 200 allow all from 2001:dc6::/32 to any in via fxp0

(allow all ipv6 to host 2404:170:ee02::10)
ip6fw add 300 allow all from :: to 2404:170:ee02:ee02::10 in via fxp0

(deny other all traffic).
ip6fw add 1000 deny all from any to any in via fxp0

0 comments:

Post a Comment

 
Design by Free WordPress Themes