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/templates/server.conf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/linuxserver/example_config/templates/server.conf (limited to 'test/linuxserver/example_config/templates/server.conf') diff --git a/test/linuxserver/example_config/templates/server.conf b/test/linuxserver/example_config/templates/server.conf new file mode 100644 index 0000000..757682d --- /dev/null +++ b/test/linuxserver/example_config/templates/server.conf @@ -0,0 +1,6 @@ +[Interface] +Address = ${INTERFACE}.1 +ListenPort = 51820 +PrivateKey = $(cat /config/server/privatekey-server) +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 -- cgit v1.2.3