Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /etc/wireguard/wg0.conf
- [Interface]
- Address = 10.10.220.1/24
- SaveConfig = true
- PrivateKey = REDACTED
- ListenPort = 51820
- PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE
- PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eno1 -j MASQUERADE
- [Peer]
- #phone
- PublicKey = REDACTED
- AllowedIPs = 10.10.220.2/32
- ############################################################
- wg0-client.conf
- [Interface]
- Address = 10.10.220.2/32
- PrivateKey = REDACTED
- DNS = 10.10.220.1
- [Peer]
- PublicKey REDACTED
- Endpoint = REDACTED:51820
- AllowedIPs = 0.0.0.0/0
- PersistentKeepalive = 21
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement