Linux Netfilter discussions
 help / color / mirror / Atom feed
* How to force all packet go through tun0 ?
@ 2012-12-05 10:01 J. Bakshi
  2012-12-05 13:25 ` Jan Engelhardt
  0 siblings, 1 reply; 2+ messages in thread
From: J. Bakshi @ 2012-12-05 10:01 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

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 ?

Thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to force all packet go through tun0 ?
  2012-12-05 10:01 How to force all packet go through tun0 ? J. Bakshi
@ 2012-12-05 13:25 ` Jan Engelhardt
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Engelhardt @ 2012-12-05 13:25 UTC (permalink / raw)
  To: J. Bakshi; +Cc: netfilter@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-05 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-05 10:01 How to force all packet go through tun0 ? J. Bakshi
2012-12-05 13:25 ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox