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

Tomato Shibby's Releases

Discussion in 'Tomato Firmware' started by shibby20, Feb 26, 2011.

  1. Kevin Darbyshire-Bryant

    Kevin Darbyshire-Bryant Networkin' Nut Member

    I suspect that without further info from you, unless someone else comes forward with a DHCP-PD type set-up, it very much won't be fixed in 110-AIO! By trying to ping from the router you've already helped greatly in that debugging process - I now know that the router has a globally routable IPv6 address which it has obtained via DHCP-PD. The problem is handing out the obtained prefix to your local LAN.

    There has been a big step change from using a relatively un-intelligent programme (radvd) to something a bit more clever (dnsmasq), however dnsmasq is also a bit more fussy. The first thing I'm going to ask you is 'what is the prefix length?' If it is lower than 64 (eg 48/56) please try changing it to 64, reboot your router, try the ping test from your router and only if that succeeds, reboot your PC and try the ping from your PC.

    If the router ping test fails then I'll have to have a bit more of a think.
     
  2. koji

    koji Networkin' Nut Member

    Thank you everyone for your interest in solving this issue.
    @Kevin Darbyshire-Bryant,
    the prefix length is 64 and I tried also 48 and 56, rebooted...I even disabled the antivirus, nothing happened, same thing...
    Pinging from router system is working in all this three cases, but like I said in my previous post, when I try to access a IPv6 site, the only thing I get is a deep silence...
    However, if you or anyone think that I can help with more information I'll gladly do it even if I don't know much about Linux, firmware, etc...:)
     
  3. xorglub

    xorglub Addicted to LI Member

    @koji, does the PC get an ipv6 address ? Can you ping your router's ipv6 address from it ?
     
  4. callous

    callous Network Guru Member

    v109 on the e3200 the 5ghz cannot be connected to after a few days, unless i disable then reenable it on the status overview page.

    Any other e3200 users tried v109 yet?
     
  5. AndreDVJ

    AndreDVJ Addicted to LI Member

    Hello,

    I have the Netgear WNR3500L V2 router and I'm currently using build v108. Can I upgrade straight away from the web interface to V109 or is there a diferent procedure to be followed?
     
  6. koji

    koji Networkin' Nut Member

    @xorglub,
    at Network Connection Details status on IPV6 Adress field was something like 2a02:...
    no Temporary IPv6 Adress field like it use to be,
    at Link-local IPv6 Adress field, something like fe80::...,
    nothing at IPv6 Default Gateway.
    Excuse me for being late and short response but is what I remember, meanwhile I went back to 108-AIO.
    I hope this information will be helpful.

    Best regards!
     
  7. shibby20

    shibby20 Network Guru Member

    yes, you can. If router will brick after upgrade (MTD erase error and power led will blink on green color, then DONT TURN OFF netgear but just flash once again using tftp client and all will be good. In 109 problem with MTD erase error was fixed.
     
  8. kthaddock

    kthaddock Network Guru Member

    In "Status Device List" shows WAN GateWay - IP number not real WAN - IP number. I'm using vlan 10 on WAN.
    I'm unsure what gone display there.
    Build 109-AIO on RT-N16

    RGS
    kthaddock
     

    Attached Files:

  9. Kevin Darbyshire-Bryant

    Kevin Darbyshire-Bryant Networkin' Nut Member

    You mean it's showing the MAC address, not the IPv4 address.
     
  10. kthaddock

    kthaddock Network Guru Member

    No It's shows wan-gateway not real ip-address. ex: gw-xx.xx.120.1 should be wanip-xx.xx.120.126
     
  11. zorkmta

    zorkmta LI Guru Member

    If i have stock firmware of Wnr3500L v2, can i flash directly to 109? Regards
     
  12. shibby20

    shibby20 Network Guru Member

    you have to :) just remember to use k2.8rt-n builds
     
  13. ghoffman

    ghoffman Addicted to LI Member

    i've been sequertially upgrading my routers with shibby builds - thank you for all the wonderful work. i have a gateway E4200, two wirelss AP's, and a few wireless clients scattered throughout an old house with about 20 networked devices total. this topology has been working well for about three years. my latest upgrade to v109 Tomato Firmware 1.28.0000 MIPSR2-109 K26 USB VPN on an e4200v1 has shown some recurrent network stalling.
    the process list on the E4200 shows multiple instances in sd-idle - and i have no discs attached. can you suggest why this might be? i suspect some processes aren't being restarted correctly and that this is leading to hangups..


    PID USER VSZ STAT COMMAND
    1 root 1284 S /sbin/init noinitrd
    2 root 0 SW< [kthreadd]
    3 root 0 SW< [ksoftirqd/0]
    4 root 0 SW< [events/0]
    5 root 0 SW< [khelper]
    18 root 0 SW< [kblockd/0]
    45 root 0 SW [pdflush]
    46 root 0 SW [pdflush]
    47 root 0 SW< [kswapd0]
    48 root 0 SW< [aio/0]
    90 root 0 SW< [mtdblockd]
    285 root 612 S hotplug2 --persistent --no-coldplug
    327 root 1268 S buttons
    328 root 1208 S console
    329 root 1560 S /bin/sh
    344 root 0 SW< [khubd]
    385 root 596 S {p910nd} p9100d -f /dev/usb/lp0 0
    393 root 604 S sd-idle
    518 root 1560 S telnetd -p 23
    2899 root 2796 S httpd
    2900 root 1556 S sh -c /tmp/.wxAWlfto 2>&1
    2901 root 1556 S {.wxAWlfto} /bin/sh /tmp/.wxAWlfto
    2905 root 1556 R ps
    10834 root 604 S sd-idle
    11654 root 604 S sd-idle
    17128 root 604 S sd-idle
    17955 root 604 S sd-idle
    18805 root 604 S sd-idle
    19643 root 604 S sd-idle
    22494 root 604 S sd-idle
    23584 root 1552 S syslogd -L -s 50 -b 1
    23586 root 1552 S klogd
    23611 root 604 S sd-idle
    23722 root 972 S eapd
    23725 root 1076 S nas
    23734 root 1572 S crond -l 9
    23736 root 916 S rstats
    23740 root 1064 S cstats
    23773 root 2372 S nmbd -D
    23774 root 2320 S nmbd -D
    23818 nobody 1100 S dnsmasq -c 1500 --log-async
    23848 root 3212 S N smbd -D
    24184 root 892 S miniupnpd -f /etc/upnp/config
    24187 root 2784 S httpd
    24188 root 1568 S udhcpc -i vlan2 -b -s dhcpc-event -H hoffman1 -m
    suggestions?
    thaanks
     
  14. shibby20

    shibby20 Network Guru Member

    just disable sd-idle (on usb support page)
     
  15. uboot

    uboot Serious Server Member

    Any thought about?

    Furthermore, I don't find busybox renice applet...​
     
  16. fubdap

    fubdap Addicted to LI Member

    What programs are you guys using to read the Webmon Backup? I have used Word, Excel and IE 10. The date/time column shows numbers. How do I convert that column to show date and time. Thanks.
     
  17. jerrm

    jerrm Network Guru Member

    google "excel linux date"
     
  18. shibby20

    shibby20 Network Guru Member

    if you will use my webmon backup feature from v109, there date is already converted to the normal standard :)
     
  19. fubdap

    fubdap Addicted to LI Member

    @Shibby - I save it on a usb stick. I then copy it to my desktop and open it with either 2010 excel, Word 2010 or IE 10. This what I get in the time/date column.

    Code:
    1369489923
    1369489611
    1369489376
    1369488285
    1369488181
    1369488138
    1369488045
    1369487643
    1369487635
    1369487062
    1369487027
    1369486958
    1369486774
    1369486707
    1369465690
    1369465559
    1369465515
    1369465177
    1369464930
    1369464819
    1369462406
    1369461002
    1369450046
    1369449769
    1369449615
    1369449341
    1369449305
    
     
  20. Bird333

    Bird333 Network Guru Member

    @shibby - Using 'tomato-NDUSB-1.28.5x-109-BT-VPN' firmware on a WRTSL54GS when cable is plugged into the '1' port the WAN port also shows it's connected. Also, I can't save a new VIF. After I add the interface and then save it it disappears. Also, I can't do these steps trying to create a 'repeater' with either the WRTSL54GS or the WRT54GS, I can on the GS with Toastman.
    Code:
    1) Make sure you have a VLAN build of Tomato installed. I have a build of Toastman installed and I got it working. Unfortunately, I could not get it working properly on Shibby without having to always release and renew the DHCP address, so perhaps it's a bug. In addition, be sure to reset the router to default settings. This is to lesses change of some unknown configuration preventing the setup from working. To do so go to Administration --> Configuration. Under "Restore Default Configuration" NVRAM reset. Wait for about 5 minutes before proceeding.
     
    2) (Optional) Change the IP address of the router to something like 192.168.93.1 and the DHCP range to something like 192.168.93.2-192.168.93.50. Conflicts can happen if the hotel network and the repeater network are on the same subnet. 192.168.93.1 is isolated enough so the chances of a conflict occuring is minimal.
     
    3) Change the Wireless Mode to "Wireless Client". Enter the SSID and configure the security for the network you want to repeat. This has to be done manually.
     
    4) Click save. Wait 2 minutes. At this point, your ethernet ports should work though this subnet and you should be getting internet. If you are getting internet, you are ready go continue.
     
    5) Go to Advanced --> Virtual Wireless. Create the "wl0.1" interface. Enter your desired SSID. For mode, select "Access Point". For bridge, select "LAN (bro0)". Click add.
     
    6) Enter your desired security settings. Then click "Overview" at the bottom right. Remember, your WPA/WPA2 password must be at least 8 characters.
     
    7) Click "Save" at the bottom right. Wait 2 minutes.
     
    8) Unplug and plug back your router. Wait 3 minutes.
     
  21. Malitiacurt

    Malitiacurt Networkin' Nut Member

  22. Monk E. Boy

    Monk E. Boy Network Guru Member

    http://www.berezniker.com/content/pages/office/excel-convert-unix-time-excel-time

     
  23. fubdap

    fubdap Addicted to LI Member

    Thanks Monk E. Boy. That helps.
     
  24. kthaddock

    kthaddock Network Guru Member

    @Shibby
    I'm using 109-AIO on RT-N16.
    I have discovered on Qos=>Transfer Rates UL/DL rate is reversed,
    showing UPLOAD on DL-rate and DOWNLOAD on UL-rate when using BR1. (BR0 working as is should)

    kthaddock
     
  25. shibby20

    shibby20 Network Guru Member

    thx i will look.

    INFO: i was update Broadcom Wireless driver in RT-N branch. Now we have:
    that was my RT-N66U. Newer driver looks about 20% faster. On older i have (file dowloaded from NAS via samba) 20MB/s, on newer i`ve got 24MB/s.
     
  26. kthaddock

    kthaddock Network Guru Member

    I can test on my RT-N16-AIO build
     
  27. Bird333

    Bird333 Network Guru Member


    Shibby any thoughts on this?
     
  28. RMerlin

    RMerlin Network Guru Member


    The 5.110 driver is broken. Centrino-based wireless cards are unable to connect to the 5 GHz band when using 40 MHz channel width.
     
  29. shibby20

    shibby20 Network Guru Member

    Thx RMerlin for this information. Which driver version you prefer as the most stable and with the most performance?

    I have Intel 5100 i my Asus EEE 1215N netbook and i haven`t any problems with connect to 5GHz 40Mhz network.
     
  30. RMerlin

    RMerlin Network Guru Member


    Might depend on the exact chip used perhaps?. My 6230 was totally unable to connect, and my contact at Asus also reproduced the issue with another Intel-based card (I forgot which). I've had a lot of feedback from other users having issues as well. Unless the issue is more complex than that, and also involves FW code. Last I heard was that Asus and Broadcom were looking into it.

    The most stable versions are either from Asus's 220 or 270 build. I don't remember which I was using before doing the upgrade to the 5.110 SDK (and have been unable to downgrade so far due to other changes Asus/Broadcom did at the same time), a safe bet would probably be the build 220 driver (I believe that was the May 2012 one?)
     
  31. GhaladReam

    GhaladReam Network Guru Member

    shibby,

    I'd be happy to test an RT-N66U-64K-AIO build with updated wireless drivers.
     
  32. shibby20

    shibby20 Network Guru Member

    i will make 2 test build:
    - AIO for N16
    - AIO-64k for N66u

    Will let you know when they will be ready.
     
  33. maleadt

    maleadt Networkin' Nut Member

    Hi all. I cannot get IPv6 to work on 109-VPN on a RT-N66U, Tomato just reboots very early (right after receiving an IP from the modem, connected over PPPoE). I'm using a dual-stack configuration, using DHCPv6 with Prefix Delegation. When Tomato crashes, all status leds on my RT-N66U light up (even the port-indicators on ports without any cable connected), after which the device reboots. Disabling IPv6 fixes everything.

    Looking at the logs, it seems that sometimes the device crashes at various points; most frequently after "read /etc/dnsmasq/dhcp/dhcp-hosts", sometimes after setting up OpenVPN, sometimes right after "vlan2: add 33:33:ff:00:00:00 mcast address to master interface"... Strange thing is that I also witnessed a reboot of the router, having IPv6 enabled, but with the cable between the router and the modem disconnected!

    Is this a known issue, or does anybody know how to fix it? If not, how could I debug this issue?
     
  34. GhaladReam

    GhaladReam Network Guru Member

    Will there be any other changes or just build 109 + updated broadcom drivers?
     
  35. zorkmta

    zorkmta LI Guru Member

    Thanks Flashed Wnr3500l v2 directly v109 from Gui stock and going great, stable for these day
     
  36. krism75

    krism75 Serious Server Member

    You can count me in as tester
     
  37. xorglub

    xorglub Addicted to LI Member

    Thanks shibby for your support, I'll test your new builds on my RT-N16 as soon as they are ready !

    Speaking of new drivers... the dd-wrt guys have started rolling out builds based on linux kernel 3.9. Still very experimental at this stage, but what are the chances of the new kernel making it into tomato in the future ?
     
  38. JugsteR

    JugsteR Serious Server Member

    The very near future (2 years or so), awfully close to zero I'm afraid.

    Signature? Signature!
     
  39. shibby20

    shibby20 Network Guru Member

    new kernel? Sure, but ddwrt devs didn`t publish broadcom drivers to the repo :)
     
  40. RMerlin

    RMerlin Network Guru Member

    Moving to a new kernel would require having the driver sources so it can be recompiled, AFAIK. BS has access to Broadcom's SDK, so it's possible that he recompiled it himself.
     
  41. gogubeb

    gogubeb Addicted to LI Member

  42. Mangix

    Mangix Networkin' Nut Member

    It's also possible that he's using OpenWRT's drivers for Broadcom which are open source. OpenWRT recently gained support for a lot of Broadcom units. see: http://downloads.openwrt.org/snapshots/trunk/brcm47xx/

    Although he has stated that he has the driver sources, he has also stated that the 3.X kernel versions of dd-wrt use a different driver so it's possible that it's OpenWRT's drivers. I have not installed the new dd-wrt K3.X builds yet so I can't verify.
     
  43. shibby20

    shibby20 Network Guru Member

    Fredrik and kthaddock like this.
  44. kthaddock

    kthaddock Network Guru Member

    Thank you Shibby
    I will test in some days, I'm away a few days.

    kthaddock
     
  45. Riddlah

    Riddlah Networkin' Nut Member

    Will load this when I get home from work tonight and report back. I should be able to test it against an atheros, Intel and broadcom wireless cards.

    Sent from my Nexus 4 using Tapatalk HD
     
  46. xorglub

    xorglub Addicted to LI Member

    Thank you Shibby !

    Updated, so far so good as in it hasn't bricked the router and both an Intel 2230 and an iphone 4s can connect to it in open mode. Gotta go now, more tests tomorrow.
     
  47. kthaddock

    kthaddock Network Guru Member

    Well I found some time to test. Connects without any problem. Wireless Network Mode "N Only"
    Have to wait some days to see how it works. Do some speed tests. Seems more stable. Working fine, 2 hour up time.
     

    Attached Files:

  48. kthaddock

    kthaddock Network Guru Member

    After 6 hour time all working very good, RX/TX speed showing more stable figures and RSSI is more than "old" (5.100.138.20) driver.
    Quick speed test download from samba to PC with wusb600n ~8Mb and upload ~4Mb.
     
  49. hawkmat

    hawkmat Networkin' Nut Member

    Hi Shibby! I tried the new 5.110.27.20012 wireless on a RT-N16. This at a business location and I control all the AP's so neighbor interference does not exist. I placed it on channel 6, 20 MHz, set output power to 0. Signal strength is very good, throughput is excellent and equals my RT-N66U AP's on factory firmware. Switched to 40 MHZ and the connection became some what unstable. Signal strength was the same but throughput was a little lower and several times dropped out completely. I tried this driver with the Asus factory firmware and had lots of trouble with the 5 GHz band. Several laptops would not even connect to 5 GHz. All were Intel cards. I found the 6230, 6235, 6300 cards would not work with this driver. If you are using this with a RT-N16 set at 20 MHz this makes an excellent driver with the best throughput I've seen from this model.
     
  50. xorglub

    xorglub Addicted to LI Member

    Update : RT-N16 is still up and stable after > 10GB of data has gone though it :) Wireless signal looks a bit better with improved throughput at 20Mhz but I have no numbers to back this up. 40Mhz cannot be properly tested because of neighbouring APs causing interference. Open and WPA2/PSK modes both ok with Intel, Atheros, Realtek and Broadcom-based clients.

    Only glitch so far : wl status returns nothing ? What is the new command ?

    Looks like it's a worthy upgrade !
     
  51. shibby20

    shibby20 Network Guru Member

    You confimed RMerlin`s words. Thanks. Well i will not publish new driver to GIT. We have to wait for newer one.
     
  52. kthaddock

    kthaddock Network Guru Member

    @Shibby
    Wait for some more testers to come with theirs findings before you decide what to do.
    We are only two who have test this driver with your program.
    I have tested but I don't see same problem as Hawkmat, but I not tested with Intel 6230, 6235 and 6300 card and only on 2.4Ghz.
    Seems he have tried:
    I tried this driver with the Asus factory firmware and had lots of trouble with the 5 GHz band.
    kthaddock
     
  53. shibby20

    shibby20 Network Guru Member

    As RMerlin said, asus confirmed this issue well they propably will include newer/fixed driver in next release or just revert older one. RMerlin said " a safe bet would probably be the build 220 driver (I believe that was the May 2012 one?)" and exacly this driver is not in tomato. I can release new v110 with older driver for all and also 110-NEWDRIVER dor N16 and N66u as i made with v109 and everybody will have a choice.
     
  54. Elfew

    Elfew Addicted to LI Member

    So you will include the most stable driver from asus? Merlin use this version in his builds because it is stable and it has good performance... So last driver is buggy, we can wait for new version from asus or use the 220...

    Which driver is in tomato now? In rt-n build
     
  55. kthaddock

    kthaddock Network Guru Member

    Yes thats is a good solution. I would like to see others testing so we have more conclusion.
    Ehm is one of this forum user who have intrest and have test other "old" driver.
    Maby he is around and can chime in.

    kthaddock
     
  56. shibby20

    shibby20 Network Guru Member

    Now in RT-N is driver from Asus GPL 220 (May 2012).
     
  57. nick ant0ny

    nick ant0ny Networkin' Nut Member

    Hi all!
    Shibby thank you for the great job again. In v109 there will be no mini-IPv6 version for mips2-4mb flash routers?
     
  58. kthaddock

    kthaddock Network Guru Member

    Thank you. I gone test when i went home on sunday.
     
  59. Bird333

    Bird333 Network Guru Member

    Is this the proper thread to discuss bugs/issues with Shibby firmware?
     
  60. GhaladReam

    GhaladReam Network Guru Member

    Shibby,

    Is the new 5.110 wireless driver the same one ASUS includes in the RT-N66U stock 3.0.0.4.354 firmware?
     
  61. justinbeaird

    justinbeaird Serious Server Member

    .
     
    Last edited: Jun 11, 2015
  62. Marcel Tunks

    Marcel Tunks Networkin' Nut Member

    Seems like you've been spending time in the dd-wrt forums. ;)

    What's your internet speed, and how close are you to that throughput when the slowdowns happen? Which devices are using the most throughput?

    What apps are you running on the PS3?

    Re-enable WMM, switch back to N, keep 20MHz, choose channel 1, 6, or 11. Ideally you should use wired > powerline > wifi, but I understand that there's sometimes no alternative.

    I noted that QoS is off. Is there a reason? Sounds like the kind of problem QoS is meant to solve.
     
  63. RMerlin

    RMerlin Network Guru Member


    Yes.
     
  64. justinbeaird

    justinbeaird Serious Server Member

    .
     
    Last edited: Jun 10, 2015
  65. Marcel Tunks

    Marcel Tunks Networkin' Nut Member

    Rather than 30/30/30, please do NVRAM erase in the administration tab, then start over.

    Is it just other wireless clients that slow down, or wired clients as well?

    Please turn on the PS3, log into the router, and check the traffic for your devices to see what's using up your bandwidth.
     
  66. justinbeaird

    justinbeaird Serious Server Member

    .
     
    Last edited: Jun 10, 2015
  67. PetervdM

    PetervdM Network Guru Member

  68. shibby20

    shibby20 Network Guru Member

    done :) for WNR3500Lv2 also.
     
    Fredrik and M_ars like this.
  69. shibby20

    shibby20 Network Guru Member

    Tomato Update Notification System (inspired by Jacky444`s AT)

    anon_update.png

    Anon has to be enabled. Without Anon notification system is also turned off. Notification can be disabled from gui.
    What do you think?
     
  70. callous

    callous Network Guru Member

    I dont think anyone would object to this, if it goes thru the anon system!
     
  71. digiblur

    digiblur Networkin' Nut Member

    Been testing the new wireless driver and it works fine here with all my phones/tablets/laptops that support 5.8.
     
  72. GhaladReam

    GhaladReam Network Guru Member

    Nice idea :) Could it be taken a step further and (after adding pop/smtp server info) send an e-mail to a specified e-mail address informing that there is a new build?
     
  73. shibby20

    shibby20 Network Guru Member

    yes, it does but i`m still not able to send email using sendmail build-in busybox. Does anyone send successful email using busybox-sendmail?
     
  74. RMerlin

    RMerlin Network Guru Member


    We both use the same busybox build, so I would expect this to work for you as well:

    https://github.com/RMerl/asuswrt-merlin/wiki/Sending-Email

    The problem is, people would have to configure an SMTP server for the FW to know how to transmit that notification email. If their ISP doesn't allow non-TLS/SSL connections then this might be problematic.
     
  75. jerrm

    jerrm Network Guru Member

    Here is our tomato "mailfile.sh" script with docs edited for general consumption. Used daily at multiple sites on your v109 with s_client.

    For everyome else, there are at least 100 ways this could be improved, feel free to. Not really looking for this to become a project. For us it does what we need. Been using the same basic script under multiple OS's for years.

    Docs:
    Code:
    USE AT YOUR OWN RISK
    ====================
    There is minimal (virtually nonexistent) format/error checking.  Script
    was targeted for a half dozen or so folks who know what they are doing.
    It is probably easy to come up with nonsensical option combinations that
    could render bizarre results.
     
    Script builds the message header and provides enough basic MIME
    formatting to attach a single file. It does not attempt to handle
    multiple attachments.  It is not designed to take a fully preformatted
    message w/header stream.
     
    Script uses msmtp if it is available under Entware/Optware, otherwise it
    will use busybox sendmail.  Ssl/tls are only supported with msmtp or if
    s_client is included in the available openssl build.
     
    Script will read the message body from stdin, from a file provided on
    the command line or both.
     
    Thoroughly test with non-sensitve data first, or you may end up
    emailing your sensitive data to someone unknown.
     
    There are few coded default values - all needed options should be
    specified in the config file or on the command line.
     
    Default config file is in the format of "basename.ini" of script using
    the name it was executed with.  If the script is saved as "mailfile.sh"
    then the ini file is "mailfile.ini." If a link is created to the
    script as "mymail.sh" and executed using the link, the script will look
    for "mymail.ini."
     
    Config files are processed in the following order - opt/etc, $HOME/,
    then current the current directory then the command line.
     
    All parameters except "config" can be specified in config file.
    Generally if a parameter is duplicated the last one processed is honored.
    The exception is "to" which is additive. The "to" parameter adds
    recipients to whatever has already been processed  Use "newto" to reset
    the recipient list.
     
    Other than "config" and "newto" parameters can be specified in any order.
    The "config" option must be the first command line parameter.  The "newto"
    option should be specified before any "to" entries that should be kept.
     
    All email addresses ("to" and "from") can be passed in the formats of:
        jdoe@myisp.com
      <jdoe@myisp.com>
        "John Doe <jdoe@myisp.com>"
     
    Parameters:
        config=file  - Ignored if not first parameter. Specify alternate
                        config file. Subsequent command line parameters will
                        replace config options.
        server=dns/ip - smtp server address
        port=###      - port to connect on
        user=str      - smtp user account name, substituted with "from" if
                        omitted and "pass" exists
        pass=str      - smtp password
        from=str      - from address for email, substituted with "user" if
                        omitted. If no display name is included router name
                        will be used.
        to=str        - email recipients.  Multiple "to" parameters accepted
                        for multiple recipients. Does not replace, but adds to
                        config file "to" entries. Use "newto" to clear entries.
        newto        - Erases all previously processed "to" entries.  Meant
                        to drop and replace config file entries with the
                        command line, but be careful - will also drop command
                        line "to" entries
                        that come before it.
        subject=str  - Message Subject
        body=str      - If value is an existing file, then use specified file
                        for the message body, otherwise passed value is used
                        as message body. Anything from stdin will be appended
                        after "body."
        attach=file  - File to attach.  Only one file per message.  If there
                        are multiple "attach" entries only the last will be
                        honored. If file does not exist then
                        "Attachment <filename> Missing"
                        will be appended to message body.
        stls          - Use starttls negotiation. Specify either
                        ssl OR stls, not both. Last option specified is
                        honored.
        ssl          - Use a pure ssl connection. Specify either
                        ssl OR stls, not both. Last option specified is
                        honored.
        nossl        - disables both ssl and stls
     
    Example command line usage (no config file):
    cat foo | mailfile.sh server=smtp.gmail.com port=587 stls \
                user=mygmailaccount@gmail.com pass=pass1234 \
                from="My gMail Account <mygmailaccount@gmail.com>" \
                to="John Doe <johndoe@myisp.com>" \
                to="admin <netadmin@mydomain.com>" \
                subject="Router Status Update" \
                body="Foo Reports the following:\n" \
                attach=/tmp/log/foo.log
     
    Example Config File:
    server=smtp.gmail.com
    port=587
    stls
    user=mygmailaccount@gmail.com
    pass=pass1234
    from=My gMail Account <mygmailaccount@gmail.com>
    to=John Doe <johndoe@myisp.com>
    subject=Default Subject
     
    Example command line duplicating above example using config file,
    Takes config and adds second recipient, changes subject and body, adds
    attachment:
    cat foo | mailfile.sh config=/tmp/myconfig.txt \
                  to="admin <netadmin@mydomain.com>" \
                  subject="Router Status Update" \
                  body="Foo Reports the following:\n" \
                  attach=/tmp/log/foo.log
     
    Example quick and dirty command line to mail a file
    with above config as default config file:
    mailfile.sh attach=/tmp/myfile.txt
    The script:
    Code:
    #!/bin/sh
     
    #
    # USE AT YOUR OWN RISK.
    # THIS SCRIPT DOES NOT COME WITH ANY WARRANTY WHATSOEVER.
    #
     
    msmtp=/opt/bin/msmtp
    sendmail="busybox sendmail"
    tmp=/tmp
    etc=/opt/etc
    port=25
    capath=$(openssl version -d); capath=${capath#*\"}; capath=${capath%\"*}
     
    base=${0##*/}; base=${base%.*}
    ini=$base.ini
    config="$etc/$ini $HOME/$ini ./$ini"
    msg=$tmp/$base.$$.txt
    format=plain
    boundary=-----_qwerty$(head -c 12 /dev/urandom | openssl enc -base64)_
    dhead=$(head -c 70 < /dev/zero | tr "\0" "=")
     
    openssl list-standard-commands | grep -q s_client && sclient=available
    echo $@ | grep -q debug && debug=on
     
    parseit( )
    {
      v=${1#*=}
      case "${1%=*}" in
        from )
          from=${v%%\>}
          from=$(echo ${from#*\<})
          fname=$(echo ${v%<*})
          if [ "$fname" == "" -o  "$fname" == "$from" ] ; then
            fname="$( nvram get router_name )"
          fi ;;
        to )
          to=${v%%\>}
          to=$(echo ${to#*\<})
          tname=$(echo ${v%<*})
          mailto="$mailto $to"
          envto=$envto"To: $tname <$to>\n"
          ;;
        port )
          port=$v ;;
        server )
          server=$v ;;
        user )
          user=$v ;;
        pass|password )
          pass="$v" ;;
        subject|subj )
          subject="$v" ;;
        body )
          body="$v" ;;
        attach )
          attach="$v"
          attname="${v##*/}" ;;
        html )
          if [ "$v"=="on" -o "$v"=="" ] ; then
            format=html
          else
            format=plain
          fi ;;
        stls )
          ssl=""
          stls=on ;;
        ssl )
          stls=""
          ssl=on ;;
        nossl )
          stls=""
          ssl="" ;;
        newto )
          mailto=""
          envto="" ;;
        config|"" )
          ;;
        debug )
          debug=on ;;
        * )
          echo Unknown Parameter ==$1== ;;
      esac
    }
     
    bcmd()
    {
    if [ "$1" != "" ]; then
      cmd="$cmd$2"
    fi
    }
     
    dprint()
    {
    if [ "$debug" == "on" ] ; then
      if [ "$1" != "" ] ; then echo $1 ; fi
      cat << EOF
    $dhead
    debug    $debug
    sclient  $sclient
    capath  $capath
    ssl      $ssl
    stls    $stls
    server  $server
    port    $port
    user    $user
    pass    $pass
    from    $from
    fname    $fname
    subject  $subject
    body    $body
    attach  $attach
    attname  $attname
    mailto  $mailto
    envto    $envto
     
    EOF
    fi
    }
     
    if [ "${1%=*}" == "config" -a -f "${1#*=}" ]; then
      config=${1#*=}
    fi
     
    for file in $config; do
      if [ -f $file ] ; then
        while read line; do
          parseit "$line"
        done < $file
        dprint "Config Settings - $file"
      fi
    done
     
    while [ "$1" != "" ]; do
      parseit "$1"
      shift
    done
     
    if [ "$user" == "" -a "$from" != "" -a "$pass" != "" ]; then user=$from; fi
    if [ "$from" == "" -a "$user" != "" ]; then from=$user; fi
     
    dprint "Final Settings"
     
    cat << EOF >> $msg
    $(echo -n -e $envto)
    From: $fname <$from>
    Subject: $subject
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="$boundary"
     
    --$boundary
    Content-Type: text/$format; charset="us-ASCII"
     
    EOF
     
    if [ "$body" != "" ] ; then
      if [ -f "$body" ] ; then
        cat $body >> $msg
      else
        echo -e $body >> $msg
      fi
      if [ ! -t 0 ] ; then echo ; fi >> $msg
    fi
     
    if [ ! -t 0 ] ; then cat /proc/${$}/fd/0 ;fi >> $msg
     
    if [ "$attach" != "" -a ! -f "$attach" ]; then echo ; echo Attachment "$attach" Missing ; fi >> $msg
     
    if [ "$attach" != "" -a -f "$attach" ]; then
    cat << EOF >> $msg
    --$boundary
    Content-Type: application/octet-stream; name="$attname"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename="$attname"
     
    $(openssl enc -base64 -in "$attach")
     
    EOF
     
    fi
     
    echo --"$boundary"-- >> $msg
     
    if [ -f $msmtp ] ; then
      cmd="$msmtp --from=$from -t --syslog=on --tls-certcheck=off "
      bcmd "$server" " --host=$server"
      bcmd "$port" " --port=$port"
      bcmd "$stls" " --tls=on --tls-starttls=on"
      bcmd "$ssl"  " --tls=on --tls-starttls=off"
      bcmd "$user" " --auth=plain --user=$user "
      bcmd "$debug" " -d "
      if [ "$pass" != "" ] ; then
        $cmd --passwordeval="echo $pass" < $msg
      else
        $cmd < $msg
      fi
    else
      cmd="$sendmail -f$from "
      bcmd "$user" "-au$user -ap$pass"
      if [ "$ssl$stls" == "" ] ; then
        $cmd -S$server:$port $mailto < $msg
      else
        if [ "$sclient" != "" ] ; then
          ossl="exec openssl s_client -CApath $capath -quiet -connect $server:$port -tls1 "
          if [ "$stls" != "" ] ; then
            ossl="$ossl -starttls smtp "
          fi
          $cmd -H"$ossl" $mailto < $msg
          #echo "$cmd -H $ossl $mailto "
        else
          echo Secure connection specified, but OpenSSL s_client support is not installed!
        fi
      fi
    fi
     
    if [ "$debug" == "on" ]; then
      echo $dhead
      cat $msg
      echo $dhead
      echo $cmd
    else
      rm -f $msg
    fi
    
    I think I cleaned up the above from cut and paste errors(mostly missing new lines), but also attached the original just in case:
     

    Attached Files:

  76. kthaddock

    kthaddock Network Guru Member

    @Shibby

    Pls don't forget "--string" in 110 build.

    Thank you !
     
  77. PetervdM

    PetervdM Network Guru Member

    @shibby

    can you pls implement dnscrypt-proxy 1.3 and enable the --loglevel switch in the gui?
     
  78. shibby20

    shibby20 Network Guru Member

    it`s already done :)

    will be in v110.

    string module was also added:
     
  79. kthaddock

    kthaddock Network Guru Member

    Maby this is the problem source and destination on 192.168.3.0/24 Br1:
    Code:
    Chain PREROUTING (policy ACCEPT 20M packets, 6362M bytes)
    pkts bytes target    prot opt in    out    source              destination
    2971K  678M MARK      all  --  *      *      192.168.3.0/24      0.0.0.0/0          MARK set 0x1f5
    81030 6717K MARK      all  --  *      *      0.0.0.0/0          !192.168.2.0/24      MAC 50:E5:49:2B:B4:DA MARK set 0xa
        0    0 MARK      all  --  *      *      0.0.0.0/0          !192.168.2.0/24      MAC 00:24:8D:D3:9A:D5 MARK set 0xb
        0    0 MARK      all  --  *      *      0.0.0.0/0          !192.168.2.0/24      MAC A8:E3:EE:9B:03:53 MARK set 0xc
    21177 1160K MARK      all  --  *      *      0.0.0.0/0          !192.168.2.0/24      MAC 90:2B:34:30:A5:FD MARK set 0xd
    
     
  80. shibby20

    shibby20 Network Guru Member

    Elfew and eahm like this.
  81. koji

    koji Networkin' Nut Member

    shibby,
    did you managed to resolve the issue with IPv6 that I initially reported here, here and here?
     
  82. shibby20

    shibby20 Network Guru Member

    i included many of fixes maded by Kevin. IPv6 is working for me and i have
    10/10 for your IPv6 stability and readiness, when publishers are forced to go IPv6 only

    but i have HE Tunnel. You will have to check yourself v110 tomorrow and let US know, does ipv6 work for you now :)
     
  83. koji

    koji Networkin' Nut Member

    Thank you shibby, Kevin Darbyshire-Bryant and thanks for everyone who's working at this project also.
     
  84. shibby20

    shibby20 Network Guru Member

    [RELEASE] v110

    As i promised :)
    Please read changelog first.

    Best Regards!
     
    M_ars, blackwind and kthaddock like this.
  85. Daky

    Daky Network Guru Member

    shibby20,

    i am currently located in Canada (Cable service) where they recently started offering 150\10 service (with speed boost ) it can go up to 250+ mbit.

    Some of the users were reporting that they are unable to hit the full speeds with your firmware on RT-N66U.

    They had to use RMerlin's firmware to be able to achieve those speeds.

    Here is the thread from DSLR: http://www.dslreports.com/forum/r28173473-150-10-timing-~start=200

    What could be the 'issue' here? Thanks
     
  86. kthaddock

    kthaddock Network Guru Member

    Thanks for new builds ! Which driver does this builds use (-110), 5.100 or 5.110 ?

    It's 5.100

    kthaddock
     
  87. blackwind

    blackwind Serious Server Member

    Cheers, Shibby! Looks like a good one!
     
  88. RMerlin

    RMerlin Network Guru Member

    Lack of HW acceleration (AKA CTF) in Tomato. The CTF code is closed-source by Broadcom, and is incompatible with many Tomato features such as QoS or IPTraffic. That means Tomato-based routers have to do everything on the CPU, causing the 100-125 Mbits performance cap on an RT-N66U (even lower on a slower RT-N16). There's nothing Tomato devs can do about it.
     
    shibby20 and Daky like this.
  89. hawkmat

    hawkmat Networkin' Nut Member

    I can confirm the Tomato QOS limitation. With the latest RAF Tomato on a RT-N66U I can get 96.5 Mbits with QOS on, IPTraffic off. During speed tests I observed the CPU load jump to 99.6% with QOS on. Adjusting the QOS limits will not improve this 96.5 Mbit max limit for me. If i disable QOS then I hit my service max of 118 Mbits easily. The CPU appears run out of gas and is the limiting factor.
     
  90. Daky

    Daky Network Guru Member

    Thank you!
     
  91. ghoffman

    ghoffman Addicted to LI Member

    hi shibby -
    i just upgraded my e4200v1 from http://tomato.groov.pl/download/K26RT-N/build5x-109-EN/Linksys E-series/tomato-E4200USB-NVRAM60K-1.28.RT-N5x-MIPSR2-109-VPN.bin
    to
    http://tomato.groov.pl/download/K26RT-N/build5x-110-EN/Linksys E-series/tomato-E4200USB-NVRAM60K-1.28.RT-N5x-MIPSR2-110-Tor-VPN.bin

    my ping speed went from 20 ms to 50-70 ms, and download speed went from 14 mbs (on time warner 15 mb/sec tier) to < 1mb sec. this was with a lan-connected device so it's not the wireless driver. i do not utilize ipv6, qos, or any bandwidth limiting. the only 'extra' features i have enabled are samba, simple port-forwarding, and some reserved dhcp addresses.
    thoughts on what i could to to help debug this?

    addendum: this degradation only occurs if i try to restore cstats (which doesn't work). if i reset the router and dont restore ctstats speed is ok. restoring rstats is fine.
     
  92. Malitiacurt

    Malitiacurt Networkin' Nut Member

    Lots of changes/fixes made by RMerli and Kevin regarding cstats were incorporated into version 110. Your old file is corrupt and your router is wasting cpu cycles trying to re-load the corrupt file.

    Time to move on and make a new one.
     
  93. nick ant0ny

    nick ant0ny Networkin' Nut Member

    Hi all ! Shibby thank you for your hard work another time! Please can anyone tell me what to do, because mips2-miniipv6 version 110 gives my wrt160nv3 MTD too big.


    THANKS.
     
  94. leandroong

    leandroong Addicted to LI Member

    Thanks again. What and where is "BT* target" added?
     
  95. Mangix

    Mangix Networkin' Nut Member

    make a custom build when shibby pushes his changes to git.
     
  96. koji

    koji Networkin' Nut Member

    IPv6 is finally working on dual-stack. Specially thanks to shibby and Kevin Darbyshire-Bryant.
     
  97. GhaladReam

    GhaladReam Network Guru Member

    Hi Shibby,

    Thanks for v110! Is there any way you could compile an AIO-64K N66U build with the newer 5.110 broadcom driver? I know it has some reported issues with certain intel cards, but I personally don't have any of those cards and I actually notice better performance/throughput with it.

    Thanks!
     
    uboot, kthaddock and digiblur like this.
  98. Dark_Shadow

    Dark_Shadow Addicted to LI Member

    Shibby,

    Could you include an "Auto Add" Dir for transmission in the next update?
     
  99. ntamas26

    ntamas26 Networkin' Nut Member

    You can easily setup this function on the bittorrent client configuration page in tomato.

    Transmission
    Custom configuration
    Example setup:
    "watch-dir": "/tmp/mnt/PASSPORT/Torrent/-=upload=-",
    "watch-dir-enabled": true
     
  100. kthaddock

    kthaddock Network Guru Member

Share This Page