Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Server
- [Interface]
- PrivateKey = redacted
- Address = 10.29.0.1/24
- ListenPort = redacted
- PreUp =
- PostUp = iptables -t nat -A POSTROUTING -s 10.29.0.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport redacted -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT;
- PreDown =
- PostDown = iptables -t nat -D POSTROUTING -s 10.29.0.0/24 -o eth0 -j MASQUERADE; iptables -D INPUT -p udp -m udp --dport redacted -j ACCEPT; iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT;
- # Client: b
- [Peer]
- PublicKey = redacted
- PresharedKey = redacted
- AllowedIPs = 10.29.0.2/32
- # Client: c
- [Peer]
- PublicKey = redacted
- PresharedKey = redacted
- AllowedIPs = 10.29.0.3/32
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement