4 September 2019
Written by Guillermo Gómez Savino
This post is yet another case of what’s going on here type of situation.
The phenomena:
arp works, but no ping
Observations
- Ethernet packets are passing through the network.
- ICMP ping is not working.
Possibilities and expected behaviour
In our setup there’s no packet filtering at the destination IP, so we expect ICMP ping to work.
Target host
And here comes the obvious thing to ask about, what’s the net setup at the target besides net filtering.
Ok, this not a so simple case. Lets capture some net traffic at the target host.
There is no doubt ARP is doing its job. Now ICMP turn.
That is enough prove we receive ICMP packets but our host is not responding. Go back to take a look at packet filters more deeply.
At first i reviewed filter INPUT chain:
Is that enough? No.
What about the other chains and tables in netfilter? Then i started to look closer and found:
Please notice DROP as the default policy of the chain.
Magic solution
Then the ICMP ping started to flow regularly.
So yes, there were a packet filter in the middle.
On the why FORWARD policy is DROP is out the scope of this post.
tags: linux - debug - networking