Bridge for clients in different networks

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
murphy
OpenVpn Newbie
Posts: 2
Joined: Mon Dec 19, 2011 7:37 am

Bridge for clients in different networks

Post by murphy » Mon Dec 19, 2011 7:46 am

Hello!
I'm configuring openvpn for clients (user:password auth). One client connected to br0 (network one), two client connected to br1 (network two). When a client connects to the queue (not both) - everything is fine, with the help of scripts (command brctl) to bridge br0 add or br1, but when at the same time - does not work. I think this is all due to the fact that it creates one device tap0. Is it possible for each connection to create their device tapX?

something like this:

user1 -> tap0 -> br0
user2 -> tap1 -> br1
....
userX -> tapX -> brX

Thank you, Yours faithfully Alex.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Bridge for clients in different networks

Post by janjust » Mon Dec 19, 2011 11:04 am

one openvpn instance is bound to one tap adapter (or bridge); if you want a bridge for each user then you would have to launch an openvpn process for each user.

Also, what would each bridge be bridging? you can bridge a network adapter (ethN, tapN) only once.

murphy
OpenVpn Newbie
Posts: 2
Joined: Mon Dec 19, 2011 7:37 am

Re: Bridge for clients in different networks

Post by murphy » Mon Dec 19, 2011 1:08 pm

I would like to just have one instance, (To everyone got into their network ...

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Bridge for clients in different networks

Post by janjust » Mon Dec 19, 2011 3:24 pm

read http://openvpn.net/index.php/open-sourc ... dging.html for more info on how to set up ethernet bridging.

Post Reply