LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2016, 06:50 PM   #1
blm14
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
implement vpn killswitch using route?


I have a headless ubuntu 14.04LTS server that I want connected to VPN all the time. It seems that is nearly impossible using just pptp/pppd. So, barring that, I want to set the kernel default route to put all traffic except 192.168.1.* through the connection ppp0 and not eth0. That way if ppp0 is not available, the only connections that should work through eth0 are local VLAN IP's. Is that possible?
 
Old 03-15-2016, 12:03 PM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 112Reputation: 112
You don't need to hack the routing tables, use IP tables to forward and block all traffic you want to mangle
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN server to VPN server IP Address auto route cheesewizz Linux - Networking 0 06-26-2012 07:01 PM
[SOLVED] vpn via route saavik Linux - Networking 7 12-07-2009 07:29 AM
VPN; pppd; ip route m00f3r Linux - Networking 1 02-22-2009 03:20 PM
VPN route vkmgeek Linux - Networking 5 08-01-2008 01:55 AM
IPSEC To implement VPN UltraSoul Solaris / OpenSolaris 7 08-22-2005 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration