Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-04-2013, 05:15 PM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 9
Rep: 
|
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?
|
|
|
07-06-2013, 02:59 AM
|
#2
|
LQ Newbie
Registered: Mar 2013
Location: PDX, OR
Distribution: Arch, Debian, Fedora, Mint, CentOS, FreeBSD, OS X
Posts: 16
Rep:
|
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)
|
|
|
All times are GMT -5. The time now is 08:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|