From 3ba44927180453caa1d225d8a2275be382b7cbfb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 12 Mar 2023 21:24:22 +0100 Subject: test/linuxserver: add a test configuration --- test/linuxserver/example_config/wg0.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/linuxserver/example_config/wg0.conf (limited to 'test/linuxserver/example_config/wg0.conf') 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 + -- cgit v1.2.3