I setup the xl2tpd and openswan as client for my vpn server, the l2tp tunnel connetion to vpn server is seccessfully established but all traffic didn't go throught the tunnel some what go and some what not we can see from the "tcpudmp -i ppp0" output:
22:04:01.741537 IP example.net.l2f > 46.165.221.230.l2f: l2tp:[TLS](46628/13041)Ns=5,Nr=4 ZLB
22:04:01.742506 IP 46.165.221.230.l2f > example.net.l2f: l2tp:[TLS](24736/13041)Ns=3,Nr=6 ZLB
22:04:01.749454 IP example.net.l2f > 46.165.221.230.l2f: l2tp:[TLS](46628/13041)Ns=5,Nr=4 ZLB
22:04:01.749465 IP 46.165.221.230.l2f > example.net.l2f: l2tp:[TLS](24736/13041)Ns=3,Nr=6 ZLB
22:04:01.755076 IP example.net.l2f > 46.165.221.230.l2f: l2tp:[TLS](46628/13041)Ns=5,Nr=4 ZLB
22:04:01.755534 IP 46.165.221.230.l2f > example.net.l2f: l2tp:[TLS](24736/13041)Ns=3,Nr=6 ZLB
22:04:01.758551 IP example.net.l2f > 46.165.221.230.l2f: l2tp:[TLS](46628/13041)Ns=522:04:38.995362 IP example.net.52448 > resolver1-fs.opendns.com.domain: 54504+ PTR? 96.67.55.182.in-addr.arpa. (43)
22:04:39.070981 IP example.net.39115 > mrs02s04-in-f28.1e100.net.http: Flags [F.], seq 3807100762, ack 2524750562, win 913, options [nop,nop,TS val 2740160 ecr 326646988], length 0
22:04:39.307286 IP resolver1-fs.opendns.com.domain > example.net.52448: 54504 NXDomain 0/0/0 (43)
22:04:40.474100 IP 200-236-224-244.desktop.com.br.32226 > example.net.51413: UDP, length 101
22:04:41.005489 IP example.net.51413 > 82.131.200.166.pool.invitel.hu.9640: UDP, length 94
22:04:41.453950 IP 82.131.200.166.pool.invitel.hu.9640 > example.net.51413: UDP, length 268
22:04:41.454155 IP example.net.51413 > adsl-ull-83-5.41-151.net24.it.51413: UDP, length 58
22:04:41.454197 IP example.net.51413 > 46.98.59.242.62801: UDP, length 58
22:04:41.454227 IP example.net.51413 > 24.251.5.194.12750: UDP, length 58
,Nr=4 ZLB
This is the route ouput for gateways:
# ip route show
default dev ppp0 scope link
46.165.221.230 via 118.104.229.110 dev ppp0 src 118.104.229.110
118.104.228.3 dev ppp0 proto kernel scope link src 118.104.229.110
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.1
46.165.221.230 is my vpn server ip, 118.104.228.3 is my isp ip and 118.104.229.110 is my externel interface ppp0 ip addresses.
please help me how i can redirect the all traffic to the l2tp tunnel?