aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/test/linuxserver/example_config/wg0.conf
blob: 48954e212ceab1af707446a62599c1c35f8d34f0 (plain) (tree)
























                                                                                                                                         
[Interface]
Address = 10.13.13.1
ListenPort = 51820
PrivateKey = 8PudiDNyChBnnwRfx21a1qjvCGu1U1H+em9xbepCPXo=
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE

[Peer]
# peer1
PublicKey = 5K7R+QjsV7nCtDbBMJlujiFuU0Y22VGmg+furfYKCRA=
PresharedKey = t6OE7dlyynev/QEiPmvQ9YxRew/jTyiKCqGDNWeMCFU=
AllowedIPs = 10.13.13.2/32

[Peer]
# peer2
PublicKey = cUgCQRZpnqKvLd/XcKbGP2kItCWAt+8L475MUMCOTWk=
PresharedKey = f386wjXiWLbMMhgI2OZYb/sRSh7oxcDnpeddIqqbmxU=
AllowedIPs = 10.13.13.3/32

[Peer]
# peer3
PublicKey = Nf+DkYmYWtpCC5IPVqorUqHRbxiFaHrrTV8YR4whwAo=
PresharedKey = RISZI5HXufwn2ABJNasT+PjKS+uZ530jlspWJjCpvSk=
AllowedIPs = 10.13.13.4/32