dd-wrt fix for NAT loopback

By gill, 30 October, 2011

Go to Administration > Commands
Put the following code in the Commands window:

insmod ipt_mark
insmod xt_mark
iptables -t mangle -A PREROUTING -i ! `get_wanface` -d `nvram get wan_ipaddr` -j MARK --set-mark 0xd001
iptables -t nat -A POSTROUTING -m mark --mark 0xd001 -j MASQUERADE

Click [Save Firewall]

Private
No