lab icon indicating copy to clipboard operation
lab copied to clipboard

Guide for wireguard

Open 927589452 opened this issue 6 years ago • 8 comments

Add a guide for wireguard (go implementation https://git.zx2c4.com/wireguard-go/about/ ) to span mutliple uberpaces as an alternative to ssh tunnels

927589452 avatar Jun 25 '19 06:06 927589452

The project says "YOU SHOULD NOT RUN THIS ON LINUX", but does not provide any reasons, except for there being a presumably faster/better kernel module. Can you please take a look, if there are any more substantial ones?

luto avatar Jun 25 '19 06:06 luto

Will do

927589452 avatar Jun 25 '19 07:06 927589452

Does Wireguard work on Uberspace?

ki9us avatar Jan 25 '20 21:01 ki9us

The original wireguard won't work, because it requires a kernel module. The Go version linked above could work, if you want to give it a try and write a guide!

luto avatar Jan 26 '20 09:01 luto

Looks like I need some permissions to create the interface:

ERROR: (wg0) 2020/01/27 17:17:32 Failed to create TUN device: operation not permitted

I tried BoringTun and got a similar result:

Failed to initialize tunnel: IOCtl("Operation not permitted")

ki9us avatar Jan 27 '20 16:01 ki9us

@keith24 thanks for trying this out. I would love to see Wireguard support in Uberspace. Sad to hear that the userspace implementations (Rust & Go) cannot be installed (yet?).

@luto I know this repo is about the Uberspace documentation, but any chance that the Uberspace ops team could have a closer look at the Wireguard installation?

Tooa avatar Apr 11 '20 13:04 Tooa

The rust and go implementations need to create TUN devices just like the in-kernel one. We cannot allow users to modify the network configuration. So wireguard won't work on an uberspace for the same reasons all the other VPN solutions won't work. A notable exception being the good, old (and still active!) sshuttle.

If there is a way to run wireguard without a TUN devices, feel free to reopen this issue and submit a guide!

Sorry, folks.

luto avatar Apr 11 '20 13:04 luto

The program onetun can create a wireguard tunnel for a single IP:port in userland. This can be used on Uberspace and with a web backend it can also be used to make the http service available via https.

christoph-nils avatar Sep 21 '24 10:09 christoph-nils