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
Routed and Bridged on the same server?
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Mar 10, 2011 10:56 pm
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Routed and Bridged on the same server?
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 .
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 .
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Mar 10, 2011 10:56 pm
Re: Routed and Bridged on the same server?
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.
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Routed and Bridged on the same server?
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.

it's perfectly well possible to have clients on either side talk to servers on the other side in a routed non-NATted setup.