Update check_gateway_v4.sh

logic changed, compatible with vpn's that run in private NAT transfer networks.