Page 1 of 1

Bridge for clients in different networks

Posted: Mon Dec 19, 2011 7:46 am
by murphy
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.

Re: Bridge for clients in different networks

Posted: Mon Dec 19, 2011 11:04 am
by janjust
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.

Re: Bridge for clients in different networks

Posted: Mon Dec 19, 2011 1:08 pm
by murphy
I would like to just have one instance, (To everyone got into their network ...

Re: Bridge for clients in different networks

Posted: Mon Dec 19, 2011 3:24 pm
by janjust
read http://openvpn.net/index.php/open-sourc ... dging.html for more info on how to set up ethernet bridging.