IPv6 Configuration on FreeBSD
|So, it’s time to make the IPv4-IPv6 gateway, to walk in “another Internet”, to whom he will soon.
GO and register at http://go6.net/4105/register.asp
The kernel supports IPv6, ie it built with options INET6 (GENERIC kernel already supports this protocol)
So, install the client what they offer to download
Port: gateway6-5.0_2 Path: /usr/ports/net/gateway6 Info: Gateway6 Tunnel Setup Protocol Client - Free IPv6 tunnel B-deps: R-deps: WWW: http://www.go6.net/
Install:
cd /usr/ports/net/gateway6 make install clean
Edit the configuration file /usr/local/etc/gw6c.conf
userid = passwd =
There write your username and password are entered when registering on the site.
At this initial setup is completed, for further customization read the documentation.
server = broker.freenet6.net
broker.freenet6.net – is the server name to connect to (written in the letter at registration)
# Enable authentication auth_method = any # Write logs to syslogd log_syslog = 3
Now we have to run it
echo 'gateway6_enable = "YES"'>> /etc/rc.conf /usr/local/etc/rc.d/gateway6 start
And look
tail -f /var/log/messages Oct 17 18:39:38 lola gw6c: Gateway6 Client v5.0-RELEASE build Oct 17 2008-14:56:32 Oct 17 18:39:38 lola gw6c: Establishing connection to tunnel broker broker.freenet6.net using reliable UDP. Oct 17 18:39:42 lola gw6c: Connection to broker.freenet6.net established. Oct 17 18:39:45 lola gw6c: Authentication success. Oct 17 18:39:45 lola gw6c: Got tunnel parameters from server. Setting up local tunnel. Oct 17 18:39:45 lola gw6c: Executing configuration script: /bin/sh "/usr/local/share/gateway6/freebsd.sh". Oct 17 18:39:46 lola gw6c: Script completed successfully. Oct 17 18:39:46 lola gw6c: Your IPv6 address is 2001:05c0:8fff:fffe:0000:0000:0000:c243. Oct 17 18:39:46 lola gw6c: The tunnel type is v6udpv4.
Ifconfig tun1: flags=8051 metric 0 mtu 1280 inet6 2001:5c0:8fff:fffe::c243 --> 2001:5c0:8fff:fffe::c242 prefixlen 128 Opened by PID 873
Traceroute6 www.jp.freebsd.org ...
Ping6 www.jp.freebsd.org ...
Everything works fine