Not able to ping my public IP, but can SSH
I have set up a droplet and firewall with specific rule. I have added the icmp rule in firewall for both inbound and outbound traffic. The outbound connections and icmp is working fine but am not able to ping my droplet even if the inbound icmp is allowed to IPv4 and IPv6. I have no trouble in resolving my domain and ssh using the domain name.
I have checked the ufw firewall and flushed ‘Iptable’ rules but still the ping result is unsatisfactory. I need to check the network latency to the droplet.
$ ping 18.104.22.168
PING 22.214.171.124 (126.96.36.199): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Am able to ping the box using the private.
$ ping 10.122.0.2
PING 10.122.0.2 (10.122.0.2) 56(84) bytes of data.
64 bytes from 10.122.0.2: icmp_seq=1 ttl=64 time=3.10 ms
64 bytes from 10.122.0.2: icmp_seq=2 ttl=64 time=1.39 ms
64 bytes from 10.122.0.2: icmp_seq=3 ttl=64 time=0.824 ms
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×