mirror of
https://github.com/vvzvlad/trickster-vpn.git
synced 2024-11-17 02:59:12 +03:00
19 lines
677 B
Plaintext
19 lines
677 B
Plaintext
|
[Interface]
|
||
|
Address = 10.20.30.1/32
|
||
|
ListenPort = 17968
|
||
|
PrivateKey = ---PRIVATE_KEY_INTERNAL---
|
||
|
PostUp = iptables -t nat -A POSTROUTING -o `ip link show | awk -F ': ' '/state UP/ {print $2}'` -j MASQUERADE
|
||
|
PostUp = ip rule add from `ip route | awk '/default/ {print $3; exit}'` table main
|
||
|
PostDown = iptables -t nat -D POSTROUTING -o `ip link show | awk -F ': ' '/state UP/ {print $2}'` -j MASQUERADE
|
||
|
PostDown = ip rule del from `ip route | awk '/default/ {print $3; exit}'` table main
|
||
|
|
||
|
#external node
|
||
|
[Peer]
|
||
|
PublicKey = ---PUBLIC_KEY_EXTERNAL---
|
||
|
AllowedIPs = 10.20.30.2/32, 0.0.0.0/0
|
||
|
|
||
|
#mobile-client node
|
||
|
[Peer]
|
||
|
PublicKey = ---PUBLIC_KEY_CLIENT_1---
|
||
|
AllowedIPs = 10.20.30.3/32
|