16 lines
526 B
Plaintext
16 lines
526 B
Plaintext
[Interface]
|
|
Address = 10.200.200.1/24
|
|
ListenPort = 1194
|
|
PrivateKey = <server private key>
|
|
|
|
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o <interface name> -j MASQUERADE
|
|
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o i -j ACCEPT; iptables -t nat -D POSTROUTING -o <interface name> -j MASQUERADE
|
|
|
|
[Peer]
|
|
PublicKey = <client public key>
|
|
AllowedIPs = 10.200.200.2/32
|
|
|
|
[Peer]
|
|
PublicKey = <client public key>
|
|
AllowedIPs = 10.200.200.3/32
|