Live data from Hacker News

WireGuard on K8s: road-warrior-style VPN server

blog.levine.sh

11–20 of 54 posts

Re: WireGuard on K8s: road-warrior-style VPN server

#11

Is there any reason why OP installs iproute2 and iptables not in the builder together with the wireguard package but in the final container image?

The packages installed in the builders are essentially never used since it never runs. The builder makes the files to install in the final container during the build phase, and then gets thrown away.

Re: WireGuard on K8s: road-warrior-style VPN server

#12

Is there any reason why OP installs iproute2 and iptables not in the builder together with the wireguard package but in the final container image?

The packages installed in the builders are essentially never used since it never runs. The builder makes the files to install in the final container during the build phase, and then gets thrown away.

Oh, of course. Brainfart there.

Re: WireGuard on K8s: road-warrior-style VPN server

#14
You can install the WireGuard tools only, without the kernel extensions etc, with:

    apt-get install -y --no-install-recommends wireguard-tools
This is all you need with the server flavour of 20.04. For the minimal one, you need a couple more.

So no need to use a builder image

Re: WireGuard on K8s: road-warrior-style VPN server

#15
post #6

Earlier quoted context omitted.

Would like to use something like this to aggregate a few DSL connections. Any idea how well it works for that use case?

It seems to work well when the connections are of roughly equal speed and stability, so that sounds like a rather ideal use case. :+ ) I think it'll need work for connections with varied performance.

Nice! Thanks for the reply, May have to give this a go.

Re: WireGuard on K8s: road-warrior-style VPN server

#16
post #9
post #8

Earlier quoted context omitted.

My main annoyance with Tailscale is the reliance on Google. I need to refresh my memory, but I think this makes a VLAN shared with other people impossible. This is why I'm still using https://zerotier.com -- also no affiliation.

Honestly that's the least of all problems and catastrophes of Tailscale. You must have 1000% of confidence in their own servers security, if the published public keys hosted on their servers have been tampered then the entire network is compromised. Also, if their service is down, you will be unable to connect to your network even if it is completely fine and working.

Tailscale is open source, it should be possible to set up your own server.

The hosted Tailscale product is meant for GSuite customers who want an peer-to-peer VPN with corporate SSO. Yes, you have to trust them - SSO login is inherently centralized. My company uses it, it works great.

Re: WireGuard on K8s: road-warrior-style VPN server

#17
I think we all understand the usefulness of a road-warrior-style VPN. But it doesn't seem so clear what k8s is adding here?

Anyway, on the topic of scalable UDP services, does anyone have any experience of load balancing a UDP service? Because UDP is connectionless there's no obvious way to make UDP packets "sticky". Are there any established practices that could help scale this k8s Wireguard service to 2 or more containers?

Re: WireGuard on K8s: road-warrior-style VPN server

#18
post #6

Well, there's road-warrior, and then there's road-warrior . I've been trying out Glorytun, it does multi-path VPN with a relatively similar wire format to WireGuard. Being mostly indoors, due to the microbial boogaloo, I've not been trying it with the most interesting applications.

Would like to use something like this to aggregate a few DSL connections. Any idea how well it works for that use case?

I looked into aggregating DSL connections in the past, a few years ago I think you had to get your own router for that as well as a VPS. OVH launched a service "over the box" that goes just that, they provide a router and a VPS where a VPN runs. They claimed you'd get a total bandwidth equals to the sum of all connections and I think it's not required for the connections to be similar in bandwidth.

Re: WireGuard on K8s: road-warrior-style VPN server

#19
post #16
post #9

Earlier quoted context omitted.

Honestly that's the least of all problems and catastrophes of Tailscale. You must have 1000% of confidence in their own servers security, if the published public keys hosted on their servers have been tampered then the entire network is compromised. Also, if their service is down, you will be unable to connect to your network even if it is completely fine and working.

Tailscale is open source, it should be possible to set up your own server. The hosted Tailscale product is meant for GSuite customers who want an peer-to-peer VPN with corporate SSO. Yes, you have to trust them - SSO login is inherently centralized. My company uses it, it works great.

I am not really sure you understand how it works. There is no hosted/not hosted versions of it. You must connect your "opensource" client/agent through their coordination servers hosted by them to host and publish the public key to the other devices in your network and you can not skip their service. So Tailscale is effectively as opensource as any commercial opensource VPN client. It's entirely useless when not used with their commercial service and users have zero control over the software unless when used with their servers. The "open source" thing is great from a marketing and business perspective because you basically benefit from the open source marketing and the community thing from the unsuspecting users and enthusiasts pros without giving away literally anything.

Re: WireGuard on K8s: road-warrior-style VPN server

#20
post #16
post #9

Earlier quoted context omitted.

Honestly that's the least of all problems and catastrophes of Tailscale. You must have 1000% of confidence in their own servers security, if the published public keys hosted on their servers have been tampered then the entire network is compromised. Also, if their service is down, you will be unable to connect to your network even if it is completely fine and working.

Tailscale is open source, it should be possible to set up your own server. The hosted Tailscale product is meant for GSuite customers who want an peer-to-peer VPN with corporate SSO. Yes, you have to trust them - SSO login is inherently centralized. My company uses it, it works great.

[deleted]
Post reply on HN