engin akyurt via unsplash

In the third part of this series on Netmaker/Wireguard for the home LAN, (part 1, part 2) let’s set up another wireguard network, featuring our external vps server which we’re going to use to browse the web from a different IP address to dodge ISP filtering, much as one might via a commerical VPN provider.

Setup Instructions

checking dependencies...
wireguard
wireguard is installed
OS Version = Linux
Netclient Version = v0.8.5
Binary = netclient
Downloading netclient latest
2021-11-09 13:12:53 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/351486934/80a8af5c-c812-427a-8246-c70a2e053c49?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211109%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211109T131251Z&X-Amz-Expires=300&X-Amz-Signature=12c51211f87705a11bd2fa5d70f9a2c148c2aeda986d4eaf48c5d9dbd451aa77&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=351486934&response-content-disposition=attachment%3B%20filename%3Dnetclient&response-content-type=application%2Foctet-stream [15128045/15128045] -> "netclient" [1]
2021/11/09 13:12:53 [netclient] joining vpn at <EXTERNAL_IP>:4444
2021/11/09 13:12:55 [netclient] node created on remote server...updating configs
2021/11/09 13:12:56 [netclient] retrieving peers
2021/11/09 13:12:56 [netclient] starting wireguard
2021/11/09 13:12:57 [netclient] joined vpn

Additional Notes

If you want to be able to add new clients to the LAN tunnel via SSH from offsite, you will need to add the vps to the home network as well as the vpn one. Remember that netclient is already installed there, so you can add another network like so:

sudo netclient join -t <ACCESS_TOKEN> --name <NODE_NAME>

Then you’ll need to use ssh to set up a SOCKS proxy on the VPS, like so:

ssh -D your.vps.com -D1337

Then configure your browser to connect to a SOCKS proxy on localhost port 1337. You are then effectively joined to your home LAN, but only through the browser. You can then browse to http://$INTERNAL_IP:8002 and add yourself as a new client, and enjoy full highspeed systemwide routing rather than just through through the browser.

This concludes my series on netmaker. Hope you found it helpful! 😊