1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More. on wan?

Discussion in 'DD-WRT Firmware' started by Dragon2611, Jul 12, 2008.

  1. Dragon2611

    Dragon2611 LI Guru Member

    Anyone know how i can access

    my router running ddwrt is with lan on 192.168.2.xxx

    On the WAN port I have my DSL modem I would like to be able to access it's webif

    On tomato there was a place to put an iptables rule in the firewall scripts section, is it possible to do the same in DD-WRT?
  2. LLigetfa

    LLigetfa LI Guru Member

    Sure, same thing only different.

    In Tomato you use:
    ip addr add ...

    In dd-wrt you use:
    ifconfig ...
  3. Dragon2611

    Dragon2611 LI Guru Member

    Only problem is can't actually remember what the Command was :redface:

    I think it was something to do with Masqurade
  4. LLigetfa

    LLigetfa LI Guru Member

    I thought you only needed a nudge.

    Here is what I use. You will have to change the IPs, netmask, and the CIDR to suit.

    ifconfig vlan1:1 netmask broadcast

    iptables -I POSTROUTING -t nat -o vlan1 -d -j MASQUERADE
  5. Dragon2611

    Dragon2611 LI Guru Member

    Don't think it likes those commands.

    If I run the first one manually (changed to what i think is the correct IPS) (did try it at startup also)

    ifconfig: SIOCSIFADDR: No such device

    Think i might have read something about the wrt160 and Vlans that might be problematic actually.
  6. LLigetfa

    LLigetfa LI Guru Member

    Are you doing anything fancy with VLANs already?
    What does your VLAN tab look like?

    Here is mine where you can see the result of my script.

    Attached Files:

  7. Dragon2611

    Dragon2611 LI Guru Member

    I'm not doing anything with Vlans at all, just remember seeing somewhere that wrt160n doesn't like vlans.

    Anyway I cheated in the end just plugged a second cable between the modem and one of the LAN ports on the wrt160N then put the modem on

    Afaik it shouldnt be a secuirty problem since although the Modem is now on the LAN and WAN side only the WRT160N has an Internet routeable IP

Share This Page