Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-04-2013, 04:15 PM   #1
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: is becoming the gateway because that is the range assigned by the OpenVPN access server ( when connecting to it using the client. When connecting from an internal IP address ( it's using the gateway as the preferred route to an internal server, as opposed to using the gateway (internal gateway). Is it possible to change this routing behaviour so it uses the gateway as the priority? Is it possible with the access server web admin or another way?
Old 07-06-2013, 01:59 AM   #2
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)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:59 AM.

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