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 07-04-2013, 04:15 PM   #1
eqtime
LQ Newbie
 
Registered: Apr 2012
Posts: 9

Rep: Reputation: Disabled
VPN and internal routing


I have an openvpn access server setup running centos. I've allowed all my private subnets access from vpn clients, as well. A lot of people connect to the vpn on the internal network as well, which is fine, but I want to change the preferred route when connecting internally.

Basically this is my issue: 10.1.2.1 is becoming the gateway because that is the range assigned by the OpenVPN access server (10.1.2.0/24) when connecting to it using the client. When connecting from an internal IP address (172.16.0.0/16) it's using the 10.1.2.1 gateway as the preferred route to an internal server, as opposed to using the gateway 172.16.1.1 (internal gateway). Is it possible to change this routing behaviour so it uses the 172.16.1.1 gateway as the priority? Is it possible with the access server web admin or another way?
 
Old 07-06-2013, 01:59 AM   #2
Stupendoussteve
LQ Newbie
 
Registered: Mar 2013
Location: PDX, OR
Distribution: Arch, Debian, Fedora, Mint, CentOS, FreeBSD, OS X
Posts: 16

Rep: Reputation: 3
It sounds like the server is redirecting the gateway, it is one of the configuration options. If you disable this behavior, a route will be added but the gateway would stay the same. In same cases this is preferable, it's really up to how you're using it.

Generally, with the gateway redirected, all traffic would pass through the VPN once connected. The alternative is only traffic to hosts on the VPN passing through the VPN. (I'll admit it's been a while since I've configured OpenVPN)
 
  


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
Application specific routing (not routing p2p over vpn) tkalfaoglu Linux - Networking 1 06-15-2013 06:33 AM
[SOLVED] Routing to internal mailserver? cableguy187 Linux - Networking 6 07-26-2011 03:46 PM
Routing internal to external Harvfive Linux - Networking 0 11-07-2008 09:09 AM
Routing between internal subnets teamchachi Linux - Networking 2 05-11-2005 07:21 AM
Internal Routing Saris Linux - Newbie 12 06-24-2003 11:30 PM

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

All times are GMT -5. The time now is 02:38 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