Re: How to force all packet go through tun0 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 2012-12-05 11:01, J. Bakshi wrote:

>Hello,
>
>I have reconnect script which reconnect the vpn connection if
>tun0 is missing. Still during the reconnect phase, the packets
>go through the eth0. How can I force all packets to go through
>tun0 and how can I exclude the domain required for vpn connection
>to be established ?

Just like VPN solutions themselves do when they establish a tunnel with 
a default route:

 ip route add 134.76.22.1/32 dev eth0
 ip route replace default via tun0
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux