Trilight Zone Forum Index Trilight Zone
Privacy & Anonymity is our specialty !
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Allow ICMP ping

 
Post new topic   Reply to topic    Trilight Zone Forum Index -> Linux
Author Message
thedark
Second Lieutenant


Joined: 30 Jul 2005
Posts: 1074

PostPosted: Sun Jul 31, 2005 10:10 am    Post subject: Allow ICMP ping Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Trilight Zone Forum Index -> Linux All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group