今天终于配置好了AFTR,并且LAN PC能够直接上网了。我测试所用的软件包是AFTR软件包。
aftr.conf
---------------------------------------------------------
defmss on
deftoobig off
acl6 3003::/16
address endpoint 3003::3000
address icmp 192.18.0.2 用来上网的IP地址,要为此地址加上NAT
pool 192.18.0.2
---------------------------------------------------------
aftr-script中aftr_start函数
---------------------------------------------------------
aftr_start()
{
set -x
# bring up the tunnel interface
ip link set tun0 up
# assign addresses (required by some systems)
ip addr add 10.0.100.1 peer 10.0.100.2 dev tun0
#ip -6 addr add fe80::21e:90ff:fefc:e897/64 dev tun0
# add routes for all endpoint, pool, prr, and nonat addresses
ip route add 192.18.0.0/16 dev tun0
ip -6 route add 3003::/64 dev tun0
}
---------------------------------------------------------