network icon indicating copy to clipboard operation
network copied to clipboard

Feature request: support adding tun devices

Open h3po opened this issue 2 years ago • 14 comments

Please add support for creating connections with type: tun. These are the nmcli options for tun devices:

    tun:          mode tun|tap
                  [owner <UID>]
                  [group <GID>]
                  [pi yes|no]
                  [vnet-hdr yes|no]
                  [multi-queue yes|no]

h3po avatar Oct 05 '22 13:10 h3po

Hi, what is the use case for it ?

liangwen12year avatar Oct 12 '22 13:10 liangwen12year

In my case an openvpn server. In order to use firewalld zones and policy for the forwarding rules, the device must exist statically and cannot be created on-demand by the openvpn process.

h3po avatar Oct 17 '22 11:10 h3po

ok, I will add support for this.

liangwen12year avatar Oct 20 '22 22:10 liangwen12year

@h3po does this mean you need tun devices and be able to set a firewalld zone for them via the network role or is it enough to be able to create the tun devices?

tyll avatar Mar 01 '23 19:03 tyll

@h3po does this mean you need tun devices and be able to set a firewalld zone for them via the network role or is it enough to be able to create the tun devices?

ansible.posix.firewalld already supports setting the firewalld zone, the device just needs to exist

h3po avatar Jul 06 '23 09:07 h3po

Eventually, we may want to support it in Nmstate, so that we can use it in the network_state variable, but this seems not to be a high-priority task. You are welcome and appreciated to support such a feature in Nmstate if you wish, https://github.com/nmstate/nmstate.

liangwen12year avatar Aug 28 '23 15:08 liangwen12year

Hi I’m an outreachy intern, I’ll like to work on this, kindly assign it to me. Thanks

Precious000 avatar Mar 10 '24 22:03 Precious000

We want to support it in nmstate, not sure if you have experience coding in rust ?

liangwen12year avatar Mar 11 '24 02:03 liangwen12year

Yes, I do.

Precious000 avatar Mar 11 '24 04:03 Precious000

Hi @liangwen12year can you please assign it to me? Thanks

Precious000 avatar Mar 11 '24 07:03 Precious000

I assigned it, thanks.

liangwen12year avatar Mar 13 '24 13:03 liangwen12year

Thanks a lot for the help.

liangwen12year avatar Mar 13 '24 13:03 liangwen12year

Hi, can you please assign this to someone else? I’ve been assigned some other, thanks a lot I really appreciate.

Precious000 avatar Mar 14 '24 03:03 Precious000

Hi, can you please assign this to someone else? I’ve been assigned some other, thanks a lot I really appreciate.

I cleared the assignee.

liangwen12year avatar Mar 20 '24 15:03 liangwen12year