Ubuntu服务器上的服务器路由和vtun

我有一个Ubuntu 12.04 LTE虚拟服务器,内核2.6.32和vtun运行的VPN。

在VPN中,服务器是6.6.6.6,两个客户端是6.6.6.29和6.6.6.35。

如果我从任何客户端ping通6.6.6.6,服务器立即响应。 所以我相信客户端configuration正确。 但是如果我从6.6.6.29开始ping 6.6.6.35,反之亦然,没有任何回应。

来自6.6.6.29的traceroute说:

$ traceroute -n 6.6.6.35

traceroute to 6.6.6.35 (6.6.6.35), 30 hops max, 60 byte packets 1 6.6.6.6 78.409 ms 80.202 ms 82.820 ms 2 * * * 3 * * * 4 * * * 5 * * * 6 * * * 

我猜在服务器的路由表中存在路由问题。

我的configuration文件是:

$ cat / etc / default / vtun

 RUN_SERVER=yes 

$ cat /etc/vtund.conf

 options { bindaddr { addr 85.84.83.82; }; } default { type tun; proto tcp; persist yes; keepalive yes; stat yes; multi yes; } client1 { passwd U'dLikeToKnow; up { ifconfig "%% 6.6.6.6 pointopoint 6.6.6.29 mtu 1450"; route "add -net 6.6.6.0 netmask 255.255.255.0 gw 6.6.6.29"; }; down { ifconfig "%% down"; route "del -net 6.6.6.0 netmask 255.255.255.0 gw 6.6.6.29"; }; } client2 { passwd U'dLikeToKnow; up { ifconfig "%% 6.6.6.6 pointopoint 6.6.6.35 mtu 1450"; route "add -net 6.6.6.0 netmask 255.255.255.0 gw 6.6.6.35"; }; down { ifconfig "%% down"; route "del -net 6.6.6.0 netmask 255.255.255.0 gw 6.6.6.35"; }; } 

$ ifconfig

 tun0 Link encap:UNSPEC direcciónHW 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 Direc. inet:6.6.6.6 PtP:6.6.6.29 Másc:255.255.255.255 ACTIVO PUNTO A PUNTO FUNCIONANDO NOARP MULTICAST MTU:1450 Métrica:1 Paquetes RX:358 errores:0 perdidos:0 overruns:0 frame:0 Paquetes TX:18 errores:0 perdidos:0 overruns:0 carrier:0 colisiones:0 long.colaTX:500 Bytes RX:27624 (27.6 KB) TX bytes:1560 (1.5 KB) tun1 Link encap:UNSPEC direcciónHW 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 Direc. inet:6.6.6.6 PtP:6.6.6.35 Másc:255.255.255.255 ACTIVO PUNTO A PUNTO FUNCIONANDO NOARP MULTICAST MTU:1450 Métrica:1 Paquetes RX:98 errores:0 perdidos:0 overruns:0 frame:0 Paquetes TX:91 errores:0 perdidos:0 overruns:0 carrier:0 colisiones:0 long.colaTX:500 Bytes RX:10580 (10.5 KB) TX bytes:8579 (8.5 KB) 

$路线

 Tabla de rutas IP del núcleo Destino Pasarela Genmask Indic Métric Ref Uso Interfaz 6.6.6.29 * 255.255.255.255 UH 0 0 0 tun0 6.6.6.35 * 255.255.255.255 UH 0 0 0 tun1 6.6.6.0 6.6.6.35 255.255.255.0 UG 0 0 0 tun1 6.6.6.0 6.6.6.29 255.255.255.0 UG 0 0 0 tun0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default * 0.0.0.0 U 0 0 0 venet0 

但最奇怪的是,当我将服务器从版本10.04升级到12.04 LTE时,出现了这个问题。

我怎么能rapair路由表?

还有其他build议吗?