I'm unable to get ping working, either for internal or external IP addresses.
Ping test always fail, regardless if target is hostname or IP address, internal or external. I've replicated this across 3 different GCP accounts.
If I run the container locally via docker, all pings are successful.
git clone https://github.com/GoogleCloudPlatform/vpc-network-tester.git
cd vpc-network-tester/cloudrun
docker build -t vpc-network-tester .
docker run -p 32080:8080 vpc-network-tester
curl http://localhost:32080/ping?host=192.168.249.162
PING 192.168.249.162 (192.168.249.162): 56 data bytes
64 bytes from 192.168.249.162: seq=0 ttl=254 time=3.460 ms
64 bytes from 192.168.249.162: seq=1 ttl=254 time=3.951 ms
64 bytes from 192.168.249.162: seq=2 ttl=254 time=7.651 ms
64 bytes from 192.168.249.162: seq=3 ttl=254 time=5.108 ms
--- 192.168.249.162 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 3.460/5.042/7.651 ms
curl http://localhost:32080/ping?host=yahoo.com
PING yahoo.com (98.137.11.163): 56 data bytes
64 bytes from 98.137.11.163: seq=0 ttl=44 time=33.986 ms
64 bytes from 98.137.11.163: seq=1 ttl=44 time=32.402 ms
64 bytes from 98.137.11.163: seq=2 ttl=44 time=34.492 ms
64 bytes from 98.137.11.163: seq=3 ttl=44 time=32.214 ms
--- yahoo.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 32.214/33.273/34.492 ms