LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-05-2016, 02:32 PM   #1
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Looking for tutorial on setting-up OpenVPN to provide outbound routing from a local subnet


This tutorial, in its section "Using routing and OpenVPN not running on the default gateway," discusses this configuration, although not as completely as I would prefer.

I would therefore like to know if any of you can recommend other web-pages that I should read.

The desired configuration is that anyone on a specific local network address-range will be able to connect to a specified secure external subnet (hosted by an OpenVPN server on a remote system), if one particular computer on the local network is running an OpenVPN client service (i.e. "on behalf of all of them"). This one computer would act, in all respects, as a "local router" leading to that network.

It seems to me that this scheme can be achieved if the [i](hardware ...) router of the local network contains two static-routing rules:
  1. (As discussed in the web page cited above ...) A static-route rule that forwards replies sent to e.g. "10.8.x.x" back to the OpenVPN client.
  2. (Is this right ...?) A second rule which forwards traffic being sent to the remote network (e.g. "10.11.xx.yy") also to the OpenVPN client.
(And, in addition, a DHCP rule that assigns a fixed local IP-address to the OpenVPN client machine.)

Will OpenVPN require a configuration-directive telling it to expect traffic to be coming to it from a variety of local IP-addresses? To tell it to behave as a true "local router" towards them?

I think I know the answers to these questions ... and I'll be sure to post them here, later ... but I'm certainly not afraid to ask. I'd appreciate a "sanity check" on this.

Last edited by sundialsvcs; 07-05-2016 at 02:33 PM.
 
  


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
Error When converting Routing OpenVPN to bridge mode openvpn danmartinj Linux - Software 0 11-06-2009 09:23 AM
Re-routing outbound traffic jessicaK Linux - Networking 7 10-14-2008 03:25 PM
openVPN routing where local and remote networks clash andrewdodsworth LinuxQuestions.org Member Success Stories 0 09-11-2007 02:59 AM
routing pptp tunnel subnet to local lan 0xception Linux - Networking 1 07-11-2006 03:26 PM
Aargh!!! Not routing to local subnet sancho5 Linux - Networking 5 02-10-2004 02:11 AM

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

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