Live data from Hacker News

Wireguard-docs: Setup, usage, configuration, and a full example

github.com

71–80 of 96 posts

Re: Wireguard-docs: Setup, usage, configuration, and a full example

#71

For anyone wanting to get WireGuard up and running in a few minutes with zero hassle, I usually use this excellent bash script [0] as my goto. Can be edited for DNS/subnet config, generates .conf files as needed and also handles QR code generation for adding mobile devices. Pair this with a $5 DO droplet and you're all set. [0] https://github.com/its0x08/wg-install

I typically use Algo for this

https://github.com/trailofbits/algo

Re: Wireguard-docs: Setup, usage, configuration, and a full example

#72
post #41

Earlier quoted context omitted.

Try setting 192.168.1.25/32 on your eth0 interface, you're in for a bad time.

2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 inet 192.168.101.12/24 brd 192.168.101.255 scope global eth0 valid_lft forever preferred_lft forever inet 192.168.1.25/32 scope global eth0 valid_lft forever preferred_lft forever inet 192.168.1.32/31 scope global eth0 valid_lft forever preferred_lft forever Seems to work fine, added a /31 just for fun.

if you remove the /24 you'll have a nice surprise

Re: Wireguard-docs: Setup, usage, configuration, and a full example

#73
post #58

Earlier quoted context omitted.

> OpenVPN replacement (which has a lot of issues) Care to elaborate?

This. I'm using OpenVPN for ethernet bridging, which Wireguard cannot do.

I've done bridging over wireguard. You just set up a gretap tunnel to run over the wireguard tunnel.

Re: Wireguard-docs: Setup, usage, configuration, and a full example

#74
Goddamn it, this happens literally every time I post my projects to HN :(

I posted the link myself to my repo, 0 points 14 hours later someone else posts it: 260+ points

No hate towards you axiomdata316, thanks for posting it, I'm just childishly complaining about the unfairness of fake internet points :p

Re: Wireguard-docs: Setup, usage, configuration, and a full example

#75

>IPSec (IKEv2)/strongSwan: lots of brittle config that's different for each OS, NAT busting setup is very manual and involves updating the central server and starting all the others in the correct order, not great at reconnecting after network downtime, had to be manually restarted often I don't follow, NAT traversal is integral to IKEv2 and pretty much "just works" [1]. Reconnecting after network downtime is not an…

I ran IKEv2 2-3 VPNs for multiple years with a few dozen users, I have to say from experience I disagree with you there (I'm the author of the repo, @pirate). For various reasons, StrongSwan required manual intervention much more frequently than WireGuard has for far. Often I'd have to manually restart the service, or adding a new host would break stuff for all the others. The minimal config required to match my current WireGuard config was about 3x the number of lines, which meant 3x the number of things that could break each time I added a host. Even if it's better documented, that surface area is painful to deal with from a Sysadmin perspective when all I want is something that just works.

Re: Wireguard-docs: Setup, usage, configuration, and a full example

#76

Could Wireguard have been written in Rust or does it require C for some reason? We've seen CVEs in major libraries (e.g. openssl) and some of the guarantees Rust provides would prevent certain classes of vulnerabilities. Has the author not learnt from the past or does it actually need to be written in C for some reason?

WireGuard has already been re-written in rust by CloudFlare, see https://blog.cloudflare.com/boringtun-userspace-wireguard-ru...

The C version is still faster because it's a kernel module.

Re: Wireguard-docs: Setup, usage, configuration, and a full example

#77

This looks like a very comprehensive guide with lots of practical examples. Good job! What I cannot see explicitly mentioned anywhere, is a full example of how to set up a central wireguard server which routes client traffic from the VPN subnet out to the Internet. Is this done automatically/implicitly? If so how? I don’t see enough commands to make this happen. Am I just stupid? What am I missing?

Just add `,0.0.0.0/0` to AllowedIPs on the central server, and `,0.0.0.0/0` on the peer definition for the central server on all the clients.

I'll add an example to the docs as well.

Re: Wireguard-docs: Setup, usage, configuration, and a full example

#78
post #7
post #5

Gotta say, if you just want a VPN to work now, definitely check out Algo or Streisand. You can get a VPN running in an hour or less. Algo even supports wireguard. I currently have two VPNs — Algo Wireguard & iVPN. Anecdotally the wireguard VPN rocks— crazy fast in every way, including connection/disconnection. Sometimes YouTube is slow.. I just hop on WG and it’s fast again. I’ve achieved faster downloads via WG than…

My default-config Streisand server was compromised according to Vultr. Just a heads up because VPNs can’t really afford this.

Replying to myself, I accepted what Vultr had to say and killed the server. Wasn’t really worth me investigating too deeply and I took them on their word.

I did the default Streisand install with all services, and disabled password based login on the box (keys only).

It seems Streisand has some issues updating some components according to their issues board and it seems like the maintainer might have abandoned it.

Next time I’ll probably use algo instead. I just need wireshark anyways ;)

Re: Wireguard-docs: Setup, usage, configuration, and a full example

#79

Goddamn it, this happens literally every time I post my projects to HN :( I posted the link myself to my repo, 0 points 14 hours later someone else posts it: 260+ points No hate towards you axiomdata316, thanks for posting it, I'm just childishly complaining about the unfairness of fake internet points :p

Lol. I know what you mean. Congrats on all the attention you're getting however. BTW I went to your original post and gave you a point. ;-)
Post reply on HN