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

Route Modem IP question

Discussion in 'Tomato Firmware' started by sardaukar, Dec 20, 2013.

  1. sardaukar

    sardaukar Addicted to LI Member


    I have recently upgraded from a WRT54GL to an ASUS RT-AC66U and I'm running Shibby's Tomato mod, which is pretty awesome!

    The only problem I have with it is that I lost access to my modem's UI. I used to have

    sleep 5
    id addr add dev vlan1 brd +
    iptables -I POSTROUTING -t nat -o vlan1 -d -j MASQUERADE

    iptables -I POSTROUTING -t nat -o vlan1 -d -j MASQUERADE
    as Init and Firewall scripts, respectively, and it worked fine on the WRT54GL. But I tried using the scripts again (they don't work) and using both and as input for the "Route Modem IP" option on Shibby, and it doesn't work either.

    I'm using a DrayTek Vigor to do PPPoE passthrough, the ASUS does PPPoE auth, and my default LAN space is 192.168.0.x - what can I be missing?

    Thanks for any help!
  2. Kim K

    Kim K Serious Server Member

    You have to have the modem in a different subnet to the router. On my AT build it says this next to the route modem ip field.

    I use a Draytek Vigor 120 at passthrough to an E4200 on
    I simply have in the "Route modem IP" field, no iptables commands are needed.

    The only thing to note, is that for some reason you can't get to the modem until the pppoe connection is up.
  3. sardaukar

    sardaukar Addicted to LI Member


    I mention them being different in my previous post. I managed to get it to work by disabling the DHCP server on the modem, which is the weirdest fix ever for this :/

    Thanks for your input! Cheers,

  4. mstombs

    mstombs Network Guru Member

    The GUI should now do the correct iptables commands, one big reason the OP commands won't work is that the WAN interface isn't vlan1 in many new routers - it is usually vlan2 now. Can make the commands look up the interface name using something like $(nvram get wan_ifname).
  5. sardaukar

    sardaukar Addicted to LI Member

    Good to know, thanks!

Share This Page