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

Accessing bridge through Tomato Router?

Discussion in 'Tomato Firmware' started by WRT-Tomato, Apr 16, 2007.

  1. WRT-Tomato

    WRT-Tomato LI Guru Member

    Hi geeks and nerds out there,

    I am using a Tomato 1.06 Linksys (WRT54GL) for routing,
    and a separate modemrouter (Siemens SL2 141), set to bridge modus.
    I believe I saw a line on how to access a Modem through
    some Linksys router (using replacement firmware) somewhere on the web
    recently. Should have been some open-wrt or some other wrt replacement.

    Question:
    Is it possible to access the (/any) bridge through the Tomato router?
    I'd like to examine the DSL line quality regularly.
     
  2. ntest7

    ntest7 Network Guru Member

    Just make sure your internal LAN is a different network than the modem network. Then it should "just work".

    ie. if the modem is accessed through 192.168.1.254, the set the linksys IP to 192.168.2.1
     
  3. Odin-60

    Odin-60 LI Guru Member

  4. ntest7

    ntest7 Network Guru Member

  5. WRT-Tomato

    WRT-Tomato LI Guru Member

    I wonder what this "no" is referring to?
    As far as I can see from the links, it seems to be possible some way
    or the other?


    "ie. if the modem is accessed through 192.168.1.254, the set the linksys IP to 192.168.2.1"
    I tried that, Linksys 192.168.2.1, Computer 192.168.2.2, Siemens 192.168.1.1, but no success yet.
     
  6. Odin-60

    Odin-60 LI Guru Member

    That's what I meant by saying "no". If your WAN connection is provided
    using the PPPoE protocol, choosing different subnets for modem and router
    is not sufficient. Additionally, certain commands must be executed to
    enable an IP connection to the modem. The FAQ tells these commands
    and how to make the router execute them automatically at startup.

    Only choosing the right addresses for modem and router is sufficient
    if your WAN connection is of type DHCP; from your mentioning of the
    SL2-141 I concluded, however, that your WAN connection is provided via
    DSL and PPPoE. (Right?)
     
  7. WRT-Tomato

    WRT-Tomato LI Guru Member

    Jawohl, Kamerad, es ist natürlich pppoe. :)

    Although, since the question was "Is it possible to access the (/any) bridge through the Tomato router?" it seems the answer would be "yes".

    Still fiddling. If I don't lose patience i will post the solution here.
     
  8. Odin-60

    Odin-60 LI Guru Member

    Based upon your information re. IP addresses, i.e.,
    Linksys 192.168.2.1, Computer 192.168.2.2, Siemens 192.168.1.1,
    the solution is:

    Put the following line into the "Firewall" script

    /usr/sbin/iptables -I POSTROUTING -t nat -o vlan1 -d 192.168.1.0/24 -j MASQUERADE​

    and these two ones into the "Init" script:

    sleep 5
    ip addr add 192.168.1.3/24 dev vlan1 brd +​

    Rough explanation: A virtual LAN 192.168.1.x is created at the
    WAN port, and the Linksys is assigned the address 192.168.1.3
    in this VLAN. In consequence, it can communicate with the
    Siemens modem via IP.

    --
    ich wünsche viel Erfolg, Kamerad!

    <edit>
    Fixed designation of Init and Firewall script,
    which I had mixed up. :blush:
     
  9. WRT-Tomato

    WRT-Tomato LI Guru Member

    Tried Odin's reply reversed for init/fw, and it works, finally.
    Ufffffff!

    EK für Odin. :)
     

Share This Page