From 6abe3aef7798063a37e0b81cb7a4154d98dc55ae Mon Sep 17 00:00:00 2001 From: alexz Date: Fri, 19 Dec 2025 09:52:54 +0000 Subject: [PATCH] Update socat to connect to VM SSH on port 2222 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows SSH moved from port 22 to 2222, freeing port 22 for IBM i portproxy. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- apps/rego-tunnel/vpn_scripts/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/rego-tunnel/vpn_scripts/start.sh b/apps/rego-tunnel/vpn_scripts/start.sh index f5f7d4e..0e1470d 100755 --- a/apps/rego-tunnel/vpn_scripts/start.sh +++ b/apps/rego-tunnel/vpn_scripts/start.sh @@ -67,9 +67,9 @@ get_container_ip() { iptables -C FORWARD -d "$WINDOWS_IP" -j ACCEPT 2>/dev/null || \ iptables -A FORWARD -d "$WINDOWS_IP" -j ACCEPT - # Forward port 2222 to VM's SSH (22) for VM access + # Forward port 2222 to VM's SSH (2222) for VM access pkill -f "socat.*:2222" 2>/dev/null || true - socat TCP-LISTEN:2222,fork,reuseaddr TCP:"$WINDOWS_IP":22 & + socat TCP-LISTEN:2222,fork,reuseaddr TCP:"$WINDOWS_IP":2222 & echo "[rego-tunnel] SSH to VM available on port 2222" # Add DNAT rules for port forwarding