Linux Netfilter discussions
 help / color / mirror / Atom feed
* Make a redirect if NAT out interface is down
@ 2012-03-02 23:49 cmlitguy
  2012-03-04 20:04 ` Andrew Beverley
  0 siblings, 1 reply; 4+ messages in thread
From: cmlitguy @ 2012-03-02 23:49 UTC (permalink / raw)
  To: netfilter

Hello,
I have a question about possibility of making a redirect if  NAT out 
interface tun0 is down.
This is iptables rule for Masquerading our network via VPN connection.

iptables  --table  nat  --append  POSTROUTING  --out-interface  tun0  -j  MASQUERADE  -m  comment  --comment  "Masquerading"

When VPN goes down, we can't access some resources and we need to verify 
its status and establish it again.
Is it possible to make a redirect of all traffic to another host - Web 
Site(via IP address) of tun0 is down ?
In this case all users immediately be seen that VPN should be established.

Thanks.

Sorry for my english.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Make a redirect if NAT out interface is down
@ 2012-03-02 23:45 cmlitgUy@gmail.com
  0 siblings, 0 replies; 4+ messages in thread
From: cmlitgUy@gmail.com @ 2012-03-02 23:45 UTC (permalink / raw)
  To: netfilter

Hello,
I have a question about possibility of making a redirect if  NAT out 
interface tun0 is down.
This is iptables rule for Masquerading our network via VPN connection.

iptables  --table  nat  --append  POSTROUTING  --out-interface  tun0  -j  MASQUERADE  -m  comment  --comment  "Masquerading"

When VPN goes down, we can't access some resources and we need to verify 
its status and establish it again.
Is it possible to make a redirect of all traffic to another host - Web 
Site(via IP address) of tun0 is down ?
In this case all users immediately be seen that VPN should be established.

Thanks.

Sorry for my English.

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

end of thread, other threads:[~2012-03-07 16:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 23:49 Make a redirect if NAT out interface is down cmlitguy
2012-03-04 20:04 ` Andrew Beverley
2012-03-07 16:19   ` cmlitguy
  -- strict thread matches above, loose matches on Subject: below --
2012-03-02 23:45 cmlitgUy@gmail.com

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