2 parents b0855da + 07abfa3 commit 63af667Copy full SHA for 63af667
1 file changed
scripts/nftables_setup.sh
@@ -100,7 +100,7 @@ sysctl -w net.ipv6.conf.all.forwarding=1 2>/dev/null || true
100
101
# Get interface IPs for SSH bypass
102
IFACE_IP=$(ip -4 addr show "$IFACE" | grep -oP 'inet \K[0-9.]+' | head -1)
103
-IFACE_IP6=$(ip -6 addr show "$IFACE" scope global | grep -oP 'inet6 \K[0-9a-f:]+' | head -1)
+IFACE_IP6=$(ip -6 addr show "$IFACE" scope global 2>/dev/null | grep -oP 'inet6 \K[0-9a-f:]+' | head -1 || true)
104
105
# --- IPv4 table ---
106
echo "Adding nftables IPv4 NAT redirect rules on $IFACE -> port $PORT..."
0 commit comments