linux-system-roles / network

An ansible role to configure networking
https://linux-system-roles.github.io/network/
BSD 3-Clause "New" or "Revised" License
238 stars 106 forks source link

Feature request: support adding tun devices #530

Open h3po opened 2 years ago

h3po commented 2 years ago

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]
liangwen12year commented 2 years ago

Hi, what is the use case for it ?

h3po commented 2 years ago

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.

liangwen12year commented 2 years ago

ok, I will add support for this.

tyll commented 1 year ago

@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?

h3po commented 1 year ago

@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

liangwen12year commented 1 year ago

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.

Precious000 commented 8 months ago

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

liangwen12year commented 8 months ago

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

Precious000 commented 8 months ago

Yes, I do.

Precious000 commented 8 months ago

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

liangwen12year commented 8 months ago

I assigned it, thanks.

liangwen12year commented 8 months ago

Thanks a lot for the help.

Precious000 commented 8 months ago

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

liangwen12year commented 8 months ago

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.