Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

Wireguard interface in containers


Recommended Posts

Just wanted to start a conversation about  the possibility of having individual wireguard interfaces in the containers. Obviously we're all sharing the same couple of running kernels, but a cursory search would seem to suggest it's possible. I think there would have to be some permissions/scoping kind of setup, but I'm not seeing why it would be too difficult beyond that. Also from an admittedly limited understanding of the internals I can't see why it would add significant load to the system either, but I'm open to correction haha



Edited by klib.so
Link to comment
Share on other sites

Ok so did a bit of testing on a local funtoo container and it seems to just work if the module has been loaded in the bare metal OS.

emerge wireguard-tools

nano  /etc/wireguard/wg0.conf

wg-quick up wg0

Works perfectly and didn't seem to mess with the parent OS who has an interface with the same name.

So do you think we could have this added to the kernels? It's as simple as: emerge wireguard; modprobe wireguard and I suppose add to /etc/conf.d/modules for reboots.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...