Pro Custodibus Blog

procustodibus.com · Company blog · on HN since 2020

Pro Custodibus writes practical guides on WireGuard, covering network topologies, configuration, DNS, high availability and encryption setups.

What HN saysHN commenters call it super useful for setting up WireGuard and link its topology, point-to-point config and AllowedIPs calculator posts.
23HN people shared it
16linked it in comments
15stories submitted
153story points
7 months agolast shared
2020people per year2026

Most-shared posts

  1. 1
    WireGuard AllowedIPs Calculator
    6 people · 10 points · first shared 2021 · 1 comments on HN
  2. 2
  3. 3
    WireGuard End-to-End Encrypted Hub-and-Spoke
    2 people · 3 points · first shared 2022 · discussion on HN
  4. 4
    High Availability WireGuard on AWS
    2 people · 1 points · first shared 2021 · discussion on HN
  5. 5
    Wireguard topologies
    2 people · first shared 2022
  6. 6
    Wireguard point to point config
    2 people · first shared 2024
  7. 7
    WireGuard DNS Configuration for Systemd
    1 people · 65 points · first shared 2022 · 15 comments on HN
  8. 8
    Wayland Apps in WireGuard Docker Containers
    1 people · 49 points · first shared 2024 · 10 comments on HN
  9. 9
    Poor Man's BeyondCorp with WireGuard
    1 people · 5 points · first shared 2022 · discussion on HN
  10. 10
    Preventing Lateral Movement with WireGuard
    1 people · 4 points · first shared 2024 · 3 comments on HN
  11. 11
    Using WireGuard Keys for SSH
    1 people · 3 points · first shared 2024 · discussion on HN
  12. 12
    Pro Custodibus – WireGuard VPN Management
    1 people · 3 points · first shared 2020 · discussion on HN
  13. 13
    WireGuard Endpoints and IP Addresses
    1 people · 3 points · first shared 2024 · discussion on HN
  14. 14
    WireGuard Transparent Tunnel
    1 people · 1 points · first shared 2023 · discussion on HN
  15. 15
    An Opinionated Yubikey Set-Up Guide
    1 people · 1 points · first shared 2023 · discussion on HN

What HN people wrote when they linked it

imiric · 2026-03-31
Tailscale is not different. It simply makes managing WG configuration easier, and adds some useful value-added features on top. But, as you know, you can also manage this configuration yourself, either via traditional config mgmt tools, helpers like wg-meshconf, or even plain shell scripts, if you like. I'm aware this is a very HN-Dropboxy comment, but it's really not that complex[1], and is easily manageable for a small deployment. Another VPN tool I used before WG gained momentum was tinc, which supports mesh networking out of the box. It's even easier to configure and maintain, and supports all platforms. It does run in userspace, which should make it slower than WG, but I found the performance acceptable for my modest use cases. Highly recommended. [1]: https://www.procustodibus.com/blog/2020/11/wireguard-point-to-point-co…
age123456gpg · 2025-10-04
WireGuard over WireGuard (WireGuard end-to-end encrypted hub and spoke) example https://www.procustodibus.com/blog/2021/12/wireguard-e2ee-hub-and-spok…
entangledqubit · 2024-11-24
Not to hijack but last time I was setting up wireguard, I found this site to be super useful: https://www.procustodibus.com/blog/2020/10/wireguard-topologies/
throwitaway1123 · 2024-08-23
WireGuard is honestly very easy to set up. All of the commands feel very straightforward: https://www.procustodibus.com/blog/2020/11/wireguard-point-to-point-co… You can definitely run an HTTP server behind WireGuard. WireGuard just adds a network interface that your server can listen on (e.g. your server would listen on a private address like 10.0.0.1).
ano-ther · 2024-01-12
Good article. Is there an easy solution to route everything except the local net through WireGuard? I find the resulting long list of AllowedIPs a bit cumbersome (and impossible to verify). https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calcul…
karmarepellent · 2024-01-12
Isn't this use case covered in the article that you mentioned? Specifically under the very last heading. https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calcul… That is you could specify a single Wireguard peer that you send all the traffic to by setting AllowedIPs to 0.0.0.0/0 and also set more specific routes than 0.0.0.0/0 in the main routing table of your device in order to send traffic to certain networks via a different gateway.
rudasn · 2023-12-08
I found the blog articles on https://www.procustodibus.com/blog/ super helpful and well written. You don't have to use their service to implement what they describe, in most cases.
0x457 · 2023-12-07
I don't think you need Tailscale for this. You need tailscale when: 1) You have a lot of road-warriors 2) You need decent ACLs that isn't just IP based. 3a) You don't ability to directly connect to a site (just one needs to be accessible) 3b) You can't add 3rd site to relay traffic or punch holes in NAT. 4) You're afraid of terminals and/or text editors. Here is a good write-up on the subject: https://www.procustodibus.com/blog/2021/11/wireguard-nftables/
winecamera · 2023-08-16
There's this handy website that calculates the allowed CIDRs with exclusions https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calcul…
sneakerblack · 2023-03-11
It seems like you can by using the PIV applet found in yubikeys: https://www.procustodibus.com/blog/2023/02/wireguard-yubikey/ You can read more about the type of cryptography that wireguard uses here: https://www.wireguard.com/protocol/
paol · 2022-07-27
Take a look a these (not tested these configurations personally): - High Availability WireGuard on AWS [https://www.procustodibus.com/blog/2021/02/ha-wireguard-on-aws/] - High Availability WireGuard on Azure [https://www.procustodibus.com/blog/2021/06/ha-wireguard-on-azure/] - High Availability WireGuard Site to Site [https://www.procustodibus.com/blog/2021/10/ha-wireguard-site-to-site/]
slau · 2025-07-17
Yes, it is wrong. You just misunderstand how routing works. Say you’re at work, and the office router (192.168.1.1) gives you access to 10.3.0.0/16. This is where your company’s cloud is or whatever. You want all your traffic to go through your home network for whatever convoluted reason, except for the 10.3 stuff. You just add PreUp = ip route add 10.3.0.0/16 via 192.168.1.1 dev eth0 And AllowedIPs = 0.0.0.0/0 (Edit: remember to add a post up) And bam, you’re done. No crazy allowedip rules. When your computer generates packets to the company cloud, your OS won’t even try to talk to the VPN. Because the route table makes it go somewhere else entirely. I don’t know if this was the exact use-case you described in your blog, but I’m sure you can figure it out from here. Oh and this is also fully documented online in many places, including the AllowedIPs Calculator: https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calcul…
its-summertime · 2025-04-11
Edit: Sorry for what an opinionated mini rant this comment has become while typing it ;; > The so called ‘rootless’ Podman seems to be advertised as being on the same level of isolation as Jails – but only if You run that Podman with properly configured and enabled SELinux/AppArmor solutions. That ignores user namespacing, the subsequent namespacing for mounts, networks, etc. So I'm confused as to where the it-only-is-secure-with-selinux comes from. > Then the Jails are better isolated again How so. - - - > Even ‘rootless’ Podman has full access to all Linux kernel syscalls from https://podman.io/blogs/2019/10/15/generate-seccomp-profiles.html Most container tools use a default seccomp filter which was initially written by Jesse Frazelle for Docker - - - > Jails have restricted use of FreeBSD kernel syscalls without any additional tools Which ones > You can NOT dedicate any physical interface to the ‘rootless’ Podman container I'm confused by what you mean "physical" here. Can also disable networking, which is mentioned for jails for some reason. So is other VPN-like options, not mentioned for Podman. https://www.procustodibus.com/blog/2022/10/wireguard-in-podman/ as an example > firewall https://discuss.linuxcontainers.org/t/how-does-nftables-work-inside-an… > comparing CVE counts and nothing else Come on - - - This article seems like it would strongly contribute to people misunderstanding things.
nfbyte · 2022-05-28
It's not just that they're suspect or unreliable. They're complete bullshit. The actual use of VPN technology is to create virtual networks that are private (hence the name). It's a system level technology. There are several types of network topologies you can set up, when I was learning about this I found this article which is quite nice: https://www.procustodibus.com/blog/2020/10/wireguard-topologies. You can proxy traffic through a VPN, but the only scenario I can think of in which it makes sense is if you are an OSINT researcher and you need a safe system on which to conduct your research. If you need to proxy traffic and "hide" your IP, just use a flipping proxy. It's an application level technology (e.g. for torrenting, every torrent client under the sun supports a SOCKS5 proxy). If you don't have the patience to set up a VPS yourself, you can even use something like Outline (https://getoutline.org) which automates that (and it has a mobile client app as well). If you need privacy (and to actually hide your IP), then use Tor.

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close