LinuxQuestions.org
Help answer threads with 0 replies.
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-04-2013, 08:47 PM   #1
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 136

Rep: Reputation: 18
Apply routes when connecting to VPN


I currently can run:
Code:
route add -net 201.1.1.0/24 gw 200.1.1.2
to allow me to connect to an external server without routing through my VPN. I use NetworkManager and there is a 'routes' section but adding this into there does not work. Is this where I should be inputting this or is there some other way to make sure this route is used. It doesn't matter if it is applied when I do not have a VPN running.

Any help is appreciated, thanks.
 
Old 03-05-2013, 01:49 PM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
what kind of vpn?
 
Old 03-05-2013, 01:52 PM   #3
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 136

Original Poster
Rep: Reputation: 18
OpenVPN. I used an .ovpn file to import the details.
 
Old 03-09-2013, 02:37 AM   #4
catworld
Member
 
Registered: Nov 2004
Location: Horseheads, New York
Distribution: Mandriva 2010.1 / KDE 4.5.2, Slax, Knoppix, Backtrack & etc...
Posts: 198

Rep: Reputation: 36
I don't understand your question. Are you saying if you are on a LAN and you have a VPN running to allow access from the outside to the same, you can't access the internet? (or some server outside the LAN?) You seem to imply there is no trouble if the VPN isn't running. I can't see how a VPN would effect normal LAN traffic. :|
 
Old 03-11-2013, 03:00 PM   #5
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 136

Original Poster
Rep: Reputation: 18
I can only access an external site through my original IP (whitelisted). Running that command lets it happen while I'm connected to a VPN, how do I get it to run automatically.
 
  


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 Connection - Not able to browse other sites when connecting to VPN arindom Linux - Networking 25 07-02-2012 01:43 PM
vpnc + adding routes for VPN machine on OpenWRT router morphix Linux - Networking 2 09-15-2010 07:53 PM
what routes to add in order to make VPN work? stevena Linux - Networking 2 02-06-2010 04:09 AM
Routes, iptables and vpn midof Linux - Security 1 06-23-2005 06:42 AM
routes, default gateways, ip's internet connecting - Much Stress mudelf Linux - Networking 2 09-29-2003 06:13 PM

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

All times are GMT -5. The time now is 04:49 AM.

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