3 ms·
Does anyone have detailed instructions/guide on how to set Wireguard up to allow my laptop to VPN back to my house through an always-on host there (basically tw
by StavrosK 9y ago
Does anyone have detailed instructions/guide on how to set Wireguard up to allow my laptop to VPN back to my house through an always-on host there (basically two Ubuntu machines)? I'm not great at networking and I'd rather not spend hours breaking my entire network trying to set this up.
The "getting started" guide on the website already assumes you can set up your own routing across the different subnets.
- number6 9y agoJust follow the instruction on the video. That's all there is to get it running. The archlinux wiki also give some tips but it is really simple
- StavrosK 9y agoAh, I skipped the video in favor of the text guide but I'll watch it, thank you.
- jessaustin 9y agoISTM that enough people always "skip the video" that no information should be confined strictly to video.
- hamandcheese 9y agoThe video merely connects two hosts (IIRC). If you want what you expect from a normal client-server VPN acting as a gateway to a private network, you'll need to enable IP forwarding on the "server" and ensure routes are correctly configured on the "client".
- number6 9y agoHere is a blog post on this topic: https://vincent.bernat.im/en/blog/2018-route-based-vpn-wireguard https://vincent.bernat.im/en/blog/2018-route-based-vpn-wireg... Didn't tried it myself but it looks solid
- freeopinion 9y agoGood news. It won't take you hours to setup. More like 10 minutes, including installation. https://www.wireguard.com/quickstart/ https://www.wireguard.com/quickstart/ It's the simplest VPN setup I've ever seen.
- StavrosK 9y agoAs I mentioned in my comment, I've read that, and connecting the two points is easy, but what I don't know is how to get my traffic from the second point to the rest of the house. I imagine that if I add an interface in the same subnet as the rest of the devices, I'll confuse stuff, and if I don't, I'll have to somehow relay the traffic from one interface to the other.
- hamandcheese 9y agoOn the linux "server" you'll want to enable IP packet forwarding (essentially allowing it to function as a router). Packets destined for elsewhere on the lan will then be forwarded according to your routing table (so it should probably Just Work if the machine can already reach the rest of the lan). http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/ http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-... On the "client" side you'll likely want a static route for your lan that ensures those packets go over your wireguard interface.
- StavrosK 9y agoAh, that sounds good, thank you! I should be able to figure it out with that.
- craftyguy 9y agoNote that this is has not hit a stable version yet, and the wireguard developers even recommend not using wireguard: https://www.wireguard.com/#work-in-progress https://www.wireguard.com/#work-in-progress