Contents
- What does a failed ping actually tell you?
- Why can different tests reach different destinations?
- How do you test SSH and HTTPS directly?
- Where should you look for an echo filter?
- Can traceroute or a capture locate the missing reply?
- When does blocked ICMP become a real service fault?
- How do you fix the confirmed cause safely?
- How do you verify the result and avoid recurring alerts?
- How does CH-J Tools help compare the results?
- Frequently asked questions
What does a failed ping actually tell you?
You open an SSH session, load the website over HTTPS, and then find that ping receives no replies. These results can coexist without a service outage. Ping asks for an ICMP echo reply; SSH normally uses TCP port 22, and HTTPS over HTTP/1.1 or HTTP/2 normally uses TCP port 443. A rule can permit those connections while dropping echo requests or their replies.
A timeout establishes only that the expected reply did not reach your test process within its deadline. It does not locate a filter or prove that the target is offline. Packet loss, routing trouble and local restrictions are also possible. Conversely, a successful ping proves neither that SSH authentication works nor that the website can serve a useful page.
First decide whether you are investigating a real user problem, a new change in network behavior, or an alert based solely on ping. Keep those observations separate so that a harmless echo policy does not distract you from a failing application.
Why can different tests reach different destinations?
Before comparing results, record the destination address and the network used by each tool. A hostname is not necessarily one machine, and two tools may make different choices. Common explanations include:
- A host firewall, cloud security group or router permits the required TCP ports but has no matching allowance for echo traffic.
- The name has both IPv4 and IPv6 records. Ping selects one family while SSH or the browser succeeds over the other.
- HTTPS terminates at a reverse proxy or load balancer, while SSH reaches a backend or another address. The successful website is not proof that the backend answers ping.
- A VPN changes the route, or the browser uses a proxy. A command run outside that route is testing a different path.
- Echo traffic is rate limited, or packets are being lost. A small number of unanswered probes does not distinguish these cases.
An immediate name resolution error or an operation permission error is different from unanswered network probes. Resolve that local failure before changing anything on the server. The documentation addresses below are placeholders; substitute the real server and client addresses in your environment.
How do you test SSH and HTTPS directly?
On Ubuntu or Debian with iputils-ping, netcat-openbsd and curl installed, start with explicit IPv4 tests. The address 192.0.2.10 represents the server. The curl override keeps the hostname for TLS certificate validation and HTTP routing while fixing the destination address.
ping -4 -c 4 -W 2 192.0.2.10
nc -4 -vz -w 5 192.0.2.10 22
nc -4 -vz -w 5 192.0.2.10 443
curl --noproxy "*" --connect-timeout 5 --max-time 15 --resolve server.example:443:192.0.2.10 -I https://server.example/A successful nc test proves a TCP handshake, not a working login or a healthy application. Test SSH with your normal verified host identity and account. For curl, a valid TLS connection followed by an HTTP error still shows an answering web endpoint; investigate the status separately. HEAD requests can be rejected even when ordinary GET requests work.
On Windows Server 2022 or 2025, use Windows PowerShell for TCP tests. Read TcpTestSucceeded independently of any ping warning. The numeric target also makes it clear which address was tested.
ping.exe -4 -n 4 192.0.2.10
Test-NetConnection -ComputerName 192.0.2.10 -Port 22 -InformationLevel Detailed
Test-NetConnection -ComputerName 192.0.2.10 -Port 443 -InformationLevel DetailedIf IPv6 is part of the service, repeat the relevant tests explicitly over IPv6 against its actual address. Do not use successful IPv4 results to dismiss a broken IPv6 path. A browser may fall back to another address and hide that failure.
Where should you look for an echo filter?
On a Linux server you administer, inspect the running settings before making changes. These commands read the IPv4 echo switch and the complete nftables ruleset. Run them on the system that owns the target address, rather than on an unrelated container.
sysctl net.ipv4.icmp_echo_ignore_all
sudo nft list rulesetA value of 1 makes the IPv4 kernel ignore echo requests; 0 merely removes that particular obstacle. With nftables, inspect chain hooks, policy, rule order, jumps and sets. Searching only for the word icmp can miss a default drop policy or an allowance expressed elsewhere. An empty ruleset does not exclude another firewall implementation or an upstream filter.
If Ubuntu uses UFW, inspect it through its own interface. If RHEL uses firewalld, inspect the active zone and policy there instead. Do not mix management systems while troubleshooting.
sudo ufw status verboseFor a Windows target, inspect the effective inbound ICMP rules, their remote address scope and the active firewall profile. At the provider, check both security groups and network ACLs, including return traffic. Record the observed client source address after NAT, since it may differ from the address on your laptop.
Can traceroute or a capture locate the missing reply?
On Linux with the traceroute package installed, TCP probes to the working HTTPS port can provide a useful comparison. This example uses IPv4 and administrator privileges.
sudo traceroute -4 -T -p 443 server.exampleTCP probes still depend on ICMP Time Exceeded replies to reveal intermediate routers. Asterisks mean missing responses, not necessarily a broken forwarding path. Neither the last visible hop nor a successful trace identifies where echo is dropped. Different probe traffic can also follow different routes.
For stronger evidence, use tcpdump on the Linux target while sending a few pings from the client. Here 198.51.100.25 is the client address as seen by the server. Stop with Ctrl+C if ten matching packets do not arrive.
sudo tcpdump -nn -i any -c 10 'icmp and host 198.51.100.25'- Requests visible but no replies visible suggest inspecting the target firewall, kernel setting and reply route.
- Requests and outgoing replies visible suggest checking the return path and client filtering.
- No requests visible suggest checking the capture location, target address and upstream path before blaming the server.
When does blocked ICMP become a real service fault?
Blocking echo alone is often compatible with working services. Blocking every ICMP message is more serious. IPv4 Path MTU Discovery uses fragmentation-needed errors when a packet with the do-not-fragment flag cannot cross a smaller link. Losing those errors can leave small exchanges working while larger transfers stall. VPNs and tunnels are common places to investigate because encapsulation consumes space.
If small echo requests already work, these Linux iputils probes compare two IPv4 payload sizes. With ordinary headers, 1472 bytes of payload plus 8 bytes of ICMP and 20 bytes of IPv4 make a 1500-byte IP packet.
ip route get 192.0.2.10
ping -4 -M do -s 1472 -c 3 -W 2 192.0.2.10
ping -4 -M do -s 1200 -c 3 -W 2 192.0.2.10A local message that a packet is too long concerns the local route or known MTU. Silence alone is inconclusive, especially if all echo is blocked. These tests cannot establish the HTTPS path MTU by themselves. Correlate them with actual transfer failures and captures before changing interface MTUs.
IPv6 requires ICMPv6 for essential functions, including Neighbor Discovery on the local link and Packet Too Big errors. Follow the message-specific guidance in RFC 4890 rather than applying an IPv4 echo policy to all ICMPv6.
How do you fix the confirmed cause safely?
If the documented policy intentionally blocks echo and services work, the resolution may simply be correcting the monitoring check. If echo is required, change the identified control rather than opening unrelated ports.
Before changing a remote firewall, verify that you have a working console or another recovery path, preserve the current configuration, and prepare rollback. A rule error can lock you out or expose services.
- Confirm the target address, address family and observed source address from the earlier tests.
- Identify the responsible layer using its rules, counters or packet evidence. Ask the provider to investigate if the control is outside your access.
- If policy permits, allow echo requests from the required monitoring sources and their replies through the relevant controls. ICMP has types and codes, not TCP port numbers.
- Preserve the required ICMP errors for Path MTU Discovery and essential ICMPv6 traffic. Such errors can come from routers, not just the monitoring source.
- Apply one change, retest, and persist it through the existing firewall or configuration management system only after confirming the result.
If the earlier sysctl check returned 1 and that setting is confirmed to be unintended, record the old value and test this runtime IPv4 change. It does not bypass firewall rules. Restore the recorded value if the change must be rolled back; update the responsible persistent configuration separately after verification.
sudo sysctl -w net.ipv4.icmp_echo_ignore_all=0How do you verify the result and avoid recurring alerts?
Repeat the original probes from the same source and compare the same destination address. Open a new SSH connection while retaining the existing session, check HTTPS, and repeat the workload that actually failed. Successful ping alone is not the acceptance test for a service repair.
- Do not flush the firewall or disable it just to make ping green. Narrow changes are easier to verify and reverse.
- Do not disable TLS certificate verification to test an IP address. Preserve the hostname as in the curl example.
- Do not treat lost traceroute replies as proof of a forwarding failure. Compare them with successful end-to-end requests.
- Monitor the user-facing protocol and, where appropriate, application responses. Keep echo as a separate signal with an explicitly documented policy.
- Record IPv4 and IPv6 behavior, permitted monitoring sources and the owner of each filtering layer. Recheck after VPN, routing or provider rule changes.
For escalation, provide the test source, destination, address family, affected protocol, observation time and a short summary of capture findings. This lets another administrator compare the same traffic rather than repeat a generic availability test.
How does CH-J Tools help compare the results?
In CH-J Tools, Server Diagnostics runs ping through the system tool without root, alongside separate TCP, SSH identification, HTTP and TLS tests. This puts an unanswered ping in the context of the service tests instead of making it the only availability signal.
A failed ping there means that no reply arrived. It does not identify where a packet was dropped, and traceroute may leave that question unanswered too.
Frequently asked questions
Does 100 percent ping loss mean the server is down?
No. It means no echo replies were received during that test. Check the same address and family with the required service protocol before declaring an outage.
Which port should I open for ping?
There is no TCP or UDP port for ping. Configure the appropriate ICMP or ICMPv6 message types and source scope in the relevant firewall.
Why does ping work over VPN but fail without it?
The source address, route or applicable filtering policy may change. Compare the actual destination and source addresses in both cases before altering the server.
Can an MTU problem affect SSH after login?
Yes. A small exchange may succeed while larger packets stall. Blocked MTU feedback is one possible cause, so compare packet sizes and transfer behavior rather than assuming every hang has this explanation.
Should I allow every ICMP message to fix this?
Do not replace a blanket block with an unexamined blanket allowance. Distinguish echo policy, required error messages and essential IPv6 functions; use message-specific rules appropriate to the network.
Detailed documentation
Microsoft Learn: Test-NetConnection →