For some reason, the router (RC5) responds to pings from the internet. How do I turn this off?
After some research, i found this website which recommends adding the following rules to iptables:
iptables -A proto-icmp -p icmp --icmp-type 3 -j ACCEPT
iptables -A proto-icmp -p icmp --icmp-type 11 -j ACCEPT
iptables -A proto-icmp -p icmp --icmp-type 12 -j ACCEPT
iptables -A proto-icmp -p icmp -j DROP
Adapting this for the openwrt, i tried to put in the first line which was:
iptables -A prerouting_rule -i $WAN -p icmp --icmp-type 3 -j ACCEPT
but I got the following error:
Warning: wierd character in interface `-p' (No aliases, :, ! or *).
Bad argument `icmp'
Try `iptables -h' or 'iptables --help' for more information.
I assume openwrt's iptables does not support icmp matching? Why not? How can i make mine support it?
(Last edited by eatnumber1 on 5 Apr 2006, 02:43)