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

Tomato and ebtables

Discussion in 'Tomato Firmware' started by bagu, Jul 1, 2009.

  1. bagu

    bagu Network Guru Member


    I'm searching after a method to make a special stuff working.

    I have this actually :
    internet -> Adsl Modem (freebox) _> Router (wrt54gs + tomato 1.25) -> PC's
    ........................................|_> Video box

    The video box ask ip ( from internet trought freebox with dhcp requests
    My PC's are on 192.168.1.x

    I'm searching a solution to put my video box after the router.

    I have found a solution witch work on a pc with debian and ebtables as router.
    installer ebtables + le module noyau adapté
    sudo modprobe ebtables
    sudo modprobe ebtables_broute
    les modules sont à rajouter dans /etc/modules pour rendre le changement permanent
    à rajouter dans votre firewall (/etc/network/if-pre-up/iptables-start si vous êtes sous debian)
    ebtables -t broute -A BROUTING -p 0x8100 --vlan-id ! 100 -j DROP
    ebtables -t broute -A BROUTING -p ! 0x8100 -j DROP
    et sous /etc/network/interfaces
    auto br0
    iface br0 inet manual
            bridge_ports interface0 interface1
        bridge_maxwait 0

    But i search to make the same thing when using my wrt54gs.

    Can someone help me ?
  2. Toastman

    Toastman Super Moderator Staff Member Member

    bagu, Jon Zarate released a version of Tomato with etables in it, I remember it caused some problems and he took it out. I think it was v1.22. It might be worth a try. If you can't find it PM me with your email address and I'll mail it.
  3. bagu

    bagu Network Guru Member

    Thanks, i have seen that the 1.22 have ebtables, removed in 1.23.

    But, i don't know exactly why it was removed, and i don't know how i can add it on 1.25 (pretty stable, that's why i hope i can only add ebtables on jiff for example)

    I can't find v1.22 source code wich can help me a lot...Do you have it ?
  4. Toastman

    Toastman Super Moderator Staff Member Member

    I'll PM you a link to follow
  5. bagu

    bagu Network Guru Member

    Finally, it don't work...option "broute" is not include in v1.22

    So my probleme is still here, i'm searching a solution ton make this working :

    Internet -> ADSL Modem (freebox) -> Linksys wrt54gs -> PC's
    ............................|_ VLAN100 -> Video Box (asking by DHCP)

    And i want to change it to :

    Internet -> ADSL Modem (freebox) -> Linksys wrt54gs -> PC's (192.168.1.x)
    ...............................................................|_-> Video Box (asking by DHCP)

    A solution may be as follow :
    bridge between Vlan100 and Lan of wrt54gs + 2nd dhcp option to assign to video box

    But i don't know if it can work and how to make it.
  6. Toastman

    Toastman Super Moderator Staff Member Member

  7. bagu

    bagu Network Guru Member

    Excuse me, but i don't understand...what is drat ? (French is my native language)
  8. dvaskelis

    dvaskelis Network Guru Member

    It's an extremely polite expletive. It's used like "merde" but you could say it even around the most sensitive soul without offense.
  9. bagu

    bagu Network Guru Member

    Ok (thanks dvaskelis for explainations), so there is two options...

    -Toastman say me : help yourself i can't do it for you (or something like it)


    -Toastman say me : "draft !" let's try to see if there is an other way to do it with tomato

    If it's the first : sorry to ask something really hard (because it is ! ^^)...I'll try to make it myself and if i can find a solution, i'll post it here to help others like me.

    If it's the second : is there someone who have a begining of solution or idea ?
  10. lollekatt

    lollekatt Reformed Router Member

    Sorry for necrobumping this... (topic is relevant to me BUT).. just LOL.. how cute a convo :)
  11. lancethepants

    lancethepants Network Guru Member

    Wow, a very old thread.

    Modern routers with modern versions of tomato have ebtables (I'm currently using RT-N16 with Toastman). I wouldn't even bother with ebtables on any WRT54G variant. Enabling ebtables will instantly halve you're throughput though. If even modern routers can't keep up with your internet speed while using ebtables, you'll need to look to other alternatives.

    You should just start your own thread if you have any more questions. No more necrobumping, it's probably as desirable around here as necrophilia. :)
  12. lollekatt

    lollekatt Reformed Router Member

    Hi Lanmce.. ye I didn't want to bring it up for the topic.. just the cuteness of the lost in translation hihi xD

    But.. ye.. I was thinking brouter stuff but I think overall, the ebtables are just out. I was hoping to kinda counter the very idea of vlan segregation but it was just all smoke in the mirror :)

Share This Page