OpenVPN-Server with multiple TAP-Devices over 1 Server

Need help configuring your VPN? Just post here and you'll get that help.

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.
Post Reply
mniehren
OpenVpn Newbie
Posts: 4
Joined: Mon Jun 16, 2014 8:55 pm

OpenVPN-Server with multiple TAP-Devices over 1 Server

Post by mniehren » Thu Jul 20, 2017 1:47 pm

Hi together,

currently i have running an OpenVPN-Server with the client-config-dir directive where multiple clients connect
to 1 server instance and got assigned ip's and route's over an ccd-File.

Now i want to do the same thing with TAP-devices. First i create xxx TAP-Devices (with --mktun option). Each
client has assigned 1 TAP-device. If a client connects, i want to allocate him the assigned TAP-device.
That would be very easy, if i could do an
dev tapx
directive in the ccd-File of the Client.But sadly that did not work (in V2.3), which i tried.

So, does there exists a config for such a scenario ?

best regards
Michael

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN-Server with multiple TAP-Devices over 1 Server

Post by TinCanTech » Thu Jul 20, 2017 2:47 pm

If you mean
  • "You want to push the name of the --dev tun or --dev tap to the client"

    You can not.
Otherwise, please explain your question clearly, perhaps with an example.

mniehren
OpenVpn Newbie
Posts: 4
Joined: Mon Jun 16, 2014 8:55 pm

Re: OpenVPN-Server with multiple TAP-Devices over 1 Server

Post by mniehren » Thu Jul 20, 2017 2:56 pm

maybe it's better to make an example ...

If client1 connects to the server, on the server side tap1 should be used for that connection
If client2 connects to the server, tap2 should be used
...

so, the tap-device should be configureable for each client, so that was my idea with the ccd.

all that over 1 server instance with 1 listen port. I think it would be possible if i run xxx instances,
but then i need xxx different ports.

Michael

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN-Server with multiple TAP-Devices over 1 Server

Post by TinCanTech » Thu Jul 20, 2017 5:35 pm

I think you are wasting your time chasing after nothing ..

mniehren
OpenVpn Newbie
Posts: 4
Joined: Mon Jun 16, 2014 8:55 pm

Re: OpenVPN-Server with multiple TAP-Devices over 1 Server

Post by mniehren » Thu Jul 20, 2017 8:56 pm

i have a concrete project, which i try to solve with this openvpn scenario.

Do you think, that it is possible to do with openvpn ?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN-Server with multiple TAP-Devices over 1 Server

Post by TinCanTech » Thu Jul 20, 2017 9:41 pm

While OpenVPN is a versatile tool, you have to remember that;
  • OpenVPN is constructed respecting specific rules, namely RFC's ..
I have my doubts that your concrete project is so rigorously constructed.

But .. if you like, you can email me specifics : tincanteksup <at> gmail

Post Reply