Page 1 of 1

Routed and Bridged on the same server?

Posted: Thu Mar 10, 2011 11:18 pm
by Chrus
I currently have one of our clients set up to use a routed VPN for their 5 laptops to connect to the server remotley. And this works brilliantly. They are about to bring on a remote office that will need a VPN connection back to the main office, so I was going to set up a bridged connection between the two sites (and possibly more sites in the future).

So my question is whats the best way to go about this? Can I have one instance of OpenVPN running with tun0 set up for a routed connection to the laptops and add a second tun (tun1) to the config that will be for the bridged connection between the sites? Or am I going to have to run multiple instances of OpenVNP, one for the routed and another for the bridged?

If routed and bridged have to run in seperate instances, will I have to add another instance for each new remote site that needs a connection? Can a bridged config connect to multiple sites, or have multiple tuns in the one config?

For reference, I was looking at this guide for setting up the Bridged connection (http://ubuntuforums.org/showthread.php?t=752127)

I will supply any additional info if needed.

Thanks

Re: Routed and Bridged on the same server?

Posted: Fri Mar 11, 2011 4:43 pm
by janjust
why does the remote office need a bridged connection? why can't the remote office be connected using a routed setup, pretty much like a "regular" client , but with an extra network behind it?

if you must use bridging you will need two OpenVPN servers, one for the routed network on one port, one for the bridged network on another. This can all be made to work and interact. It is not required to set up a bridged (or routed) network for each remote office .

Re: Routed and Bridged on the same server?

Posted: Fri Mar 11, 2011 10:05 pm
by Chrus
From what I've read, it is my understanding that routed connections use NAT, where are bridged connections do not. So I was planning on having a setup where a client on site A could "talk to" a client on side B directly without being NAT'ed.

Re: Routed and Bridged on the same server?

Posted: Mon Mar 14, 2011 9:09 am
by janjust
then re-read the documentation ;)
it's perfectly well possible to have clients on either side talk to servers on the other side in a routed non-NATted setup.