Обновить start-n8n.sh
Some checks failed
Build, Push and Redeploy Docker Image / build-and-push (push) Failing after 4m6s
Some checks failed
Build, Push and Redeploy Docker Image / build-and-push (push) Failing after 4m6s
This commit is contained in:
@@ -4,7 +4,7 @@ SOCKS_HOST=${SOCKS_IP:-192.168.31.240}
|
|||||||
|
|
||||||
# Wait for SOCKS proxy to be ready
|
# Wait for SOCKS proxy to be ready
|
||||||
echo "Waiting for SOCKS proxy..."
|
echo "Waiting for SOCKS proxy..."
|
||||||
until nc -z "$SOCKS_HOST" 1080; do
|
until nc -z "$SOCKS_HOST" 4067; do
|
||||||
echo "SOCKS proxy not ready yet, waiting..."
|
echo "SOCKS proxy not ready yet, waiting..."
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
@@ -28,7 +28,7 @@ iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN
|
|||||||
iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
|
iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
|
||||||
iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
|
iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
|
||||||
# (по желанию) исключить сам socks-хост точечно:
|
# (по желанию) исключить сам socks-хост точечно:
|
||||||
iptables -t nat -A REDSOCKS -d "$SOCKS_HOST" -p tcp --dport 1080 -j RETURN
|
iptables -t nat -A REDSOCKS -d "$SOCKS_HOST" -p tcp --dport 4067 -j RETURN
|
||||||
|
|
||||||
# редирект всего остального tcp
|
# редирект всего остального tcp
|
||||||
iptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-ports 12345
|
iptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-ports 12345
|
||||||
|
|||||||
Reference in New Issue
Block a user