PDA

View Full Version : [SOLVED] tun1 instead of tun0?



pingaan
March 4th, 2019, 10:50 AM
Hi,

Is it possible to rename the VPN connection to tun1 instead of tun0, when having only one VPN connection active?

Regards

raja.genupula
March 4th, 2019, 02:09 PM
have you tried using `nmcli` ?

pingaan
March 4th, 2019, 04:44 PM
No, you think it'd be possible with nmcli? This is actually concerns a Raspberry Pi, don't tell anyone! ;-)
Afaik nmcli is not native to Raspbian. Would it be possible in another way?

coffeecat
March 4th, 2019, 04:52 PM
Raspbian. Thread moved to Ubuntu/Debian BASED.

SeijiSensei
March 4th, 2019, 05:35 PM
If you can edit the OpenVPN configuration file for the connection you can replace


dev tun

which dynamically allocates a tun device, with

dev tun1
to specify a device.

I've never used a GUI to set up OpenVPN connections, but then all my connections are static (https://openvpn.net/community-resources/static-key-mini-howto/).

pingaan
March 4th, 2019, 08:27 PM
@SeijiSensei
That did the trick, thanks a lot!