1

I'm trying to allow all incoming ICMP connections from the internal network using iptables, but somehow it won't allow it.

I've added the following rules:

iptables -P INPUT DROP

iptables -A INPUT -p icmp -s 0.0.0.0 -d 0.0.0.0 -j ACCEPT

If also tried to alter the second rule to:

iptables -A INPUT -p icmp -s 0.0.0.0 -j ACCEPT

and

iptables -A INPUT -p icmp -i lo -j ACCEPT
1

If you want to allow it for everyone, try to specify the mask after the IP address.

from:

iptables -A INPUT -p icmp -s 0.0.0.0 -d 0.0.0.0 -j ACCEPT

to:

iptables -A INPUT -p icmp -s 0.0.0.0/0 -d 0.0.0.0/0 -j ACCEPT

This worked for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.