October 18, 2010 2:34 PM

So this is the trick for WNR3500L:

By default OpenWRT Kamikaze 8.09.2 has the following interfaces:
eth0 is WAN, eth0.1 is LAN (4 ports) and eth1 is the WiFi.

I don't know why it is assigned like this (as the opposition to the information given by OpenWRT guys). I will need to check it in the sources. Anyway it works.

Four simple steps (according to: http://www.revsys.com/writings/quicktips/nat.html)
1. echo 1 > /proc/sys/net/ipv4/ip_forward
2. /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
3. /sbin/iptables -A FORWARD -i eth0 -o eth0.1 -m state --state RELATED,ESTABLISHED -j ACCEPT
4. /sbin/iptables -A FORWARD -i eth0.1 -o eth0 -j ACCEPT

Then the router shall work (i.e. forward browser's requests to ISP's web Interface)