From c18f1a76759e6a45009433915f4839b6f8bf8525 Mon Sep 17 00:00:00 2001 From: pstruebi Date: Thu, 27 Mar 2025 16:43:16 +0000 Subject: [PATCH] update docker compose and readme --- docker-compose.yaml | 68 ++++++++++++----------- readme.md | 2 +- wg_conf/.donoteditthisfile | 7 +++ wg_conf/coredns/Corefile | 6 +++ wg_conf/peer1/peer1.conf | 11 ++++ wg_conf/peer1/peer1.png | Bin 0 -> 1142 bytes wg_conf/peer1/presharedkey-peer1 | 1 + wg_conf/peer1/privatekey-peer1 | 1 + wg_conf/peer1/publickey-peer1 | 1 + wg_conf/peer10/peer10.conf | 11 ++++ wg_conf/peer10/peer10.png | Bin 0 -> 1137 bytes wg_conf/peer10/presharedkey-peer10 | 1 + wg_conf/peer10/privatekey-peer10 | 1 + wg_conf/peer10/publickey-peer10 | 1 + wg_conf/peer11/peer11.conf | 11 ++++ wg_conf/peer11/peer11.png | Bin 0 -> 1130 bytes wg_conf/peer11/presharedkey-peer11 | 1 + wg_conf/peer11/privatekey-peer11 | 1 + wg_conf/peer11/publickey-peer11 | 1 + wg_conf/peer2/peer2.conf | 11 ++++ wg_conf/peer2/peer2.png | Bin 0 -> 1133 bytes wg_conf/peer2/presharedkey-peer2 | 1 + wg_conf/peer2/privatekey-peer2 | 1 + wg_conf/peer2/publickey-peer2 | 1 + wg_conf/peer3/peer3.conf | 11 ++++ wg_conf/peer3/peer3.png | Bin 0 -> 1127 bytes wg_conf/peer3/presharedkey-peer3 | 1 + wg_conf/peer3/privatekey-peer3 | 1 + wg_conf/peer3/publickey-peer3 | 1 + wg_conf/peer4/peer4.conf | 11 ++++ wg_conf/peer4/peer4.png | Bin 0 -> 1144 bytes wg_conf/peer4/presharedkey-peer4 | 1 + wg_conf/peer4/privatekey-peer4 | 1 + wg_conf/peer4/publickey-peer4 | 1 + wg_conf/peer5/peer5.conf | 11 ++++ wg_conf/peer5/peer5.png | Bin 0 -> 1146 bytes wg_conf/peer5/presharedkey-peer5 | 1 + wg_conf/peer5/privatekey-peer5 | 1 + wg_conf/peer5/publickey-peer5 | 1 + wg_conf/peer6/peer6.conf | 11 ++++ wg_conf/peer6/peer6.png | Bin 0 -> 1135 bytes wg_conf/peer6/presharedkey-peer6 | 1 + wg_conf/peer6/privatekey-peer6 | 1 + wg_conf/peer6/publickey-peer6 | 1 + wg_conf/peer7/peer7.conf | 11 ++++ wg_conf/peer7/peer7.png | Bin 0 -> 1135 bytes wg_conf/peer7/presharedkey-peer7 | 1 + wg_conf/peer7/privatekey-peer7 | 1 + wg_conf/peer7/publickey-peer7 | 1 + wg_conf/peer8/peer8.conf | 11 ++++ wg_conf/peer8/peer8.png | Bin 0 -> 1135 bytes wg_conf/peer8/presharedkey-peer8 | 1 + wg_conf/peer8/privatekey-peer8 | 1 + wg_conf/peer8/publickey-peer8 | 1 + wg_conf/peer9/peer9.conf | 11 ++++ wg_conf/peer9/peer9.png | Bin 0 -> 1139 bytes wg_conf/peer9/presharedkey-peer9 | 1 + wg_conf/peer9/privatekey-peer9 | 1 + wg_conf/peer9/publickey-peer9 | 1 + wg_conf/server/privatekey-server | 1 + wg_conf/server/publickey-server | 1 + wg_conf/templates/peer.conf | 11 ++++ wg_conf/templates/server.conf | 6 +++ wg_conf/wg_confs/wg0.conf | 84 +++++++++++++++++++++++++++++ 64 files changed, 309 insertions(+), 31 deletions(-) create mode 100644 wg_conf/.donoteditthisfile create mode 100644 wg_conf/coredns/Corefile create mode 100644 wg_conf/peer1/peer1.conf create mode 100644 wg_conf/peer1/peer1.png create mode 100644 wg_conf/peer1/presharedkey-peer1 create mode 100644 wg_conf/peer1/privatekey-peer1 create mode 100644 wg_conf/peer1/publickey-peer1 create mode 100644 wg_conf/peer10/peer10.conf create mode 100644 wg_conf/peer10/peer10.png create mode 100644 wg_conf/peer10/presharedkey-peer10 create mode 100644 wg_conf/peer10/privatekey-peer10 create mode 100644 wg_conf/peer10/publickey-peer10 create mode 100644 wg_conf/peer11/peer11.conf create mode 100644 wg_conf/peer11/peer11.png create mode 100644 wg_conf/peer11/presharedkey-peer11 create mode 100644 wg_conf/peer11/privatekey-peer11 create mode 100644 wg_conf/peer11/publickey-peer11 create mode 100644 wg_conf/peer2/peer2.conf create mode 100644 wg_conf/peer2/peer2.png create mode 100644 wg_conf/peer2/presharedkey-peer2 create mode 100644 wg_conf/peer2/privatekey-peer2 create mode 100644 wg_conf/peer2/publickey-peer2 create mode 100644 wg_conf/peer3/peer3.conf create mode 100644 wg_conf/peer3/peer3.png create mode 100644 wg_conf/peer3/presharedkey-peer3 create mode 100644 wg_conf/peer3/privatekey-peer3 create mode 100644 wg_conf/peer3/publickey-peer3 create mode 100644 wg_conf/peer4/peer4.conf create mode 100644 wg_conf/peer4/peer4.png create mode 100644 wg_conf/peer4/presharedkey-peer4 create mode 100644 wg_conf/peer4/privatekey-peer4 create mode 100644 wg_conf/peer4/publickey-peer4 create mode 100644 wg_conf/peer5/peer5.conf create mode 100644 wg_conf/peer5/peer5.png create mode 100644 wg_conf/peer5/presharedkey-peer5 create mode 100644 wg_conf/peer5/privatekey-peer5 create mode 100644 wg_conf/peer5/publickey-peer5 create mode 100644 wg_conf/peer6/peer6.conf create mode 100644 wg_conf/peer6/peer6.png create mode 100644 wg_conf/peer6/presharedkey-peer6 create mode 100644 wg_conf/peer6/privatekey-peer6 create mode 100644 wg_conf/peer6/publickey-peer6 create mode 100644 wg_conf/peer7/peer7.conf create mode 100644 wg_conf/peer7/peer7.png create mode 100644 wg_conf/peer7/presharedkey-peer7 create mode 100644 wg_conf/peer7/privatekey-peer7 create mode 100644 wg_conf/peer7/publickey-peer7 create mode 100644 wg_conf/peer8/peer8.conf create mode 100644 wg_conf/peer8/peer8.png create mode 100644 wg_conf/peer8/presharedkey-peer8 create mode 100644 wg_conf/peer8/privatekey-peer8 create mode 100644 wg_conf/peer8/publickey-peer8 create mode 100644 wg_conf/peer9/peer9.conf create mode 100644 wg_conf/peer9/peer9.png create mode 100644 wg_conf/peer9/presharedkey-peer9 create mode 100644 wg_conf/peer9/privatekey-peer9 create mode 100644 wg_conf/peer9/publickey-peer9 create mode 100644 wg_conf/server/privatekey-server create mode 100644 wg_conf/server/publickey-server create mode 100644 wg_conf/templates/peer.conf create mode 100644 wg_conf/templates/server.conf create mode 100644 wg_conf/wg_confs/wg0.conf diff --git a/docker-compose.yaml b/docker-compose.yaml index f0b5452..f874a06 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -31,25 +31,56 @@ services: environment: - PUID=1000 - PGID=1000 - - TZ=Etc/UTC - - SERVERURL=vpn-hinterwaldner.duckdns.org + - TZ=Europe/Vienna + - SERVERURL=vpn.pstruebi.xyz - SERVERPORT=51821 #optional - - PEERS=raspi #optional + - PEERS=11 #optional - PEERDNS=auto #optional + - PERSISTENTKEEPALIVE_PEERS=all + - ALLOWEDIPS=0.0.0.0/0 #optional #- INTERNAL_SUBNET=10.13.13.0 #optional - #- ALLOWEDIPS=0.0.0.0/0 #optional - #- PERSISTENTKEEPALIVE_PEERS= #optional #- LOG_CONFS=true #optional volumes: - - wireguard:/config + - ./wg_conf:/config + #- wireguard:/config #- /lib/modules:/lib/modules #optional ports: - 51821:51820/udp + - "7999:7999" #auracast-translator sysctls: - net.ipv4.conf.all.src_valid_mark=1 networks: - default + +# needs time for first boot since xtts model is downloaded + auracast-translator: + container_name: auracast-translator + build: + context: ../auracast-translator + dockerfile: Dockerfile + ssh: + - default=~/.ssh/id_ed25519 #lappi + restart: unless-stopped + depends_on: + - wireguard + network_mode: service:wireguard # not sure if this is the best way + #ports: + # - "7999:7999" #auracast-translator + #networks: + # - default + environment: + - LOG_LEVEL=INFO + - PYTHONUNBUFFERED=1 + + deploy: # for tts on gpu + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: [gpu] + webui: container_name: webui build: @@ -63,33 +94,10 @@ services: environment: - PYTHONUNBUFFERED=1 # Change this URL if the translator service is running on a different host - - TRANSLATOR_API_BASE_URL=http://auracast-translator:7999 + - TRANSLATOR_API_BASE_URL=http://wireguard:7999 # http://auracast-translator:7999 networks: - default -# needs time for first boot since xtts model is downloaded - auracast-translator: - build: - context: ../auracast-translator - dockerfile: Dockerfile - ssh: - - default=~/.ssh/id_ed25519 #lappi - restart: unless-stopped - ports: - - "7999:7999" - environment: - - LOG_LEVEL=INFO - - PYTHONUNBUFFERED=1 - networks: - - default - - deploy: # for tts on gpu - resources: - reservations: - devices: - - driver: nvidia - count: 1 - capabilities: [gpu] volumes: ollama: diff --git a/readme.md b/readme.md index ec01471..6f6e11c 100644 --- a/readme.md +++ b/readme.md @@ -4,5 +4,5 @@ For building with dockerfiles, clone this repo to a directory together with aura # read logs interactively from a docker container - docker start -ai -# exec cmds inside container +# exec cmds inside container (container must be running) docker exec -it ollama /bin/bash \ No newline at end of file diff --git a/wg_conf/.donoteditthisfile b/wg_conf/.donoteditthisfile new file mode 100644 index 0000000..0e3985c --- /dev/null +++ b/wg_conf/.donoteditthisfile @@ -0,0 +1,7 @@ +ORIG_SERVERURL="vpn.pstruebi.xyz" +ORIG_SERVERPORT="51821" +ORIG_PEERDNS="10.13.13.1" +ORIG_PEERS="11" +ORIG_INTERFACE="10.13.13" +ORIG_ALLOWEDIPS="0.0.0.0/0" +ORIG_PERSISTENTKEEPALIVE_PEERS="all" diff --git a/wg_conf/coredns/Corefile b/wg_conf/coredns/Corefile new file mode 100644 index 0000000..e26fbe6 --- /dev/null +++ b/wg_conf/coredns/Corefile @@ -0,0 +1,6 @@ +. { + loop + errors + health + forward . /etc/resolv.conf +} diff --git a/wg_conf/peer1/peer1.conf b/wg_conf/peer1/peer1.conf new file mode 100644 index 0000000..3cc6350 --- /dev/null +++ b/wg_conf/peer1/peer1.conf @@ -0,0 +1,11 @@ +[Interface] +Address = 10.13.13.3 +PrivateKey = YKelFuRCzGg1S6zncYgohBtvoPZ01dRpzInMd0+nbnw= +ListenPort = 51820 +DNS = 10.13.13.1 + +[Peer] +PublicKey = DnLs1PO3sPt61YY6BWOIuh4F8+DU0zHegG8QnpVqxU0= +PresharedKey = A/jH9Hv+VtWTk0kU07nisAkqaei9q+ugjfAfFpKUvn0= +Endpoint = vpn.pstruebi.xyz:51821 +AllowedIPs = 0.0.0.0/0 diff --git a/wg_conf/peer1/peer1.png b/wg_conf/peer1/peer1.png new file mode 100644 index 0000000000000000000000000000000000000000..2c1a1a6a71e80985d005aae1fccb7d8e4a8834a9 GIT binary patch literal 1142 zcmV-+1d02JP)Bhk!JM9YzNU%I$x`8 z%2j{;714jZq;Z%B}9hGwSNf6wAlmMMU5ehlZG_bkc6=xP|n1g{psXM&ZqLuz8aC7{XTTO z$=odJ`F#6Ez7DBr_;@r=VGEfR-OEE=!99-U!nEFeo4sU4E4%=^(? z(WpaQ@8sW>R|M97f-Se*Km?XNA6?N*c$Y5tDS~`8I=LfK*1lO(#Y8eK-vp>bmt2sO zmidI@oy$gc-9kuEncUGUp&;6WgtFa0ly;x^wdD<=n2`=s<9f6PZYaG*XS!JM8_M>T z$~r`T@+QkOB4`LE`LMix5}*d1k&q6U3gM*kK%%~N=|f7wq0JhDcYiIt%w3T z?5h#y^>i4g)}j&FxkaPd>(LqQ|MzPD|E-)p{Y$>qu@0$P1jblap*)c_b7)i4YIIsu z{j4Tvr(nf#Q^<&~Mwg#2bR5d_#ZzRW!6RrjvYzGG_CR}m=;iHcWWm=Xlkw#lk1mv% z4x10bOo~>cQ(8@8|wnUNEBh6(_gN;`KFWMq*{7wJ0sa0qV3|YtJ^r&>4o=w5us;oqg z@)^jeG16$5SSg8!a^66zsdstrHdviD7SVTD@dlEEnP`&2 zqAb+!t#yZ=k+TMIZ3I)X0oK1d>)rk*8dV6V$5yvwYI)gO#Env_N7rml0?;6stw{TY z(^b07*qo IM6N<$f;av$pa1{> literal 0 HcmV?d00001 diff --git a/wg_conf/peer1/presharedkey-peer1 b/wg_conf/peer1/presharedkey-peer1 new file mode 100644 index 0000000..cb74f7d --- /dev/null +++ b/wg_conf/peer1/presharedkey-peer1 @@ -0,0 +1 @@ +A/jH9Hv+VtWTk0kU07nisAkqaei9q+ugjfAfFpKUvn0= diff --git a/wg_conf/peer1/privatekey-peer1 b/wg_conf/peer1/privatekey-peer1 new file mode 100644 index 0000000..de429be --- /dev/null +++ b/wg_conf/peer1/privatekey-peer1 @@ -0,0 +1 @@ +YKelFuRCzGg1S6zncYgohBtvoPZ01dRpzInMd0+nbnw= diff --git a/wg_conf/peer1/publickey-peer1 b/wg_conf/peer1/publickey-peer1 new file mode 100644 index 0000000..88b950b --- /dev/null +++ b/wg_conf/peer1/publickey-peer1 @@ -0,0 +1 @@ +4ePaNQTPpigvu46WYvO+3hH2RiOrW0usIMxGfnX4yGk= diff --git a/wg_conf/peer10/peer10.conf b/wg_conf/peer10/peer10.conf new file mode 100644 index 0000000..d3c67d8 --- /dev/null +++ b/wg_conf/peer10/peer10.conf @@ -0,0 +1,11 @@ +[Interface] +Address = 10.13.13.12 +PrivateKey = MP/WxZ2hlArmYUIN7NXNCzMnFkHUfuBdgcac4rjz/UU= +ListenPort = 51820 +DNS = 10.13.13.1 + +[Peer] +PublicKey = DnLs1PO3sPt61YY6BWOIuh4F8+DU0zHegG8QnpVqxU0= +PresharedKey = ok8VDnspHV/16GT77OweftXiXKOJSnLa5Hd2tiwnEbE= +Endpoint = vpn.pstruebi.xyz:51821 +AllowedIPs = 0.0.0.0/0 diff --git a/wg_conf/peer10/peer10.png b/wg_conf/peer10/peer10.png new file mode 100644 index 0000000000000000000000000000000000000000..80b56fa3ea65f45faf2b17fe4df749dff375df58 GIT binary patch literal 1137 zcmV-%1djWOP)Xw%UbsY>(EI8Mi7=Q|fru_^94 zw=%au$7$|M(}qikku^sx^JA~i)b!I;)K9gRqgU1soo{knLV7%Sd6s^U1ol3~Z90Ae z_Q~)vmv86J~ui8 zQI#9f$V^9u~J_Wg*AdI|+j|EX8XyoiN&S2sEXa)3H4o6bGWjd_&>^P_FImTLjoi3|;d)IuDi z8zC{KHPd{zz}6<&w6)?#Cp55N8puKu)>3appUIE5U2L55vNE6LU8mK40ZkT-S2k5$ z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@MK@w>$;dHHO*+s_{GR;oFAv&rdZSsL#hRV41hE^`j}V`P>uxmLnCJ`9klS}H z7y6tl8`VHLVZ|QJ>yZ2$lO literal 0 HcmV?d00001 diff --git a/wg_conf/peer11/presharedkey-peer11 b/wg_conf/peer11/presharedkey-peer11 new file mode 100644 index 0000000..b72d784 --- /dev/null +++ b/wg_conf/peer11/presharedkey-peer11 @@ -0,0 +1 @@ +CXAx7b7fjcIfhKYi2YxD4aM2F0FKRm2hEBVdFLa3tx4= diff --git a/wg_conf/peer11/privatekey-peer11 b/wg_conf/peer11/privatekey-peer11 new file mode 100644 index 0000000..27e8090 --- /dev/null +++ b/wg_conf/peer11/privatekey-peer11 @@ -0,0 +1 @@ +IGEphE9T9lhlEwcYLy8rRivpNS2j9okhNHasX5EFXkM= diff --git a/wg_conf/peer11/publickey-peer11 b/wg_conf/peer11/publickey-peer11 new file mode 100644 index 0000000..f9a97e2 --- /dev/null +++ b/wg_conf/peer11/publickey-peer11 @@ -0,0 +1 @@ +EPaSr2rG2/C+3rbYH8TdLr3/WM7eEpjfDqRoQu7KsWc= diff --git a/wg_conf/peer2/peer2.conf b/wg_conf/peer2/peer2.conf new file mode 100644 index 0000000..50e283d --- /dev/null +++ b/wg_conf/peer2/peer2.conf @@ -0,0 +1,11 @@ +[Interface] +Address = 10.13.13.4 +PrivateKey = 6K4jlJAq0VHRsppwD1vtYJDjhel+ObXgcOQ2kDXNDUM= +ListenPort = 51820 +DNS = 10.13.13.1 + +[Peer] +PublicKey = DnLs1PO3sPt61YY6BWOIuh4F8+DU0zHegG8QnpVqxU0= +PresharedKey = SkeH/q6+yIEPQUO3cjNuIoOLL5nwlBvIYzpjO11RsQI= +Endpoint = vpn.pstruebi.xyz:51821 +AllowedIPs = 0.0.0.0/0 diff --git a/wg_conf/peer2/peer2.png b/wg_conf/peer2/peer2.png new file mode 100644 index 0000000000000000000000000000000000000000..9d405aaed65b5c492e5975e41ccf0ff6ef50b736 GIT binary patch literal 1133 zcmV-z1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ey-peer2 new file mode 100644 index 0000000..0fc20fe --- /dev/null +++ b/wg_conf/peer2/presharedkey-peer2 @@ -0,0 +1 @@ +SkeH/q6+yIEPQUO3cjNuIoOLL5nwlBvIYzpjO11RsQI= diff --git a/wg_conf/peer2/privatekey-peer2 b/wg_conf/peer2/privatekey-peer2 new file mode 100644 index 0000000..ff21ef2 --- /dev/null +++ b/wg_conf/peer2/privatekey-peer2 @@ -0,0 +1 @@ +6K4jlJAq0VHRsppwD1vtYJDjhel+ObXgcOQ2kDXNDUM= diff --git a/wg_conf/peer2/publickey-peer2 b/wg_conf/peer2/publickey-peer2 new file mode 100644 index 0000000..b061dde --- /dev/null +++ b/wg_conf/peer2/publickey-peer2 @@ -0,0 +1 @@ +ChZDaDlYLEcFEHD/UzDiyzZeB3lT/aufxI/BsKoJg1w= diff --git a/wg_conf/peer3/peer3.conf b/wg_conf/peer3/peer3.conf new file mode 100644 index 0000000..af4412c --- /dev/null +++ b/wg_conf/peer3/peer3.conf @@ -0,0 +1,11 @@ +[Interface] +Address = 10.13.13.5 +PrivateKey = 8JmpSh+QDih/GAETMoAEPd3VW5Nza3Nviaa4GzND9l4= +ListenPort = 51820 +DNS = 10.13.13.1 + +[Peer] +PublicKey = DnLs1PO3sPt61YY6BWOIuh4F8+DU0zHegG8QnpVqxU0= +PresharedKey = uw2C+wswMIWM36rSX7BVteRY7l6RklxHmTw4hzphZPQ= +Endpoint = vpn.pstruebi.xyz:51821 +AllowedIPs = 0.0.0.0/0 diff --git a/wg_conf/peer3/peer3.png b/wg_conf/peer3/peer3.png new file mode 100644 index 0000000000000000000000000000000000000000..cf227962bb588290aa8837e8dd873d2384ad015e GIT binary patch literal 1127 zcmV-t1ep7YP)7?xJ4wU4^Gep;Ak^<>MC8gYXX169ViE~ zd`;~?{(hzM|05n}v}g9e<#L?bf`xv>=0IzbL60VvYb6rfW^Ko#Y*HR)?gy zj;O1AO>?7uv|d*Rl`b94E>g`ymS$2n+Oo3Mr-V_(V7<9e^sLPQ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conf/peer4/presharedkey-peer4 @@ -0,0 +1 @@ +YG/lSzmb+7/NTXwSDMMikT48XN8+8Wxq8FHs0A/ABEc= diff --git a/wg_conf/peer4/privatekey-peer4 b/wg_conf/peer4/privatekey-peer4 new file mode 100644 index 0000000..f1850d7 --- /dev/null +++ b/wg_conf/peer4/privatekey-peer4 @@ -0,0 +1 @@ ++LV5XDOaSNtMycpEkw8JBEVGQ0kpsafI0idQ2TKYxnM= diff --git a/wg_conf/peer4/publickey-peer4 b/wg_conf/peer4/publickey-peer4 new file mode 100644 index 0000000..e70d7b2 --- /dev/null +++ b/wg_conf/peer4/publickey-peer4 @@ -0,0 +1 @@ +SAOqRlhffcPO5whelgijyCFjHAr1hVFBSowVMoCxLls= diff --git a/wg_conf/peer5/peer5.conf b/wg_conf/peer5/peer5.conf new file mode 100644 index 0000000..3ba2c1a --- /dev/null +++ b/wg_conf/peer5/peer5.conf @@ -0,0 +1,11 @@ +[Interface] +Address = 10.13.13.7 +PrivateKey = SKhjIktHUq7ewDeHt9zpyGni89bDFU/PvNOT+vrb+00= +ListenPort = 51820 +DNS = 10.13.13.1 + +[Peer] +PublicKey = DnLs1PO3sPt61YY6BWOIuh4F8+DU0zHegG8QnpVqxU0= +PresharedKey = YJGbM4Nw2IHIMnhvoD5stFv7gJSZXMaQT/x2GGxa9N0= +Endpoint = vpn.pstruebi.xyz:51821 +AllowedIPs = 0.0.0.0/0 diff --git a/wg_conf/peer5/peer5.png b/wg_conf/peer5/peer5.png new file mode 100644 index 0000000000000000000000000000000000000000..84f6a43fdada9c6754cba367a2ba23004793dc66 GIT binary patch literal 1146 zcmV-=1cm#FP)6OV&r zQ@(X?8PR`z$RG5(Xcf8F?poTd##82-bp76mL^s;>xP|$u?IX)2NmKQiy1RaXN_Wfi zC3S-w%{~vpy4@{&g$9X_6xXbe%tG_Eev59QyJTs0X;d!KZsqt2Q4K0=+m2glA97s6 z@pqyAKjOUl+Wq7C>nI(F2S=}ae7x40YS*yPkJub&O~)lIk1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f/peer5/presharedkey-peer5 new file mode 100644 index 0000000..7f2ffac --- /dev/null +++ b/wg_conf/peer5/presharedkey-peer5 @@ -0,0 +1 @@ +YJGbM4Nw2IHIMnhvoD5stFv7gJSZXMaQT/x2GGxa9N0= diff --git a/wg_conf/peer5/privatekey-peer5 b/wg_conf/peer5/privatekey-peer5 new file mode 100644 index 0000000..2406997 --- /dev/null +++ b/wg_conf/peer5/privatekey-peer5 @@ -0,0 +1 @@ +SKhjIktHUq7ewDeHt9zpyGni89bDFU/PvNOT+vrb+00= diff --git a/wg_conf/peer5/publickey-peer5 b/wg_conf/peer5/publickey-peer5 new file mode 100644 index 0000000..c185791 --- /dev/null +++ b/wg_conf/peer5/publickey-peer5 @@ -0,0 +1 @@ +34zCiskifTf82hYulc08qZ4FrAHezFI0+44AC0aEaiQ= diff --git a/wg_conf/peer6/peer6.conf b/wg_conf/peer6/peer6.conf new file mode 100644 index 0000000..2ce2f13 --- /dev/null +++ b/wg_conf/peer6/peer6.conf @@ -0,0 +1,11 @@ +[Interface] +Address = 10.13.13.8 +PrivateKey = uONGsuev3Dszk3ot/fxBkkF9sLwdjajEKRcFHO4BxFI= +ListenPort = 51820 +DNS = 10.13.13.1 + +[Peer] +PublicKey = DnLs1PO3sPt61YY6BWOIuh4F8+DU0zHegG8QnpVqxU0= +PresharedKey = 0g5t88Mn7mjg68/Oykrj1+6dVmPmReQlSxxbXsMbxe0= +Endpoint = vpn.pstruebi.xyz:51821 +AllowedIPs = 0.0.0.0/0 diff --git a/wg_conf/peer6/peer6.png b/wg_conf/peer6/peer6.png new file mode 100644 index 0000000000000000000000000000000000000000..46968d889d66ec4ee250e80c2aff90993067760c GIT binary patch literal 1135 zcmV-#1d#iQP)3h^{&%EA_3U3Xi;;D_cPK+Bh3`s&q7a@kM$Z? z-@0`h(SLo(AM{_*Cen*Mvh=l1vApWA#a1M^(XOSJYLitD-LsxihNB(z21;$;wJ(t& zvz9!gJou!(g$7;sLmJhoUZ-xI>$`}BnxlQFa6P5kQ@Mq-3@S}3PYNsR78j|@Z=oD$ zvpTf@xPG_Nfq0!=*blxF_Edc`zaspK&4IQ~#-nW#8W4$Xlb1&h^Ve;-(0-svo$DfT zc}7#$J1>p;(HYy}(6bKIxj97YWlSapH`1h^w7!op*VS3e3(Y6He>XbgGMI$cPhK@w zs^QI+ecy%$ZMD9SYL49YI!im+(o2*4=&g&GBXtnFocXv>jWBcmbAyre?_F~l-Q*a~p>!G$mGvYTD-iABCwaLk@1FN7(6W{I=7#ikT#ey4La`yz$kAPimX1 z6z{z5l=lX*wGw`7hBim*dWq0*1C8|hI^l;UeB-l`hwsFXH$bN))aGoZwAGJuvt|5c%J8yWnDkrfn3#yezev0pFen7MD6T8^NT?4M+Ax9YEn)1L$DwsE@e?S+RS{2 zb~r|P2@z-|4>Xq%`H<=|kW5lINl=GWq83V?G20e7WT?_#Bw3aqBOWAJqrWG+Ue(j;6od-v~eI-Wc`}m)fW9o zQz66C=H@>l{0a*~U(>;b&YB>~PSH4IQC4Yt6qRnEuDuRxI1>6K>2V4U@57I-u3S)5 zA58#bLI5brj~H8=0f&Td1e>(w=Xi#L|{ROhWEfd+2ja~o%002ovPDHLkV1kT6 BFj)Wq literal 0 HcmV?d00001 diff --git a/wg_conf/peer6/presharedkey-peer6 b/wg_conf/peer6/presharedkey-peer6 new file mode 100644 index 0000000..81f5395 --- /dev/null +++ b/wg_conf/peer6/presharedkey-peer6 @@ -0,0 +1 @@ +0g5t88Mn7mjg68/Oykrj1+6dVmPmReQlSxxbXsMbxe0= diff --git a/wg_conf/peer6/privatekey-peer6 b/wg_conf/peer6/privatekey-peer6 new file mode 100644 index 0000000..10b309a --- /dev/null +++ b/wg_conf/peer6/privatekey-peer6 @@ -0,0 +1 @@ +uONGsuev3Dszk3ot/fxBkkF9sLwdjajEKRcFHO4BxFI= diff --git a/wg_conf/peer6/publickey-peer6 b/wg_conf/peer6/publickey-peer6 new file mode 100644 index 0000000..f72d094 --- /dev/null +++ b/wg_conf/peer6/publickey-peer6 @@ -0,0 +1 @@ +fZqQln25T2q2mq47lBjzevLpsRLIcr6UH+6byLHcfQ4= diff --git a/wg_conf/peer7/peer7.conf b/wg_conf/peer7/peer7.conf new file mode 100644 index 0000000..883afb5 --- /dev/null +++ b/wg_conf/peer7/peer7.conf @@ -0,0 +1,11 @@ +[Interface] +Address = 10.13.13.9 +PrivateKey = OF3usM+Jiumnjvf68PGslJaz6GUfC3GPoNv7g7tinWg= +ListenPort = 51820 +DNS = 10.13.13.1 + +[Peer] +PublicKey = DnLs1PO3sPt61YY6BWOIuh4F8+DU0zHegG8QnpVqxU0= +PresharedKey = SnY9RVlWN0KUboRLlzQNSiPYjCd7eDrLv6u9E9v/mmM= +Endpoint = vpn.pstruebi.xyz:51821 +AllowedIPs = 0.0.0.0/0 diff --git a/wg_conf/peer7/peer7.png b/wg_conf/peer7/peer7.png new file mode 100644 index 0000000000000000000000000000000000000000..03b8ca08819862448a65721d29c16ddc08093bda GIT binary patch literal 1135 zcmV-#1d#iQP)z3k%) zsVB;Ks2*xRy=Y5PWdbda6t}?ZacD?l^rKLY^ZLrG=5xAXDo^gA=Hcw&DEIjV=nli7%6m_?o3V$}14gkM?{^P~sKhuJ`Lw9e%{e zmV|ETeZ7=ux$DvWZmHZ7`WE-hRYyNc<&-FO z1TAjDwbZR3MCwMHoRw*XbZX7c`O%F}iMo&~nIcW9Gkvs<%F}AhjdmK`&c9A!-9r7m z3v5b$r1qazoprE?i+u!YRlh(p|9p8g(sOtzN2TkL5p|=>v;uk5i+LR=CsQQU*o{mm zL@D(x)s->|O_Z*W0(j8YAU@}P?Db_0g&Cj>)Qzr&(W--R!!}|2nfFL>Yp)OO2e)Cz zHZf253f^PI??zlgr%N>>=Clt6z+QQK03V`$ws00`g>||KJ1X=!h6{0z#bNZ>*o4KR zbX;=dN84?p_H51GHk^FLw>-iZi1|VYTp1lSM|5eY_!~c>A9ovw_zG#QoYwpNesncU zm(e152AZfGu|3&>x{&xMu-RR_U8M_=AkAhz z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HvFm|+2qR=6IuM&^{|n@{hq&Ei2F}!li)p9a)O8q zj`RbR@Bk6TnMpkZH3!os%?}X)WeJ8#bGdk)=r6XE<5r{!_|O0V002ovPDHLk FV1g@DCF}qI literal 0 HcmV?d00001 diff --git a/wg_conf/peer9/presharedkey-peer9 b/wg_conf/peer9/presharedkey-peer9 new file mode 100644 index 0000000..3753d3b --- /dev/null +++ b/wg_conf/peer9/presharedkey-peer9 @@ -0,0 +1 @@ +9IM4Pfbyvgz0WLEKrSP/PbdEFKjw1hIHqsFj0R+d8hM= diff --git a/wg_conf/peer9/privatekey-peer9 b/wg_conf/peer9/privatekey-peer9 new file mode 100644 index 0000000..dda8af2 --- /dev/null +++ b/wg_conf/peer9/privatekey-peer9 @@ -0,0 +1 @@ +cOI5FyaWu9P8/XqPnoCv+1z/hIXqBFEy6PbYL4HjTXw= diff --git a/wg_conf/peer9/publickey-peer9 b/wg_conf/peer9/publickey-peer9 new file mode 100644 index 0000000..99331c6 --- /dev/null +++ b/wg_conf/peer9/publickey-peer9 @@ -0,0 +1 @@ +qZN3BiBHfmrNqkxrI8yYWv4kLpVvbpx+PCSnPkXjrA4= diff --git a/wg_conf/server/privatekey-server b/wg_conf/server/privatekey-server new file mode 100644 index 0000000..bd14078 --- /dev/null +++ b/wg_conf/server/privatekey-server @@ -0,0 +1 @@ +aKKEMSaIl3Anxj+Nzm+On0cw3GEYyiViqNmuMnCP3no= diff --git a/wg_conf/server/publickey-server b/wg_conf/server/publickey-server new file mode 100644 index 0000000..6ba0940 --- /dev/null +++ b/wg_conf/server/publickey-server @@ -0,0 +1 @@ +DnLs1PO3sPt61YY6BWOIuh4F8+DU0zHegG8QnpVqxU0= diff --git a/wg_conf/templates/peer.conf b/wg_conf/templates/peer.conf new file mode 100644 index 0000000..d987dba --- /dev/null +++ b/wg_conf/templates/peer.conf @@ -0,0 +1,11 @@ +[Interface] +Address = ${CLIENT_IP} +PrivateKey = $(cat /config/${PEER_ID}/privatekey-${PEER_ID}) +ListenPort = 51820 +DNS = ${PEERDNS} + +[Peer] +PublicKey = $(cat /config/server/publickey-server) +PresharedKey = $(cat /config/${PEER_ID}/presharedkey-${PEER_ID}) +Endpoint = ${SERVERURL}:${SERVERPORT} +AllowedIPs = ${ALLOWEDIPS} diff --git a/wg_conf/templates/server.conf b/wg_conf/templates/server.conf new file mode 100644 index 0000000..757682d --- /dev/null +++ b/wg_conf/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 diff --git a/wg_conf/wg_confs/wg0.conf b/wg_conf/wg_confs/wg0.conf new file mode 100644 index 0000000..60c1ad8 --- /dev/null +++ b/wg_conf/wg_confs/wg0.conf @@ -0,0 +1,84 @@ +[Interface] +Address = 10.13.13.1 +ListenPort = 51820 +PrivateKey = aKKEMSaIl3Anxj+Nzm+On0cw3GEYyiViqNmuMnCP3no= +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 = 4ePaNQTPpigvu46WYvO+3hH2RiOrW0usIMxGfnX4yGk= +PresharedKey = A/jH9Hv+VtWTk0kU07nisAkqaei9q+ugjfAfFpKUvn0= +AllowedIPs = 10.13.13.3/32 +PersistentKeepalive = 25 + +[Peer] +# peer2 +PublicKey = ChZDaDlYLEcFEHD/UzDiyzZeB3lT/aufxI/BsKoJg1w= +PresharedKey = SkeH/q6+yIEPQUO3cjNuIoOLL5nwlBvIYzpjO11RsQI= +AllowedIPs = 10.13.13.4/32 +PersistentKeepalive = 25 + +[Peer] +# peer3 +PublicKey = cKezbL4TZABYDLB1YoruZic4CHg+I3WoPMRXOX7Y8HU= +PresharedKey = uw2C+wswMIWM36rSX7BVteRY7l6RklxHmTw4hzphZPQ= +AllowedIPs = 10.13.13.5/32 +PersistentKeepalive = 25 + +[Peer] +# peer4 +PublicKey = SAOqRlhffcPO5whelgijyCFjHAr1hVFBSowVMoCxLls= +PresharedKey = YG/lSzmb+7/NTXwSDMMikT48XN8+8Wxq8FHs0A/ABEc= +AllowedIPs = 10.13.13.6/32 +PersistentKeepalive = 25 + +[Peer] +# peer5 +PublicKey = 34zCiskifTf82hYulc08qZ4FrAHezFI0+44AC0aEaiQ= +PresharedKey = YJGbM4Nw2IHIMnhvoD5stFv7gJSZXMaQT/x2GGxa9N0= +AllowedIPs = 10.13.13.7/32 +PersistentKeepalive = 25 + +[Peer] +# peer6 +PublicKey = fZqQln25T2q2mq47lBjzevLpsRLIcr6UH+6byLHcfQ4= +PresharedKey = 0g5t88Mn7mjg68/Oykrj1+6dVmPmReQlSxxbXsMbxe0= +AllowedIPs = 10.13.13.8/32 +PersistentKeepalive = 25 + +[Peer] +# peer7 +PublicKey = D7aQNstUDH9tU4wnZ911tyJI5qaTyMfFWiw3ocovJjE= +PresharedKey = SnY9RVlWN0KUboRLlzQNSiPYjCd7eDrLv6u9E9v/mmM= +AllowedIPs = 10.13.13.9/32 +PersistentKeepalive = 25 + +[Peer] +# peer8 +PublicKey = WvFp70uc2P7wG7sY/70YEg66FrqZsi5DsdEkJn9SriI= +PresharedKey = wXKfBFa/YVP7fDqS7HOQljxUzjUuX/oczo+cLRzhvNI= +AllowedIPs = 10.13.13.10/32 +PersistentKeepalive = 25 + +[Peer] +# peer9 +PublicKey = qZN3BiBHfmrNqkxrI8yYWv4kLpVvbpx+PCSnPkXjrA4= +PresharedKey = 9IM4Pfbyvgz0WLEKrSP/PbdEFKjw1hIHqsFj0R+d8hM= +AllowedIPs = 10.13.13.11/32 +PersistentKeepalive = 25 + +[Peer] +# peer10 +PublicKey = o5CbMXv3wdaGWUFHhKME+YsVMpFUcxTJX9qs8c/3yVY= +PresharedKey = ok8VDnspHV/16GT77OweftXiXKOJSnLa5Hd2tiwnEbE= +AllowedIPs = 10.13.13.12/32 +PersistentKeepalive = 25 + +[Peer] +# peer11 +PublicKey = EPaSr2rG2/C+3rbYH8TdLr3/WM7eEpjfDqRoQu7KsWc= +PresharedKey = CXAx7b7fjcIfhKYi2YxD4aM2F0FKRm2hEBVdFLa3tx4= +AllowedIPs = 10.13.13.2/32 +PersistentKeepalive = 25 +