IPv6 Implementation [BAB IV] – FreeBSD

Posted on December 7, 2007. Filed under: FreeBSD, IPv6 |

Contoh sederhana IPv6 di FreeBSD


# IP Config [/etc/rc.conf]

ipv6_ifconfig_fxp0=”2404:170:ee02:ee02::10 prefixlen 64″
ipv6_ifconfig_fxp0_alias0=”2404:170:ee02:ee03::10 prefixlen 64″ (IPv6 secondary sample).

# 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

– a. rahman isnaini r.sutan [abi abdillah syauqie ahmad anshaari]

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: