thedark Second Lieutenant
Joined: 30 Jul 2005
Posts: 1074
|
Posted: Sun Jul 31, 2005 10:10 am Post subject: Allow ICMP ping |
|
|
To enable ICMP ping incoming client request use following iptables rule (you can add rule to script):
SERVER_IP=”202.54.10.20”
iptables -A INPUT -p icmp -s 0/0 -d $SERVER_IP -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -p icmp -s $SERVER_IP -d 0/0 -m state --state ESTABLISHED,RELATED -j ACCEPT
To enable ICMP ping outgoing request use following iptables rule:
SERVER_IP=”202.54.10.20”
iptables -A OUTPUT -p icmp -s $SERVER_IP -d 0/0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p icmp -s 0/0 -d $SERVER_IP -m state --state ESTABLISHED,RELATED -j ACCEPT |
|