<?xml version="1.0" encoding="UTF-8" ?><oembed><version>1.0</version><provider_name>Jui-Nan Lin&#039;s Blog</provider_name><provider_url>https://jnlin.org</provider_url><author_name>jnlin</author_name><author_url>https://jnlin.org/author/jnlin/</author_url><title>Hinet用戶設定使用 Hinet 的 Tunnel Broker 上 IPv6 網路 (FreeBSD)</title><html>據&lt;a href=&quot;http://blog.ijliao.info/archives/2007/10/16/3342/&quot;&gt;廖大&lt;/a&gt;消息，hinet 開放用戶使用 ipv6 tunnel broker，這裡把我在 bsd 上設定的步驟寫下：
&lt;ol&gt;
	&lt;li&gt;首先確定有把 tun/gif 編入 kernel，或是用kldload 載入 if_tun.ko/if_gif.ko&lt;/li&gt;
	&lt;li&gt;安裝port: net/gateway6&lt;/li&gt;
	&lt;li&gt;修改 /usr/local/etc/gw6c.conf&lt;/li&gt;
&lt;code&gt;
# 撥接用戶的 userid 是 HN 號碼（八位數字，不用加上@hinet.net），密碼是撥接密碼；固接用戶留空
userid=
passwd=
# 撥接用戶使用的 Server IP 是 203.74.21.88，固接用戶使用的是 203.74.21.89
server=203.74.21.89
# 撥接用戶使用的 auth method 是 any，固接用戶使用的是 anonymous
auth_method=anonymous
host_type=host
prefixlen=64
if_prefix=bge0

gw6_dir=/usr/local
auto_retry_connect=yes
retry_delay=30
keepalive=yes
keepalive_interval=30
tunnel_mode=v6anyv4

# 如果有使用到其他的tun/gif，記得不要衝突。
if_tunnel_v6v4=gif0
if_tunnel_v6udpv4=tun0
if_tunnel_v4v6=gif0

client_v4=auto
client_v6=auto

template=freebsd
proxy_client=no

broker_list=tsp-broker-list.txt
last_server=tsp-last-server.txt
always_use_same_server=no

log_filename=gw6c.log
log_rotation=yes
log_rotation_size=32
syslog_facility=USER
&lt;/code&gt;
	&lt;li&gt;修改 /etc/rc.conf&lt;/li&gt;
&lt;code&gt;
gateway6_enable=&quot;YES&quot;
&lt;/code&gt;
	&lt;li&gt;執行 gateway6&lt;/li&gt;
&lt;code&gt;
# /usr/local/etc/rc.d/gateway6 start
&lt;/code&gt;
&lt;/ol&gt;

因為不能使用 router mode，所以如果你有很多台電腦要上 ipv6 的話，只能每台電腦都裝 gateway6 的 client 或用 ipv6 的 nat...</html><type>rich</type></oembed>