From ac6672a56843bfd97f69b8b42a072638773d3217 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 12 Mar 2023 21:35:35 +0100 Subject: test/linuxserver: don't do catch-all AllowedIPs --- test/linuxserver/docker-compose.yml | 1 + test/linuxserver/example_config/.donoteditthisfile | 2 +- test/linuxserver/example_config/peer1/peer1.conf | 2 +- test/linuxserver/example_config/peer1/peer1.png | Bin 1125 -> 1127 bytes test/linuxserver/example_config/peer2/peer2.conf | 2 +- test/linuxserver/example_config/peer2/peer2.png | Bin 1137 -> 1134 bytes test/linuxserver/example_config/peer3/peer3.conf | 2 +- test/linuxserver/example_config/peer3/peer3.png | Bin 1146 -> 1132 bytes 8 files changed, 5 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/linuxserver/docker-compose.yml b/test/linuxserver/docker-compose.yml index 9713116..f1b2fe9 100644 --- a/test/linuxserver/docker-compose.yml +++ b/test/linuxserver/docker-compose.yml @@ -25,6 +25,7 @@ services: - SERVERPORT=51820 - PEERS=3 - INTERNAL_SUBNET=10.13.13.0 + - ALLOWEDIPS=10.13.13.0/24 - PEERDNS=off - LOG_CONFS=true networks: diff --git a/test/linuxserver/example_config/.donoteditthisfile b/test/linuxserver/example_config/.donoteditthisfile index 00bf371..d1c814b 100644 --- a/test/linuxserver/example_config/.donoteditthisfile +++ b/test/linuxserver/example_config/.donoteditthisfile @@ -3,5 +3,5 @@ ORIG_SERVERPORT="51820" ORIG_PEERDNS="off" ORIG_PEERS="3" ORIG_INTERFACE="10.13.13" -ORIG_ALLOWEDIPS="0.0.0.0/0, ::/0" +ORIG_ALLOWEDIPS="10.13.13.0/24" ORIG_PERSISTENTKEEPALIVE_PEERS="" diff --git a/test/linuxserver/example_config/peer1/peer1.conf b/test/linuxserver/example_config/peer1/peer1.conf index bc4ce64..ff373b7 100644 --- a/test/linuxserver/example_config/peer1/peer1.conf +++ b/test/linuxserver/example_config/peer1/peer1.conf @@ -7,4 +7,4 @@ DNS = off PublicKey = qqCJ8qR7mNe6Kkwym7ii979mCaJ2YC+2RYmFQoNVoUc= PresharedKey = t6OE7dlyynev/QEiPmvQ9YxRew/jTyiKCqGDNWeMCFU= Endpoint = 127.0.0.1:51820 -AllowedIPs = 0.0.0.0/0, ::/0 +AllowedIPs = 10.13.13.0/24 diff --git a/test/linuxserver/example_config/peer1/peer1.png b/test/linuxserver/example_config/peer1/peer1.png index c731c1a..59e3a5c 100644 Binary files a/test/linuxserver/example_config/peer1/peer1.png and b/test/linuxserver/example_config/peer1/peer1.png differ diff --git a/test/linuxserver/example_config/peer2/peer2.conf b/test/linuxserver/example_config/peer2/peer2.conf index 7ef1c79..4d20496 100644 --- a/test/linuxserver/example_config/peer2/peer2.conf +++ b/test/linuxserver/example_config/peer2/peer2.conf @@ -7,4 +7,4 @@ DNS = off PublicKey = qqCJ8qR7mNe6Kkwym7ii979mCaJ2YC+2RYmFQoNVoUc= PresharedKey = f386wjXiWLbMMhgI2OZYb/sRSh7oxcDnpeddIqqbmxU= Endpoint = 127.0.0.1:51820 -AllowedIPs = 0.0.0.0/0, ::/0 +AllowedIPs = 10.13.13.0/24 diff --git a/test/linuxserver/example_config/peer2/peer2.png b/test/linuxserver/example_config/peer2/peer2.png index 7630ed0..3b4bb62 100644 Binary files a/test/linuxserver/example_config/peer2/peer2.png and b/test/linuxserver/example_config/peer2/peer2.png differ diff --git a/test/linuxserver/example_config/peer3/peer3.conf b/test/linuxserver/example_config/peer3/peer3.conf index f09010b..882f0c2 100644 --- a/test/linuxserver/example_config/peer3/peer3.conf +++ b/test/linuxserver/example_config/peer3/peer3.conf @@ -7,4 +7,4 @@ DNS = off PublicKey = qqCJ8qR7mNe6Kkwym7ii979mCaJ2YC+2RYmFQoNVoUc= PresharedKey = RISZI5HXufwn2ABJNasT+PjKS+uZ530jlspWJjCpvSk= Endpoint = 127.0.0.1:51820 -AllowedIPs = 0.0.0.0/0, ::/0 +AllowedIPs = 10.13.13.0/24 diff --git a/test/linuxserver/example_config/peer3/peer3.png b/test/linuxserver/example_config/peer3/peer3.png index b3488b1..9e4d1a4 100644 Binary files a/test/linuxserver/example_config/peer3/peer3.png and b/test/linuxserver/example_config/peer3/peer3.png differ -- cgit v1.2.3