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
|