tofu 12

Discussion in 'HyperWRT Firmware' started by tofu, Jan 9, 2006.

  1. tofu

    tofu Network Guru Member

    12... :)

    * Fixed PPTP/L2TP address used for DDNS.
    * Use of Dnsmasq for DNS in DHCP can now be disabled.
    * Use of ISP served DNS (from DHCP/PPPoE) along with static DNS can now be disabled.
    * DHCP client: Fixed a problem with udhcpc not closing sockets in some cases. Fixed a problem with the DHCP release button not working. udhcpc is now automatically restarted if it crashes. Thanks to koitsu for hunting the bugs down!
    * Time: Automatic NTP updates can now be disabled. Time is now updated even if WAN protocol set to disabled.
    * iptables: Missing SNAT iptables extension added. ip_tables_targets no longer display the standard and error targets which show up as a blank line and the word ERROR.
    * Site survey: Now works even without xmlhttp. Controls simplified.
    * Fixed a memory leak when viewing the status page.

  2. pharma

    pharma Network Guru Member

    I've been using this for a few hours now and find it to work beautifully! Thank you for your wonderful work!! :clap:

  3. bikerks

    bikerks Network Guru Member

    In my statusline right up i see tofu11xx as version not tofu12 :)

    have update from you modifiy version tofu 11 from 12/28/2005 to 12...

    now i`m not shure if i have now version 12.
    statusline is not all.

    hw can i test which version on my wrt ?


    edit: 2nd it works :cheer: tofu12 in status...why not at 1st upgrade :cry:
  4. pharma

    pharma Network Guru Member


    My status line states:

    Firmware Version : v4.30.1, HyperWRT 2.1b1 +tofu12

    I think your firmware flash did not work. Try again and manually set your router parameters/options.

    Did you follow the instructions in the readme at Tofu's site?

  5. bikerks

    bikerks Network Guru Member

    wrt 54 g v 2 @ 252,126 mhz / wlanspeed to lanpc @ 2,3MB sec @54mbits/ -60dbi

    now it works@ upgrade 2nd time...1st time i upgraded from wlan fault :) :thumbdown: :grin: ... great firmwares ....never had problems since hyperwrt 2.1 and hyperwrt+torfu 11 12...and on wrt 54 gs with thibor ...very stable... :rockon: ...look every day if router is down or discon. after 1440 minutes by my settings :clap: i mean tofu 12 is a stable ready firmware... :drinking: firmwareupgrade in upgradewindow,never use tfpc.....firmware must be stable, work with internal upgradetool....tofu+thibors does !!! if anyone have here an asus 500g deluxe? came next week to me, only can use dd-wrt 23 on it....what the results with dd-wrt23 on it ?

  6. siuswat

    siuswat Network Guru Member

    I can't find BT startup strip in the readme file
    is that mean no need the strip anymore for p2p? :grin:
  7. PrimalScream

    PrimalScream Network Guru Member

    Thanks tofu! :thumb:
  8. Scotto

    Scotto Network Guru Member

    Works good on my wrt54g v2 and now site survey works too without any deconnexion.
    Thx so much.
  9. NateHoy

    NateHoy Network Guru Member

    If you are referring to the startup script, then no, you don't really need one in Tofu 12 unless you experience problems. Tofu has defaults that work for P2P (I'm running about 7 BitTorrents at the moment, and my uptime is approaching 24 hours since loading Tofu 12, no problems so far and I have a LOT of connections pounding).

    Under extreme load, you may want to expand out the number of connections, etc. The "standard" script is as follows:

    echo 4096 > /proc/sys/net/ipv4/ip_conntrack_max
    echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
    echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
    echo 512 > /proc/sys/net/ipv4/neigh/default/gc_thresh1
    echo 2048 > /proc/sys/net/ipv4/neigh/default/gc_thresh2
    echo 4096 > /proc/sys/net/ipv4/neigh/default/gc_thresh3
    echo "600 1800 120 60 120 120 10 60 30 120" > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts

    There are a few threads around describing what each line does. Just look for any discussion on BitTorrent.
  10. Rudi1

    Rudi1 Network Guru Member

    Thanx a lot tofu for your work on this firmware,I try version 12 and for now work like a sharm! :cheer:
  11. phuklok1

    phuklok1 Network Guru Member

    thanks for the hard work!!! cant wait to try it out.
  12. GuiPoM

    GuiPoM Network Guru Member

    I experience still the same problem with my WLAN led still flashing even if no more wireless device is connected ...

    Problem appeared on tofu10 and seems to be still here in tofu12

    I tried to reset nvram to be absolutely sure that this is not an upgrade problem
  13. swinn

    swinn Network Guru Member

    Do you have neighbors who have wireless devices too?
  14. GuiPoM

    GuiPoM Network Guru Member

    Led flashes because wireless device are still present in DHCP table (I guess, I can't see anything else).

    I use WPA2 and AES. So if I have wireless devices in my neighbourhood, they should not interfere. If I suppose they could, there are not listed in device list.

    If I reboot the router, led is not flashing anymore.
  15. pharma

    pharma Network Guru Member


    What wrt54g router version are you using? Curious to see if anyone else with the same version has the same problem. I'm have 2 wrt54g's (version 1.1 & 4.0) and do not experience the same problem. Sorry if you already answered this, but did you "manually" re-enter the router parameters & options. (do not use saved config files)

  16. dcavni

    dcavni Guest

    Are you planing to add WOL to any of the new versions? I use v.11 with qwerty and it works well for me
  17. GuiPoM

    GuiPoM Network Guru Member


    I tried to re-enter paramaters on tofu11 => changed nothing

    on tofu12 just tried to save config, clear nvram and load config
  18. neutralman

    neutralman Network Guru Member

    question regarding wds vs wet

    is there any difference between WET and WDS

    I would like to know, which setup is better for faster file transfer (dektop <-> WRT A - wlan - WRT B <-> desktop)

    has anyone tried to load Thibor11 on WRT54G (v2, v3, v3.1 or v4)
    I heard that afterburner works with WDS so it could be possible to get faster file transfer speed with afterburner

    anyone interested?

    @Thibor - if you read this, would you release new firmware based on Tofu12 but for WRT54GS (and WRT54G + afterburner) if possible :)
  19. Thibor

    Thibor Super Moderator Staff Member Member

    neutralman: i'm working on it, i'm just waiting for some GSv4 testers so i can test the v4 fw, since i've changed the codebase to 1.05.6
    it's essentially done and in test now
  20. crocodilu

    crocodilu Network Guru Member

    I don't know if this is the right place to report a big problem of tofu 12, but anyway:

    Azureus works extremely poor with tofu 12. I don't know why, but speed is 10k maximum. I downgraded to tofu 11, didn't change anything else, only reboot the router, and now I have 80-100k download.
    I've re-tested, upgraded again to tofu 12 and down goes the speed :). Put tofu 11 back...speed is great.

    If you want any other details, I can provide them for you.
  21. davedavedave

    davedavedave Guest

    Do I need to upgrade the Linksys firmware first? I'm currently using 2.02.7. I'm new to this stuff.
  22. asianangel28

    asianangel28 Network Guru Member

    I'm still having bitcomet troubles, I upgraded to tofu 12, after using bt for about 10 minutes, the web browsing stopped working.
  23. jdepew

    jdepew Administrator Staff Member Member

    Hi Davedavedave, welcome to the site... nope, no need to upgrade to the Linksys firmware first - go ahead and install tofu right away. Enjoy! Let us know what you think... Don't forget to do a hard reset before and after firmware update especially since you're jumping so far in revisions.
  24. vincentfox

    vincentfox Network Guru Member


    Recommend doing a search for "bittorrent" or just "torrent". There are hundreds of posts already outlining that BT is a very demanding protcol for ANY router. At least with alternate firmware you can increase connection table size fairly easily. On my DD-WRT unit I just change the default 512 to 4096 and I'm good. See existing posts.

    I also highly recommend Azureus. Some sites ban BitComet clients because they contend it is ill-behaved towards their server networks.

    For my WISP router I chose to use a Linux box with 512 megs RAM and jacked the hashsize and ip_conntrack_max way up. Never a problem with filling up the table now despite having more than just 2-3 people on it.
  25. Vicious

    Vicious Network Guru Member

    Hey Guy's!

    I have had a little problem with Tofu 12. Heres what happened. I had tofu 11 on my wrt54g ver. 2.2 and i decided just a couple of short minutes ago to upgrade. Now i can't talk to my router at all and it just sits there. No communication whatsoever. Can anyone help?

  26. bikerks

    bikerks Network Guru Member


    1st probs with hyperwrt +torfu 12 :cry:

    bittorent...max 200 user-connection,have 4 downloads,3 upload user definied,.. router freezes after 6 hours!..LAN +WLAN and my VOIP dead!

    After rebooting all ok.

    What can i do?
    Change lease time (tofu12 @ setup-page) from 0(1day) to 300 minutes ..that s the way,or must i changed other ?

    Any other ways to run stable?

  27. crocodilu

    crocodilu Network Guru Member

    if you find a solution I would really like to know :). I've tried all possible firmwares and couldn't come to any reasonable performance using torrents.
    Some firmwares have serious functional problems, with the stock firmware being the worst. Toffu is the best of them, but it still has problems. (for example, keep alive doesn't work, pppoe will never reconect if the connections fails and a lot of other small, but annoying things)
    So if you are satisfied with toffu, this is the best around. I am not, so I figured another solution.

    I will buy a cheap computer, build a linux router and configure it according to my needs. I will use the WRT54G just as an AP for the home network. God knows i've tried....but linksys is.....let's just say... not very good.
  28. NateHoy

    NateHoy Network Guru Member

    crocodilu -

    If you decide to build a machine, I'd recommend smoothwall or m0n0wall, both come highly recommended and don't require a lot of computer hardware to run, just a basic machine with 2 Ethernet cards.

    I'm confused, though. I have a WRT54G V4, running Tofu, and with Tofu 10 I got 31 days uptime, running continuous BitTorrent, VoIP (Vonage), and multiple VPN connections to work. All with working QoS, port forwarding, etc.

    I only stopped it at 31 days because Tofu 12 came out, and I wanted a few of the DNSMASQ tweaks in it. So far, I have 3 days, 4 hours and change of uptime, with no problems at all.

    So I'd have to respectfully disagree with your "linksys is not very good" statement. It took some tweaking, but Tofu has turned this humble little $50 box into a serious routing powerhouse, at least for me, and it's exceeded my expectations in almost every way.
  29. crocodilu

    crocodilu Network Guru Member

    i'm only talking about myself, I'm glad that it works for you.
    I just another stupid behaviour just a few minutes ago: suddenly, azureus became very slow and I couldn't even access the router's web page. It was responding very slowly and it took me 5 !! minutes to reach the page with the REBOOT buton. Of course it didn't work at all. Only a reset from the button seemed to fix the problem.

    So now I have toffu 11, the router disconnects twice in 10 minutes, it doesn't reconnect by itself and sometimes I can't even access its web page. Great product, don't you think ? (the router, not the firmware).

    smoothwall or m0n0wall ? No way, I will decide between Fedora, Slak or FreeBSD, I want to put that machine at work, not just a simple router. Btw, I really hope that WRT54G works decently as an access point :))
  30. NateHoy

    NateHoy Network Guru Member

    Hmmm... I used to have that behavior before I loaded Tofu.

    Can you gather a bit of information for me? Go into the command line and post the result of the following commands:

    cat /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts

    cat /proc/sys/net/ipv4/ip_conntrack_max

    I'm not using a startup script in Tofu 12 at all, but you might want to try the following one, which tightens up the connection timeouts and expands out the maximum number of connections:

    echo 4096 > /proc/sys/net/ipv4/ip_conntrack_max
    echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
    echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
    echo 512 > /proc/sys/net/ipv4/neigh/default/gc_thresh1
    echo 2048 > /proc/sys/net/ipv4/neigh/default/gc_thresh2
    echo 4096 > /proc/sys/net/ipv4/neigh/default/gc_thresh3
    echo "600 1800 120 60 120 120 10 60 30 120" > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts

    Also, have you erased NVRAM and restarted with factory defaults?

    Admittedly, my connection is a simple Cable connection that literally has not gone down since I moved into this house in August (I love my ISP!). So I don't know jack about PPPoE handling, reconnect needs, etc. But I do know that I run the poor little bastard pretty hard, and it's performed admirably for me.

    Fair enough. I hear ya. I'd hate to devote hardware (and that much AC power) to a mere firewall, myself. I thought you were looking at a firewall-only solution, though, and those two come highly recommended.
  31. Batnight

    Batnight Guest

    I've always been using these scripts on each new firmware, but always got the same results on a WRT54G V2.
    The router just reboot on its own...
    I am not quite sure where the problem is comming from ?
    IPTable overflown ? heat ?
    Would anybody know how to add some debug info to be sent via syslog like free memory, ipconnection table size,...?

    Thanks in advance.
  32. phinn

    phinn Network Guru Member

    That would be really cool if they addded that BitTorrent script to the menu in the firmware where you can just check the box and it'll use it
  33. NateHoy

    NateHoy Network Guru Member

    Well, the thing is, the most important functions are already there.

    ip_conntrack_max is set at 2048. Doubling this to 4096 (as the script does) can be useful, but for most Torrent users really should not be necessary. If you're burning through 4096 connections before timeout you're probably being overly aggressive with your "simultaneous outbound connections" and losing clients too quickly.

    Default for "Idle Connection Timeout" in the ip_conntrack_tcp_timeouts is 14,400 (4 hours) while the script calls for 1800 (30 minutes).

    So, basically, the two most important parameters are that you cannot burn more than 2,048 connections in four hours. Or, more to the point, you cannot "dirty idle" (lose connection uncleanly) more than an average of 8.5 unique connections per minute over that four hour period.

    If you are really failing to connect to 2,048 servers in a period of four hours, you are either on one humdinger of a busy network, or you are overloading other parts of your connection.

    I'm not saying that the script isn't better, for you, than Tofu's defaults. Only that the defaults cover a LOT of ground.

    Any default that is chosen is subject to problems. The earlier Tofu defaults had the timeout set to 5 minutes, which is a little tight. And if the script were a "click to add", then people would be complaining about every default taken. Personally, I'd rather free up the memory that would be used for such a button, plus the function behind it and the extra copy of the script ready to be copied, and use that memory for iptables. ;)

    Tofu has relatively logical defaults in there, and he's added a facility for you to easily change them at startup by cutting and pasting in a template you can find anywhere, then tuning it to your own needs/preferences.
  34. neoufo51

    neoufo51 Network Guru Member

    I have a question. Has anybody figured out a way to make it easy to users to create their own custom startup script according to their connection? For instance, I have a 6000/384k up connection and have utorrent running at optimal settings according to my connection software wise, but is there any place on the forum here or anywhere on the web (like a script itself of some sort) that would accept the values I put into it and spit out a custom startup script for me to use with the new Tofu 12 firmware? I would really be interested in this sort of thing and many people would enjoy it too.
  35. bikerks

    bikerks Network Guru Member

    internet connection gone !!


    Now great problem with Tofu 12 !!

    Router lost my ppoe-connection after 1,5 days !!!
    My VOIP with Linksys PAP2 on Port 4 gone !!..not fine!

    If i go to status and try the connect button manually all ok(without reboot!!!!)...he connect to internet.

    use connect on demand time:1440
    fix ip dhcp!!

    all ok in that time (1,5 days)

    what s wrong ????

    with hyperwrt 2.1 b no problems !!!

  36. cgondo

    cgondo Network Guru Member

    try to use keep alive instead of connect on demand. I have PPPoE session lasting for it is NOT the is your setting or your ISP
  37. bikerks

    bikerks Network Guru Member

    Now i take 700minutes on demand... works the 1st time..

    it is possible that after disconnect from pp0e torfu 12 dials only a few times to get the connection back and the hyperwrt 2.1 firmware has more tries(so my isp use that..) ????...

    with hyperwrt 2.1 @ 1440 on demand no probs with same equipement.

    when i take `keep alive` is the same as `1440 on demand ` because my voip-adapter(24h on line) send request over NAT,to VOIP-Provider etc etc...
  38. Deranged_1

    Deranged_1 Network Guru Member

    This really isn't a big bug, but the Lan rx and tx on the status page are not in the right order, tx is where rx is supposed to be and vice versa.
  39. hexo

    hexo Network Guru Member

    this is great!

    I really dont know what to say.. but tofu 12 is the greatest thing that ever happened to me. I was on tofu 11 for awhile, but once i got 12, wow!

    all these while with linksys firmware, i get frequent disconnects from my isp, and i was giving them quite a hard time coz i was so pissed off! i get disconnected every hour, especially when i was playing dota (warcraft 3) online. even when im just downloading torrents and casual surfing, i would get disconnected...

    but man! look at this! i didnt get disconnected from isp for 17 hours! that's a super record for me man! almost everyone in my country actually complaints bout d connection to this sole dsl provider... but could it be that its becoz of incorrectly configured modem and routers? either way, i'm really grateful for this firmware... keep up the good work.

    Uptime : 1 day, 06:16:02
    System Load : 0.02 / 0.03 / 0.00
    LAN (rx/tx) : 1.76 G (0.26 K/s) 3.21 G (2.19 K/s)

    WLAN (rx/tx) : 87.52 M (0.01 K/s) 31.78 M (0.01 K/s)

    WAN (rx/tx) : 3.16 G (0.19 K/s) 1.88 G (0.04 K/s)

    eth0 (rx/tx) : 5.16 G (0.53 K/s) 5.19 G (2.26 K/s)

    ppp0 (rx/tx) : 3.10 G (0.16 K/s) 1.73 G (0.04 K/s)

    vlan0 (rx/tx) : 1.80 G (0.26 K/s) 3.31 G (2.21 K/s)


    Configuration Type
    Login Type : PPPoE
    Login Status : Connected
    Connection Uptime : 0 days, 17:09:02

    I havent tried playing warcraft 3 yet though... so far just been downloading torrents like mad (wayyyy faster than i ever experienced). but we'll see... ;)

    btw, im using wrt54g v2.2, with dhcp, dmz, port forwarding, wpa2, all working fine while handling 3 machines, 3 laptops (using wireless, covering a 2 story house with power setting at 50%) and a few virtual machines (using dhcp as well). all i can say is that it's been a solid 1day , 6 hrs since i installed tofu 12.

    once again, thanks for the great firmware!
  40. starbuckzero

    starbuckzero Guest

    i have it running for 24 hours now - awesome firmware. finally smooth surfing while running bittorrent again, thanks so much for all your efforts tofu :thumbup:
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice