Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have set up a VPN connection to an remote L2TP/IPSec VPN server, which works fine. Now i like to ensure that all remote traffic is being routed through this VPN, so if the VPN connection drops, no remote connection is being established

I thought of adding an persistent route, but i'm not sure about the correct syntax and configuration/metric.

Thanks in anticipation

share|improve this question
This is tough to do with routing because you have to specify a next hop IP in your route which is going to change with different networks. You'd have to point a route for your VPN endpoint out the physical interface so your VPN doesn't try to route into itself. –  resmon6 Mar 6 '12 at 16:17
thx for pointing this out. are there any other options available? –  dapperdan Mar 7 '12 at 7:40
Your best bet is to use a firewall to only allow VPN traffic to exit the physical interface. UDP 500 and protocol 50 or TCP/443 to only your VPN device depending on what kind of VPN you're using. –  resmon6 Mar 7 '12 at 16:45
add comment

1 Answer

up vote 0 down vote accepted

resmon6's solution obviously works, thx anyhoo :)

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.