Live data from Hacker News

Building a Simple VPN with WireGuard with a Raspberry Pi as Server

snikt.net

121–126 of 126 posts

Re: Building a Simple VPN with WireGuard with a Raspberry Pi as Server

#121

A question for people with experience in this area: I've been considering setting up WireGuard so I can keep my mobile phone always connected to my home network. Will I experience degraded network performance (either latency or bandwidth) if I have my mobile phone always connected to a VPN 24/7? My phone is an iPhone 11 Pro and I would be running WireGuard on a Pi4

I do this. Wireguard's iOS app with connect on demand is great. I get very close to the full speed of my home connection.

Re: Building a Simple VPN with WireGuard with a Raspberry Pi as Server

#122
post #119

Earlier quoted context omitted.

Be careful with this module, lots of the `set` and `delete` commands aren't quite working right yet, leading to some commit failed errors for me. I was trying to get something working and ended up with an ERX that couldn't pass traffic last night. Luckily I had a serial-to-USB cable so I could fix it.

That's partially my fault. I wrote a lot of the configuration command stuff for that module and there are a couple of bugs when it comes to validation for setting and deleting items so you can get yourself in a bad position. Plus there are some issues with EdgeOS which this seems to trigger. I migrated from Wireguard to ipsec quite a long time ago because it was less complicated for my particular needs. It has probab…

I'm running the latest 2.x firmware so I wasn't sure where to point fingers :)

I'll give it another shot at some point, but it was more just to try out. I've also got ipsec set up on that router and that continues to work just fine.

Re: Building a Simple VPN with WireGuard with a Raspberry Pi as Server

#123

Earlier quoted context omitted.

I was only able to get ~60mbps with OpenVPN through a hard wired Raspberry Pi 3 connected to Google Fiber, due to limitations of its bus. The 4 is supposed to be actual gigabit, but I have not yet tried it out to confirm.

Which bus limits to 60mbps? The USB limitation shouldn't be anywhere near that low.

I don't know, but you get the extra limitation of USB2 being half duplex. USB2 is something like 480mbps. Add half duplex limitations and just general overhead compared to theoretical max. I can see how some network protocols become limited to 60mbps.

Re: Building a Simple VPN with WireGuard with a Raspberry Pi as Server

#124
post #119

Earlier quoted context omitted.

That's partially my fault. I wrote a lot of the configuration command stuff for that module and there are a couple of bugs when it comes to validation for setting and deleting items so you can get yourself in a bad position. Plus there are some issues with EdgeOS which this seems to trigger. I migrated from Wireguard to ipsec quite a long time ago because it was less complicated for my particular needs. It has probab…

I'm running the latest 2.x firmware so I wasn't sure where to point fingers :) I'll give it another shot at some point, but it was more just to try out. I've also got ipsec set up on that router and that continues to work just fine.

I may dust my personal ER-X off soon and take a look at addressing the issues. I would have more enthusiasm about it if it didn't involve writing perl scripts.

If you do attempt it again there are "generate" commands which will generate they keys needed and place them in the proper area in the file system. Most of the guides to configuring Wireguard on edgeos seem unaware these exist and have people using the "wg" command directly instead to generate keys.

Re: Building a Simple VPN with WireGuard with a Raspberry Pi as Server

#125
post #124

Earlier quoted context omitted.

I'm running the latest 2.x firmware so I wasn't sure where to point fingers :) I'll give it another shot at some point, but it was more just to try out. I've also got ipsec set up on that router and that continues to work just fine.

I may dust my personal ER-X off soon and take a look at addressing the issues. I would have more enthusiasm about it if it didn't involve writing perl scripts. If you do attempt it again there are "generate" commands which will generate they keys needed and place them in the proper area in the file system. Most of the guides to configuring Wireguard on edgeos seem unaware these exist and have people using the "wg" co…

Ahhh good to know!

I think part of my issue is just that I need to do some more reading around what IPs should be what. It's usually clear what's going on in WireGuard-land, but not clear how that interacts with the other interfaces or the networks on either side.

Re: Building a Simple VPN with WireGuard with a Raspberry Pi as Server

#126

Earlier quoted context omitted.

I'm trying to set it up on a RPI4 as an 802.11ac wireless router, to verify this. If it manages 100mbps+ then it'll be a cheap replacement for my current router.

are you using OpenWRT or something else?

Starting with Ubuntu for now, and hostapd.
Post reply on HN