From fb5cbc791716369d8f157abc5b0bee7bc5cf4f7f Mon Sep 17 00:00:00 2001 From: Luxferre Date: Sun, 26 Jul 2026 10:13:48 +0300 Subject: [PATCH] updated server configs --- client/gs-warp-simple.sh | 9 ++++----- server/entrypoint.sh | 25 ++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/client/gs-warp-simple.sh b/client/gs-warp-simple.sh index 12368b7..f45e2ba 100755 --- a/client/gs-warp-simple.sh +++ b/client/gs-warp-simple.sh @@ -2,19 +2,18 @@ # Client-side GS-Warp launcher # Created by Luxferre in 2026, released into the public domain -[ -z "$OVPNCFG" ] && OVPNCFG="$2" +[ -z "$OVPNCFG" ] && OVPNCFG="$1" [ -z "$OVPNCFG" ] && OVPNCFG="client.ovpn" printf "Using config from %s...\n" "$OVPNCFG" -GS_SECRET="$(md5sum "$OVPNCFG" | cut -d ' ' -f 1)" - GSPIDFILE='/tmp/gswarp-gs.pid' OVPIDFILE='/tmp/gswarp-ov.pid' BEFORE_PIDS=$(pgrep -x gs-netcat 2>/dev/null) -gs-netcat -D -s "$GS_SECRET" -p 1194 -sleep 0.5 +gs-netcat -D -p 1194 -s $(md5sum "$OVPNCFG" | cut -d ' ' -f 1) + +sleep 2 AFTER_PIDS=$(pgrep -x gs-netcat 2>/dev/null) if [ -n "$BEFORE_PIDS" ]; then diff --git a/server/entrypoint.sh b/server/entrypoint.sh index 5a5fd6c..a9cda7f 100644 --- a/server/entrypoint.sh +++ b/server/entrypoint.sh @@ -56,6 +56,7 @@ EOF cat < /vpn/server.conf dev tun topology subnet +proto tcp-server ca /vpn/ca.crt cert /vpn/server.crt key /vpn/server.key @@ -91,11 +92,33 @@ tun-mtu 1300 mssfix 1200 # Native OpenVPN routes to bypass GSocket relay nodes via physical default gateway -route j.gs.thc.org 255.255.255.255 net_gateway +route gs.thc.org 255.255.255.255 net_gateway route a.gs.thc.org 255.255.255.255 net_gateway route b.gs.thc.org 255.255.255.255 net_gateway route c.gs.thc.org 255.255.255.255 net_gateway +route d.gs.thc.org 255.255.255.255 net_gateway +route e.gs.thc.org 255.255.255.255 net_gateway +route f.gs.thc.org 255.255.255.255 net_gateway route g.gs.thc.org 255.255.255.255 net_gateway +route h.gs.thc.org 255.255.255.255 net_gateway +route i.gs.thc.org 255.255.255.255 net_gateway +route j.gs.thc.org 255.255.255.255 net_gateway +route k.gs.thc.org 255.255.255.255 net_gateway +route l.gs.thc.org 255.255.255.255 net_gateway +route m.gs.thc.org 255.255.255.255 net_gateway +route n.gs.thc.org 255.255.255.255 net_gateway +route o.gs.thc.org 255.255.255.255 net_gateway +route p.gs.thc.org 255.255.255.255 net_gateway +route q.gs.thc.org 255.255.255.255 net_gateway +route r.gs.thc.org 255.255.255.255 net_gateway +route s.gs.thc.org 255.255.255.255 net_gateway +route t.gs.thc.org 255.255.255.255 net_gateway +route u.gs.thc.org 255.255.255.255 net_gateway +route v.gs.thc.org 255.255.255.255 net_gateway +route w.gs.thc.org 255.255.255.255 net_gateway +route x.gs.thc.org 255.255.255.255 net_gateway +route y.gs.thc.org 255.255.255.255 net_gateway +route z.gs.thc.org 255.255.255.255 net_gateway $(cat /vpn/ca.crt)