12 lines
640 B
Text
12 lines
640 B
Text
|
|
[Interface]
|
||
|
|
PrivateKey = uHzquwAzJX3rdpd6a0vi6if8uAB4P4mlZCt4UfNDTWQ=
|
||
|
|
Address = 10.0.1.1/24
|
||
|
|
ListenPort = 51820
|
||
|
|
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
||
|
|
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
|
||
|
|
SaveConfig = true
|
||
|
|
[Peer]
|
||
|
|
PublicKey = uzO2y6e4mKCy3NImBBx7LFiLV9lbsh6izIhv3gX7aBU=
|
||
|
|
AllowedIPs = 10.0.1.2/24
|
||
|
|
Endpoint = 172.104.154.82:51820
|