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)
I've cross compiled the OpenWRT 8.09.2 (Kamikaze) for WNR3500L. The source code was downloaded from this website.
Unfortunately, I cannot set up the network. "Out of the box" settings are not working.
I can ping the router (192.168.1.1) from my laptop. On the router site, the 192.168.1.1 address is assigned only to the br-lan bridged interface.
OpenWRT guys have told me that I shall setup network interfaces as:
eth1 - WiFi (wl-compat module is needed to provide wext for Broadcom WiFi interface)
eth0.0 - 4 LAN interfaces (here also some bridge interface shall be defined)
eth0.1 - WAN interface (to connect DSL modem)
I've set up those interfaces, but with no success.
I'd like to be able to have the basic setup:
DSL modem (WAN port - the yellow one) -> WNR3500L (OpenWRT) (LAN port) -> Linux laptop.
The goal is to have access from my Laptop to the Internet provider's web based administration portal (to change mac address to the router's one).
Can anyone share with me the /etc/configs/network file (or any other needed files) for this setup? I also suppose, that proper NAT between eth0.0 and eth0.1 shall be set up.
Have anyone had a similar problem and can share his/her configuration files?
Thanks in advance,