MARIA3
Member
OP
- Joined:
- Jul 2024
- Posts:
- 126
- From:
- Madrid, ES
I make a server up in 5 place: home, office, parents house, two VPS (Vultr and RackNerd). Before I use OpenVPN but is slow and hard to manage.
New setup: all node connect to all, full mesh. I use `wg` and small bash script for add peers.
Diagram:
home <----> office
| \ / |
| \ / |
| vps1 |
| / \ |
v v v v
parents<-->vps2
Config is same in all, only change Endpoint and AllowedIPs. I use /24 for all tunnel, assign from 10.200.200.0/24.
For firewall I am open UDP 51820 only. Regards.
siesta first, deploy later
lookuppierre
Member
- Joined:
- Aug 2024
- Posts:
- 113
- From:
- Lyon, France
«the Preshared Key» is for the Post-Quantum, oui? I am read the WireGuard paper and the PSK is «the Optional» but I am use anyway.
My config is more complex, I have 7 node. The script for add peer is the Python, not bash. I am share if someone want.
prix fixe infrastructure: €5/mo
olespete
Member
Trust No One
- Joined:
- Jun 2024
- Posts:
- 270
- From:
- Unknown
WHAT ABOUT THE REST OF THE ATTACK SURFACE
Without proper hardening:
- WG listens on 0.0.0.0 by default — restrict to interface!
- No fail2ban on WG port — brute force possible
- Missing sysctl hardening: net.ipv4.conf.all.rp_filter
- No key rotation schedule
Also implement firewall rules on EACH node:
iptables -A INPUT -i wg0 -j ACCEPT
iptables -A INPUT -p udp --dport 51820 -m state --state NEW -j ACCEPT
iptables -P INPUT DROP
I have seen mesh without preshared keys in PRODUCTION. The admin was fired.
https://www.wireguard.com
airgapped, encrypted, faraday'd, still worried