News for hackers. Stuff that matters.
Re:How to Make a Raspberry Pi VPN Server by pw6hv on Tuesday January 14, 2020 @01:48PM (#22047946)
I would never suggest OpenVPN when there is something like Wireguard. I switched to WG few years ago and the performance boost on a old Raspberry Pi v1 was astonishing since it has much lower requirements wrt to the CPU.
Re:How to Make a Raspberry Pi VPN Server by w0utert on Tuesday January 14, 2020 @01:53PM (#22048012)
It's also way easier to setup, and it covers all basic VPN needs for almost all home-VPN use cases.

I remember spending a whole day configuring OpenVPN, lots of packages, certificates, key files, no clue what half of the things I was doing were for. I also didn't particularly like the OpenVPN iOS client. Setting up WireGuard took less than an hour, every step of the process made sense, and it allowed me to remove a whole lot of cruft from my server.

Re:How to Make a Raspberry Pi VPN Server by milankragujevic on Wednesday January 15, 2020 @02:39AM (#22052382)
I have the opposite experience. Setting up OpenVPN is as easy as:

wget https://git.io/vpn -O vpn.sh

* inspect the file manually for malware etc.*

sudo bash ./vpn.sh

You enter your IP, port, protocol, client name and it generates a .ovpn file that you import into any client and it just works.

If you need to revoke a client or add another one, re-run the script and it will ask you what to do. It can also uninstall itself safely.

I still haven't managed to setup WireGuard.

OpenVPN gets about 40 Mbps for me on the Pi, but my upload is less, so I don't need more. On a VPS, it gets about 90 Mbps.

Re:How to Make a Raspberry Pi VPN Server by w0utert on Wednesday January 15, 2020 @04:25AM (#22052859)
For things that run on my home server I like to at least have the impression I know what I'm installing and how it is configured, so a magic script like you referred to is not really an option.

I used this guide to configure OpenVPN [1], which you could almost publish as a paperback ;-)

[1] https://www.digitalocean.com/community/tutorials/how-to-set-...

Re:How to Make a Raspberry Pi VPN Server by milankragujevic on Wednesday January 15, 2020 @04:30AM (#22052881)
Well, you could always open the script.

It's magic in that it does everything itself, it's not a black box.

It's only 460 lines with whitespace and comments, including the files it's writing to the filesystem.

Re:How to Make a Raspberry Pi VPN Server by wufocaculura on Thursday January 16, 2020 @04:42AM (#22062990)
I agree that setting up OpenVPN for the first time might be quite messy, so such script can be useful - it is quite simple and lets you do standard setup.

What I am wondering - it is using a pregenerated dh param file (I can understsand why - to make the initial process faster). I am not much into crypto, with all the other elements being created during the setup process, how big no-no is having a predefined dh file?

Re:How to Make a Raspberry Pi VPN Server by lifthrasiir on Wednesday January 15, 2020 @03:13AM (#22052505)
For me OpenVPN server was not that hard to manually set up, but clients were really messy. I had various problems with both OpenVPN for Android and Tunnelblick (for macOS), where the latter were problematic enough for me to switch to WireGuard with no regret.
Re:How to Make a Raspberry Pi VPN Server by milankragujevic on Wednesday January 15, 2020 @04:20AM (#22052833)
I had no problems with OpenVPN Connect which is the "official" client for Android. For a short time I used Mac OS X (before rebranding), Tunnelblick never worked properly. I forgot the exact problems, but mainly crashing of the software that locks up all network interfaces until reboot, constant disconnecting, and one text field which was unfillable.
Re:How to Make a Raspberry Pi VPN Server by sbarre on Tuesday January 14, 2020 @02:16PM (#22048227)
Would you have a link to a good reference/tutorial for Wireguard?
Re:How to Make a Raspberry Pi VPN Server by close04 on Tuesday January 14, 2020 @02:33PM (#22048376)
These are pretty easy to follow (if you don't use something like dietPi):

https://github.com/adrianmihalko/raspberrypiwireguard

https://grh.am/2018/wireguard-setup-guide-for-ios/

Re:How to Make a Raspberry Pi VPN Server by mbesto on Tuesday January 14, 2020 @11:17PM (#22051728)
Note https://github.com/adrianmihalko/raspberrypiwireguard has some outdated script responses in it. I learned this the hard way.
Re:How to Make a Raspberry Pi VPN Server by forgingahead on Tuesday January 14, 2020 @11:34PM (#22051786)
Are you able to submit a PR with the updated information? Thanks!
Re:How to Make a Raspberry Pi VPN Server by catalogia on Tuesday January 14, 2020 @06:14PM (#22050216)
The "Unofficial Wireguard Documentation" was good when I went through it: https://github.com/pirate/wireguard-docs

https://news.ycombinator.com/item?id=20036194

Re:How to Make a Raspberry Pi VPN Server by newman314 on Wednesday January 15, 2020 @01:13AM (#22052098)
See trailofbits algo. If you can setup using that, things are super easy to get working after that.
Re:How to Make a Raspberry Pi VPN Server by SpikedCola on Tuesday January 14, 2020 @04:49PM (#22049585)
Do you know if WireGuard supports DHCP yet? I can only find wg-dynamic[0] but it doesn't look like it's functional.

[0] https://github.com/WireGuard/wg-dynamic/blob/master/docs/ide...

Re:How to Make a Raspberry Pi VPN Server by fs111 on Wednesday January 15, 2020 @05:17AM (#22053087)
OpenVPN can work over TCP 443 and that is sometimes necessary for really dumb wifi networks (like a café in my area). wireguard does not.
Re:How to Make a Raspberry Pi VPN Server by thefz on Wednesday January 15, 2020 @04:06AM (#22052760)
Only thing stopping me from setting up an Rpi on wireguard as a VPN bridge (I'm using mullvad's excellent application) is that so far I haven't been able to successfully set up the firewall so that all traffic gets into wg0 except for ssh, with which I connect to in SOCKS5 proxy (from work). Some sort of split tunnel.
Re:How to Make a Raspberry Pi VPN Server by stamps on Tuesday January 14, 2020 @06:28PM (#22050294)
Unfortunately Wireguard doesn't work on PFsense/FreeBSD otherwise I would be using it.

OpenVPN is generally well supported.

Re:How to Make a Raspberry Pi VPN Server by antxxxx on Tuesday January 14, 2020 @07:12PM (#22050574)
Its available in ports and works fine https://www.freshports.org/net/wireguard/
Re:How to Make a Raspberry Pi VPN Server by brokenfilez on Tuesday January 14, 2020 @05:57PM (#22050119)
Seconding this, and that is one of my main points of irritation about the tech world, and the world in general. That we keep permeating outdated solutions in new articles and blog posts and elsewhere, when other actually superior solutions have been found.