mirror of
https://github.com/myronblair/do-server-config
synced 2026-06-30 17:50:59 -05:00
12 lines
526 B
Plaintext
12 lines
526 B
Plaintext
[Interface]
|
|
PrivateKey = YNWpzXKA9xI486wf3Ya4tIs2vgjaRVaClQKKx0Z1V0g=
|
|
Address = 10.201.0.1/24
|
|
ListenPort = 51820
|
|
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
|
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
|
|
|
|
[Peer]
|
|
# Alpine LXC wg-exit client
|
|
PublicKey = zTik4LA5WlzlP83iz/8Qjx5wDwIDJJtBcoqenBXjew8=
|
|
AllowedIPs = 10.201.0.2/32, 10.200.0.0/24
|