INNER CODE UNIT · Shell

$VPN_HOST

IAmStoxe/wirehole · scripts/wirehole-doctor.sh:265

if [[ $VPN_HOST =~ ^(10\.|192\.168\.|172\.(1[6-9]|2[0-9]|3[01])\.|127\.) ]]; then
    warn "VPN_HOST is a local address. Devices outside your home cannot use it."
    fix "Set VPN_HOST to your public address or to a dynamic DNS name."
elif [[ -n $PUBLIC_IP && $VPN_HOST == "$PUBLIC_IP" ]]; then
    ok "VPN_HOST matches your current public address."
elif [[ $VPN_HOST =~ ^[0-9.]+$ && -n $PUBLIC_IP && $VPN_HOST != "$PUBLIC_IP" ]]; then
    bad "VPN_HOST ($VPN_HOST) is not your current public address ($PUBLIC_IP)."
    fix "Your address changed. Use a dynamic DNS name. Read the README."
    fix "Then change the address in the VPN web interface, not only in .env."
else
    ok "VPN_HOST is a name. Make sure it points at $PUBLIC_IP."
fi

if [[ -n $PUBLIC_IP && $PUBLIC_IP =~ ^100\.(6[4-9]|[7-9][0-9]|1[0-1][0-9]|12[0-7])\. ]]; then
    bad "Your provider uses CGNAT. Port forwarding cannot work."
    fix "Ask your provider for a public IP address, or use a rented server."
fi

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…