DD-WRT Can’t connect to Wireless Network
Can’t connect to a wireless network in windows or otherwise? This issue came up on the DD WRT firmware enabled routers I have. It’s possible that either FORWARDED ICMP traffic is blocked or an explicit rule on an interface is missing. Here is a list of rules you can try, or the equivalent on your router:
# ———————-
iptables -A FORWARD -p icmp –icmp-type 0 -j ACCEPT
iptables -A FORWARD -p icmp –icmp-type 3 -j ACCEPT
iptables -A FORWARD -p icmp –icmp-type 8 -j ACCEPT
# ———————-
# ICMP – Allow ICMP TYPE 8 – Echo
# ———————-
iptables -A INPUT -p icmp –icmp-type 8 -j ACCEPT
iptables -A OUTPUT -p icmp –icmp-type 8 -j ACCEPT
# ICMP – Allow ICMP TYPE 3
iptables -A INPUT -p icmp –icmp-type 3 -s $(nvram get wan_ipaddr) -d $(nvram get wan_ipaddr) -m state –state NEW,ESTABLISHED,RELATED -j ACCEPT
# ICMP – Allow ICMP TYPE 0
iptables -A INPUT -p icmp –icmp-type 0 -d $(nvram get wan_ipaddr) -m state –state NEW,ESTABLISHED,RELATED -j ACCEPT
# ICMP – Allow ICMP TYPE 8
iptables -A INPUT -p icmp –icmp-type 8 -d $(nvram get wan_ipaddr) -m state –state NEW,ESTABLISHED,RELATED -j ACCEPT
# ———————-
# ICMP – 192.168.0.X
# ———————-
iptables -A INPUT -p icmp –icmp-type 0 -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
iptables -A OUTPUT -p icmp –icmp-type 0 -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
iptables -A INPUT -p icmp –icmp-type 8 -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
iptables -A OUTPUT -p icmp –icmp-type 8 -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
iptables -A INPUT -p icmp –icmp-type 3 -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
iptables -A OUTPUT -p icmp –icmp-type 3 -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT
# ———————-
While determining what exactly is blocking traffic on your end, add the following lines at the bottom of the rules to drop any other traffic, and log it, that wasn’t taken care of the rules that already existed above:
iptables -A FORWARD -j LOG –log-prefix “DROP: ”
iptables -A INPUT -j LOG –log-prefix “DROP: ”
iptables -A OUTPUT -j LOG –log-prefix “DROP: “
Hope this helps!
Cheers,

