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

Access modem with PPPoE?

Discussion in 'Tomato Firmware' started by bleagh, Nov 5, 2006.

  1. bleagh

    bleagh Network Guru Member

    I have my modem in bridge mode, then use PPPoE on my WRT54GS to connect to my provider. With both DD-WRT and Thibor15c I used a firewall script that allowed me to access the modem's web interface. But with Tomato it doesn't work.

    Does anybody know how to configure Tomato so I can access my modems web interface?

    Modem's IP is: 192.168.0.1
    router's IP is: 192.168.1.1

    Thanks!
     
  2. bleagh

    bleagh Network Guru Member

    Okay, I figured it out! I just put the following 2 lines in the firewall script:

    iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.0.0/24 -j MASQUERADE
    ip addr add 192.168.0.2/24 dev vlan1 brd +

    Usually I would put the second line in the startup script. But it doesn't work when I put it in Tomato's Init script. Which makes me wonder what the Init script section in Tomato is for? Does it even work?

    Thanks.
     

Share This Page