Score:0

Ubuntu use ovpn on existing tun interface

mn flag

Is it possible to configure OPENVPN on existing tun interface using .ovpn config file?

I have interface tun1 sudo ip tuntap add mode tun dev tun1 and config file ./vpn.ovpn and i need to configure vpn on this device without changing routing for another interfaces, is it possible?

Score:0
in flag

Yes you can use an existing interface:

# dev-type should only be used if dev does not start with tap or tun
# dev-type tun
# dev use tun or tap, or existing interface
dev tun1
# ifconfig is not needed, but you need to take care of peer etc config in your own interface up logic

Minor differences can exist between versions of OpenVPN https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.