Ok, I think this should be a pretty easy question for anyone that knows their way around routing and iptables. Unfortunately I don't fit in that category
I have an adsl modem that provides a telnet interface. Ideally, I would like to access that from my computer directly. The biggest problem is already solved, which is to have access while it's plugged into the WAN port of my wrtsl54gs (running WR RC5). Following the instructions here: http://www.dd-wrt.com/wiki/index.php/Ac … figuration I can telnet from OpenWRT into the modem. I don't know why the modem and LAN ports need to be on different networks (I'm using 192.168.1 for the modem and 192.168.0 for my LAN), but I followed the instructions and it works. As a bonus when I try telnetting from my computer it's silent instead of giving me no route to host.
So now it's a firewall issue. I verified that disabling the firewall lets me telnet to the modem. But I can't find the magic incantation to get iptables to allow me access without disabling the entire firewall. Help would be appreciated.
Notes:
modem IP: 192.168.1.1
WAN alias: eth1:1 (IP: 192.168.1.10)
LAN interface: br0 (I believe that's the interface covering both wired & wireless, which is what I want)
machines on LAN: 192.168.0.xxx
Anything else that would be useful?