2022-08-22 02:16:33 +03:00
|
|
|
[Interface]
|
2022-08-24 01:18:38 +03:00
|
|
|
Address = 10.20.30.2/32
|
|
|
|
PrivateKey = 6CCRP42JiTObyf64Vo0BcqsX6vptsqOU+MKUslUun28=
|
2022-08-23 23:12:01 +03:00
|
|
|
PostUp = iptables -t nat -A POSTROUTING -o `ip route | awk '/default/ {print $5; exit}'` -j MASQUERADE
|
|
|
|
PostDown = iptables -t nat -D POSTROUTING -o `ip route | awk '/default/ {print $5; exit}'` -j MASQUERADE
|
2022-08-22 02:16:33 +03:00
|
|
|
|
|
|
|
#internal node
|
|
|
|
[Peer]
|
2022-08-24 01:18:38 +03:00
|
|
|
PublicKey = MxnOnIlKfSyZyRutnYyoWHb3Izjalgf1t8F1oPJiyyw=
|
|
|
|
AllowedIPs = 10.20.30.0/24
|
|
|
|
Endpoint = 195.2.79.13:17968
|
|
|
|
PersistentKeepalive = 25
|