diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-12 21:24:22 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-12 21:35:58 +0100 |
commit | 3ba44927180453caa1d225d8a2275be382b7cbfb (patch) | |
tree | 67298069bd8f921aeb9516e6c254b5c3b0e1f014 /test/linuxserver/example_config/wg0.conf | |
parent | README: update (diff) | |
download | wg-api-web-3ba44927180453caa1d225d8a2275be382b7cbfb.tar.gz wg-api-web-3ba44927180453caa1d225d8a2275be382b7cbfb.zip |
test/linuxserver: add a test configuration
Diffstat (limited to '')
-rw-r--r-- | test/linuxserver/example_config/wg0.conf | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/linuxserver/example_config/wg0.conf b/test/linuxserver/example_config/wg0.conf new file mode 100644 index 0000000..48954e2 --- /dev/null +++ b/test/linuxserver/example_config/wg0.conf @@ -0,0 +1,25 @@ +[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 + |