Iptable firewall rule for icmp ping rule

I am all puzzled at the IP tables firewall rule I need implemented.

What would be the exact iptable rule to allow a certain IP range to ping monitor your server.


Any help is much appreciated.

Obviously something below doesnt work:


iptables -A interface0_in -p icmp --icmp-type echo-request -s XXX.XXX.XXX.XXX/24 -m state --state ESTABLISHED -j ACCEPT


XXX.XXX.XXX.XXX/24 is the monitoring server.

 

 

 

 

Top