Discussion:
[Openvpn-users] Custom Tun Interface name while establishing client connection
Lamsoge, Abhijit
2017-04-19 13:13:47 UTC
Permalink
Hi All,

I want to create multiple VPN client connections from Host A to different VPN servers at the same time.

So for ex:

Local Machine -> VPN-Germany

Local Machine-> VPN-US

Local Machine-> VPN-Russia

and so on.


I am able to create these multiple connection at the same time.

With interfaces getting created like tun0, tun1, tun2 etc.


I wanted to know

1) If its possible to provide the name of TUN interface while creating such connections ? Like VPN to Germany may create "tunGermany" as interface name instead of "tun0" while establishing a connection ?


Note:- At this point I am not much worried about default gateway and packet routing.


Thanks.


Abhijit
Pippin1st
2017-04-19 13:59:23 UTC
Permalink
Hi,

Reading the manual --dev and --dev-type you can use:
dev tungermany
dev-type tun

Greetings

Sent with [ProtonMail](https://protonmail.com) Secure Email.

-------- Original Message --------
Subject: [Openvpn-users] Custom Tun Interface name while establishing client connection
Local Time: 19 april 2017 3:13 PM
UTC Time: 19 april 2017 13:13
From: ***@harman.com
To: openvpn-users <openvpn-***@lists.sourceforge.net>

Hi All,

I want to create multiple VPN client connections from Host A to different VPN servers at the same time.

So for ex:

Local Machine -> VPN-Germany

Local Machine-> VPN-US

Local Machine-> VPN-Russia

and so on.

I am able to create these multiple connection at the same time.

With interfaces getting created like tun0, tun1, tun2 etc.

I wanted to know

1) If its possible to provide the name of TUN interface while creating such connections ? Like VPN to Germany may create "tunGermany" as interface name instead of "tun0" while establishing a connection ?

Note:- At this point I am not much worried about default gateway and packet routing.

Thanks.

Abhijit

Loading...