View Single Post
  #10  
Old 16th March 2006, 09:18
zacch zacch is offline
Junior Member
 
Join Date: Mar 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have try this and it works

#For Outside to Ping Intside
#ICMP Rules
#For Outside To Ping Inside
#-A INPUT -s 127.0.0.1 -p icmp -j DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp --icmp-type echo-request -j ACCEPT
-A INPUT -p icmp --icmp-type echo-reply -j ACCEPT
#For Inside To Ping Outside
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -p icmp --icmp-type echo-request -j ACCEPT
-A OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT

For DNS
#Accept DNS
-A INPUT -p udp -i eth0 --sport 53 --dport 1024:65535 -j ACCEPT
-A OUTPUT -p udp -o eth0 --dport 53 --sport 1024:65535 -j ACCEPT

anyway still building up the iptables thing pls advise if there is anyting wrong thank you
Reply With Quote