2

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

1 Answer 1

4

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .