OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: ctr on December 11, 2021, 03:47:30 AM

Title: add tun interface
Post by: ctr on December 11, 2021, 03:47:30 AM
It looks like in the past it was possible to bring up an arbirtrary interface (i.e. tun) and then it would be configurable in the GUI (see https://forum.opnsense.org/index.php?topic=3168.msg10301#msg10301 ), but this doesn't seem to work anymore. I'm working with a tun interface that works perfectly fine on the BSD layer but for some functionality I need to add it to the OPNsense configuration as well.

Any suggestions how to achieve this?
Title: Re: add tun interface
Post by: evalfun on February 19, 2022, 05:00:51 PM
opnsense will filter interface name in the webui, you can use tun name like ovpns999 or ovpnc999
Title: Re: add tun interface
Post by: franco on February 19, 2022, 07:43:56 PM
The "ovpns" and "ovpnc" trick will go away in 22.1.2 permanently after a brief time in 22.1.1 already.

You can use any unused device name really, I would recommend "custom" prefix or something that will never clash with existing VPN software or FreeBSD drivers. Just rename the device properly after creation (or better yet while creating it).


Cheers,
Franco