updated server configs
This commit is contained in:
@@ -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
|
||||
|
||||
+24
-1
@@ -56,6 +56,7 @@ EOF
|
||||
cat <<EOF > /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
|
||||
|
||||
<ca>
|
||||
$(cat /vpn/ca.crt)
|
||||
|
||||
Reference in New Issue
Block a user