rego-tunnel: use 172.32.0.0/24 for VM to avoid routing conflict
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
Container external: 172.31.0.10 (br-vpn-rego) Windows VM internal: 172.32.0.20 (separate subnet) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,8 +19,8 @@ get_windows_ip() {
|
|||||||
local ip=$(awk '/Windows/ {print $3}' /var/lib/misc/dnsmasq.leases 2>/dev/null | head -1)
|
local ip=$(awk '/Windows/ {print $3}' /var/lib/misc/dnsmasq.leases 2>/dev/null | head -1)
|
||||||
if [[ -n "$ip" ]]; then echo "$ip"; return; fi
|
if [[ -n "$ip" ]]; then echo "$ip"; return; fi
|
||||||
|
|
||||||
# Method 2: ip neigh (ARP table) - look for 172.30.x.x on docker interface
|
# Method 2: ip neigh (ARP table) - look for 172.32.x.x on docker interface (VM_NET_IP subnet)
|
||||||
ip=$(ip neigh show dev docker 2>/dev/null | grep -oE '172\.30\.[0-9]+\.[0-9]+' | head -1)
|
ip=$(ip neigh show dev docker 2>/dev/null | grep -oE '172\.32\.[0-9]+\.[0-9]+' | head -1)
|
||||||
if [[ -n "$ip" ]]; then echo "$ip"; return; fi
|
if [[ -n "$ip" ]]; then echo "$ip"; return; fi
|
||||||
|
|
||||||
# Method 3: qemu.ip file (if available)
|
# Method 3: qemu.ip file (if available)
|
||||||
|
|||||||
Reference in New Issue
Block a user