wg(4), pf(4), and relayd(8): a love story
-
tl;dr I used
wg(4),pf(4), andrelayd(8), all OpenBSD native tools, to encrypt all inbound connections from a gateway VPS to my local home server. This also hides my local IP information and I managed it all without much hassle and pain.I recently stood up a VPS running OpenBSD 7.9 on Vultr. The VPS is hosted in Chicago, Illinois, USA. I then took OpenBSD's native WireGuard driver,
wg(4), to establish an encrypted tunnel to my local home lab server. Usingrelayd(8), OpenBSD's native reverse proxy, I can now forward virtual host connections to my home lab server, which hashttpd(8)as a web server frontend. I usedpf.conf(5)to configure OpenBSD's native fireweall,pf(4), which was incredibly easy.The result is a secure gateway that routes all traffic via WireGuard to my local server, obfuscating its location and other IP information. This was done by simply configuring handful of system daemons. I've done some OpenBSD network configuration before, but this was the most work I've done. The best part, it wasn't that difficult, and all
manual pages provided sufficient details to work with them.Once I get my site set up I'll write up the experience and step-by-step instructions and share the page here.
New OpenBSD milestone unlocked; no intent to stop anytime soon
Happy hacking, hackers!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login