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

Tomato ND USB Mod with kernel 2.6 (Tomato-RT)

Discussion in 'Tomato Firmware' started by teddy_bear, Jan 8, 2010.

  1. muratremix

    muratremix Addicted to LI Member

    Buy an Asus RT-N16 which is supported and have great specs for the price ($90 USD)
     
  2. greenythebeast

    greenythebeast LI Guru Member

    RT-N16 is definitely the best router you can get for tomato :)
     
  3. KariNeko

    KariNeko Networkin' Nut Member

    Hi, thanks your replies!

    Here in Argentina where I live, the Asus RT-N16 costs $207 USD :wacko: and the Linksys WRT610N $222 USD, at those numbers it's still better to get the Asus?
     
  4. Prophet

    Prophet Networkin' Nut Member

    Im running tomato with netgear wnr3500l. I ran a wl500gp for 3 years or so with olegs firmware, and this is such a great improvement in all ways. I think the router itself might be in the top performers, except for the asus RT-N16 which has 128 megs of ram instead of 64. ofc this is only important if you actually run a lot of programs on it. I use polipo (proxy) and transmission and dont have a problem. Also the asus cpu is slightly faster (530 mhz I think instead of the 480 that netgear 3500l has). I read somewhere it was supposed to give a massive performance boost but i doubt it since im maxing out my connection.

    Also I noticed a lot of people having problems with the asus (I also had a lot of problems with the asus. 1 of which was a hardware problem that you couldnt properly do portforwarding).

    So I want to warmly recommend netgear (having one for about 4 days)
     
  5. magic168

    magic168 Networkin' Nut Member

    Hey guys and gals,

    I've got an Asus RT-N16 with Tomato running...everything is running pretty smoothly, except for one thing -- while on my Mac on wireless, it sometimes stops being able to go past the "Connecting to..." status on a browser. It's very strange. The strange thing is that it's not a total crash of the router that requires a power reset -- I can still access the Tomato page and do a reboot, which so far has always solved the problem.

    It's random and I don't know why it happens and I'm not well-versed enough on networking to be able to diagnose it.

    This has never happened while using my desktop, wired.

    Any ideas or advice?
     
  6. muratremix

    muratremix Addicted to LI Member

    Try to buy from Ebay, USA
    If shipping costs around $40-50 then you will have it for under $150 which is still better deal than you have in your country.
     
  7. airbot

    airbot Networkin' Nut Member

    Classification by MAC/IP doesn't appear to work for UDP traffic

    Thank you for all of your hard work on tomato.

    I am finding that classification by MAC/IP is problematic in the betas that I have tried (beta 07, 11 & 16). This is not a complaint, I am just mentioning it in case it is helpful when working on a future build. The details tab in tomato reports that the classification has been applied to the traffic. The IP specific connections are labelled as being in the correct class. But at least for VOIP (UDP) traffic, the correct class rate is not applied. Instead the traffic rate follows the default class rate setting.

    For example, if I set the default class to E, then make a rule to put my VOIP telephone into the highest class:

    (Default class = E)
    Highest class rate = None or 1000 kbps
    E class = 50 kbps

    First QOS rule:
    From 192.168.0.100 Highest
    (Any protocol, any port)

    The traffic is correctly classified, but the wrong class rate is applied. The QOS/view details tab reports that all connections from this IP are being put into the Highest class. But the outgoing rate actually follows the setting for the default class instead. If the default class, E is set to 50 kbps, the traffic from this IP will be 50 kbps. If the default class is changed to 200 kbps, then the traffic from this IP will be 200 kbps, etc.

    This behavior is the same in the betas that I have tried:
    (RT-N16 router)
    beta 16 extras build
    beta 16 VPN build
    beta 11 VPN build
    beta 07 VPN build

    If it is useful, Iptables -t mangle -L -n output from my router is below.

    And the two QOS rules that classify traffic properly, but follow the default class rate are:
    From 192.168.0.101 (all ports, all protocols) high
    From 192.168.0.103 UDP Dst port: 5066-5069,8000,8001 lowest

    Code:
    root@land:/tmp/home/root# iptables -t mangle -L -n
    Chain PREROUTING (policy ACCEPT)
    target     prot opt source               destination
    CONNMARK   all  --  0.0.0.0/0            0.0.0.0/0           CONNMARK restore mask 0xff
    
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    QOSO       all  --  0.0.0.0/0            0.0.0.0/0
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    QOSO       all  --  0.0.0.0/0            0.0.0.0/0
    
    Chain POSTROUTING (policy ACCEPT)
    target     prot opt source               destination
    
    Chain QOSO (2 references)
    target     prot opt source               destination
    BCOUNT     all  --  0.0.0.0/0            0.0.0.0/0
    CONNMARK   all  --  0.0.0.0/0            0.0.0.0/0           CONNMARK restore mask 0xff
    RETURN     all  --  0.0.0.0/0            0.0.0.0/0           CONNMARK match !0x0/0xff00
    CONNMARK   udp  --  0.0.0.0/0            0.0.0.0/0           mport dports 37,53,123,3455 bcount --range 0:2047 CONNMARK set-return 0x1/0xff
    CONNMARK   tcp  --  0.0.0.0/0            0.0.0.0/0           mport dports 37,53,123,3455 bcount --range 0:2047 CONNMARK set-return 0x1/0xff
    CONNMARK   all  --  192.168.0.101        0.0.0.0/0           CONNMARK set-return 0x2/0xff
    CONNMARK   all  --  192.168.0.120        0.0.0.0/0           CONNMARK set-return 0x7/0xff
    CONNMARK   all  --  192.168.0.110        0.0.0.0/0           CONNMARK set-return 0x7/0xff
    CONNMARK   udp  --  192.168.0.103        0.0.0.0/0           mport dports 5066:5069,8000,8001 CONNMARK set-return 0x5/0xff
    CONNMARK   udp  --  0.0.0.0/0            0.0.0.0/0           mport dports 2300:2400,6073,11999,28800:29100,47624 bcount --range 0:51199 CONNMARK set-return 0x6/0xff
    CONNMARK   tcp  --  0.0.0.0/0            0.0.0.0/0           mport dports 2300:2400,6073,11999,28800:29100,47624 bcount --range 0:51199 CONNMARK set-return 0x6/0xff
    CONNMARK   udp  --  192.168.0.108        0.0.0.0/0           CONNMARK set-return 0x3/0xff
    CONNMARK   tcp  --  192.168.0.108        0.0.0.0/0           CONNMARK set-return 0x3/0xff
    CONNMARK   udp  --  192.168.0.119        0.0.0.0/0           CONNMARK set-return 0x5/0xff
    CONNMARK   tcp  --  192.168.0.119        0.0.0.0/0           CONNMARK set-return 0x5/0xff
    CONNMARK   tcp  --  0.0.0.0/0            0.0.0.0/0           mport dports 80,8080,443 bcount --range 0:524287 CONNMARK set-return 0x6/0xff
    CONNMARK   tcp  --  0.0.0.0/0            0.0.0.0/0           mport dports 80,8080,443 CONNMARK set-return 0x8/0xff
    CONNMARK   udp  --  0.0.0.0/0            0.0.0.0/0           mport dports 25,110,119,143,220,465,563,587,993,995 CONNMARK set-return 0x9/0xff
    CONNMARK   tcp  --  0.0.0.0/0            0.0.0.0/0           mport dports 25,110,119,143,220,465,563,587,993,995 CONNMARK set-return 0x9/0xff
    CONNMARK   udp  --  0.0.0.0/0            0.0.0.0/0           LAYER7 l7proto flash CONNMARK set-return 0x109/0xff
    CONNMARK   tcp  --  0.0.0.0/0            0.0.0.0/0           LAYER7 l7proto flash CONNMARK set-return 0x109/0xff
    CONNMARK   udp  --  0.0.0.0/0            0.0.0.0/0           LAYER7 l7proto httpvideo CONNMARK set-return 0x109/0xff
    CONNMARK   tcp  --  0.0.0.0/0            0.0.0.0/0           LAYER7 l7proto httpvideo CONNMARK set-return 0x109/0xff
    CONNMARK   all  --  0.0.0.0/0            0.0.0.0/0           CONNMARK set-return 0xa
    



    edits for clarity & to add details

    .
     
  8. wycf

    wycf Network Guru Member

    OpenVPN problem

    Hi, I just started to try my RT-N16 with tomato (VPN, build 47, K26) and the OpenVPN seems not working. I posted the question at SgtPepperKSU 's thread:
    http://www.linksysinfo.org/forums/showthread.php?t=59416&page=187

    After OpenVPN client connected to my office OpenVPN server. I can ping any IP on the remote side. BUT I just can't browse our internal web site using http. Samba connection also failed.

    More detailed info is at the other post

    Please help.

    Thanks.
     
  9. FattysGoneWild

    FattysGoneWild LI Guru Member

    Any major bugs with the Asus N16 and Tomato? Is it pretty stable now even though its in "beta" stage? I am purchasing a new router really soon here. I had my eyes on the Netgear WNDR3700 but I would like to stay with Tomato. Apparently the Asus N16 seems to be the go to router for Tomato currently? :bounce:
     
  10. airbot

    airbot Networkin' Nut Member

    It's very stable, amazingly so for a beta. TB has done a lot of work to realize that. I'm sure that minor bugs remain. But I haven't seen any major ones & the firmware already works better than a lot of factory "release" versions.
     
  11. om0504

    om0504 Networkin' Nut Member

    Some problem in login WOW

    My router is ASUS RT-N16, I installed the FW from beta05 to beta 14, all of them have the same problem. When there is someone open P2P in LAN, such as BT, emule, PPS....etc, I can NOT login WOW ( an online game), but no this problem in the other OLG. It always stop at "login successful" but can not enter in character select screen. When I close all P2P , wait for 5~10 minutes, or reboot router, then I can log in WOW, does anybody know how to solve it? thanks in advance.
     
  12. greenythebeast

    greenythebeast LI Guru Member

    My RT-N16 has been running for 27 days straight with no problems.
     
  13. cariyawa

    cariyawa Addicted to LI Member

    Update!

    I had some issues with beta16. After few days of use, my Ubuntu laptop could not get a DHCP address from the router. I retracted to beta11 and now it works great. Router's uptime is 19 days. I would say... present firmware(beta11) of my router fulfill all I need and I am really happy about it. Again.. thanks LOT TB.
     
  14. though

    though Network Guru Member

    im on beta 16, up 30 days now....
     
  15. ladysman

    ladysman LI Guru Member

    I also had issues with 16 and went to Beta 11 and it has been rock solid. All the wireless issues I had with all the firmwares went away when I changed the antenna power to 17. The distance my devices can connect from is much further than it was before. I'm pretty happy with 11 but will see what the future brings. Thanks again Teddy.:)
     
  16. benv

    benv Networkin' Nut Member

    Hey all!

    I'm setting up a RT-16 for a friend with Tomato. He wants to be able to set up a NAS as a backup point.

    The most recent build (16) loaded on no problem and everything is working great except for the USB/NAS portion. He has a 1.5TB drive formatted with 3 300gb ext2 partitions (formatted with gparted via this guide). While the router sees the hard drive mounted on /dev/sda1 its unable to mount it through the GUI. I've tried redoing the partitions in ext3 but the same thing happens. If I format the drive in NTFS or FAT it mounts no problem, but the read/write performance is terrible.

    My linux knowledge unfortunately falls short in this realm so hopefully someone can give me some tips on how to proceed. It seems like the router isn't able to see the partitions. Is Tomato able to manage partitions?
     
  17. though

    though Network Guru Member

    is TB still around, seems like it's been a couple weeks since he's chimed in. thanks for all your efforts TB, there are literally thousands and thousands of people that benefit from it!
     
  18. Prophet

    Prophet Networkin' Nut Member

    Welcome to summer.

    You with mounting: Use ext3. If the builtin samba / ftp fails, you can install through ipkg-opt. http://tomatousb.org/doc:optware.
     
  19. benv

    benv Networkin' Nut Member

    I think my problem has more to do with tomato recognizing my partitions than actually sharing them through Samba. Once the partitions are mounted they share out no problem but until I can get the drive mounted I'm stuck.
     
  20. Prophet

    Prophet Networkin' Nut Member

    You should still get ext3. But just create a script to mount it then. You can always google for a mount manual.
     
  21. benv

    benv Networkin' Nut Member

    Ok I'll give that a shot. Is it possible to repartition the drive directly from the router or will I need to go the gparted route again? Should I be creating any additional partitions with the 3 that are there already?
     
  22. Prophet

    Prophet Networkin' Nut Member

    I dont really know what the backuprequirepements are but I would probably go with ~10 1 (swap - /opt etc..)gig partitions and the rest one big partition. You can do it from the router but you need to mount /opt somewhere so you can use it for http://tomatousb.org/doc:optware.

    There is some useful info on http://wl500g.info/showthread.php?t=10307 how to do it. I recommend you set up swap also.
     
  23. jandjfishing

    jandjfishing Networkin' Nut Member

    Access Restrictions to block Web Sites Not working

    Anyone able to get access restrictions to work with Tomato V1.27?
     
  24. airbot

    airbot Networkin' Nut Member

    I just tried it & it works for me. I'm using v. 1.27/beta 16/MIPSR2/VPN. Works to block specific websites or complete internet access.
     
  25. HKPolice

    HKPolice LI Guru Member

    TeddyBear hasn't posted anything since June 29th, is he gone forever? :(
     
  26. gingernut

    gingernut LI Guru Member

  27. jandjfishing

    jandjfishing Networkin' Nut Member

    Access Restrictions to block Web Sites Not working

    Airbot, Thanks for the reply. I was running Beta14 and just upgraded to Beta16. Just tried Access Restrictions again by entering an HTTP Request general expression, "facebook" and applied the rule to all computers. Still doesn't work for me running Tomato on Asus N16 router. Anything else special you are adding to your rule?
     
  28. lyrebird

    lyrebird Networkin' Nut Member

    I am using RT-N16 with the latest build of tomato. I found that after every two or three days, my computers that connect to the router always ask me how to treat the current network -- set it as home, work, or public. the number after the network name has been increased to 19 within a month! and both wired and wireless connections from multiple computers/laptops.

    any other guy has such problem? the same computers have no problem with my old tomato (buffalo)
     

    Attached Files:

  29. chuckwhite8

    chuckwhite8 Networkin' Nut Member

    I am running v1.27.9047 MIPSR2-beta16 K26 USB vpn3.6 on a RT-N16. I have two rules under access restrictions:

    1. turn off wireless access from midnight to 8am.
    2. block access everyday all times to a set of sites.

    Rule 1 works fine. Rule 2 does not (like you mentioned, as well).
     
  30. Prophet

    Prophet Networkin' Nut Member

    How do you turn wireless off at certain times?
     
  31. benv

    benv Networkin' Nut Member

    Thanks again for the info!

    By this are you saying I need to create ten 1GB partitions for swap and optware? Wouldn't I only need two (not including actual data partitions)?
     
  32. karog

    karog Networkin' Nut Member

    Simple. Just go to Access Restriction, do Add and choose Type: Disable Wireless and set the days and times.
     
  33. karog

    karog Networkin' Nut Member

    benv, this is what I did for my flash drive to make an Optware partition, a swap partition, and a Data partition. It can be done on the router.

    On the USB Support page, be sure to check Core USB Support, USB 2.0 Support, USB Storage Support, Ext2/Ext3, and Automount. Save this.

    Your disk should appear lower on the page under Attached Devices. On the right hand side, if it is Mounted, click Unmount.

    ssh to the router.
    Code:
    fdisk -l # that's a lower L
    to see available devices. Should be something like /dev/sda. More than one disk changes the last letter to b, c, etc. Partitions on such a disk are /dev/sda1, /dev/sda2, etc.

    Now use fdisk to create the partitions. In the following lines, # and after are comments. <enter> is the enter key.

    Code:
    fdisk /dev/sda # adjust for disk if necessary
    p # to see existing partitions
    d # to delete partition if any
    n # new partition
    p # primary partition
    1 # a one for partition 1 for Optware
    <enter> # start at default 1 block
    +368M # size of Optware partition in MB; can be larger
    p # check partition
    n # new swap
    p # primary
    2 # partition 2 Swap
    <enter> # start at default block
    +64M # size of Swap in MB; can be larger
    t # set type of Swap partition
    2 # partition 2 is Swap
    82 # swap type
    p # check partitions
    n # new Data for remaining
    p # primary
    3 # partition 3 Data
    <enter> # default start block
    <enter> # default remaining blocks
    p # check partitions
    w # write it all out and exit
    
    Now you need to format the partitions as ext3 and swap: (adj disk ref as necessary). Names after -L below are partition labels you can change as desired.
    Code:
    mke2fs -j -L Optware /dev/sda1
    mkswap -L Swap /dev/sda2
    mke2fs -j -L Data /dev/sda3
    
    Now if you reboot and check the USB Support page under Attached Devices you should see your disk with all three partitions listed under Description with all but Swap mounted. Of course the Swap partition won't be mounted but you should see /tmp/mnt/Optware and /tmp/mnt/Data or whatever you named it.

    I then add the following script in Run after mounting (just below Automount checbox) to mount the Optware partition as /opt for use with Optware.
    Code:
    if [ -d /mnt/Optware ]; then
      mount -obind /mnt/Optware /opt
    fi
    
    Execute the mount command from the above script and check to see /opt is correct. Then you can install Optware using:
    Code:
    wget http://wd.mirmana.com/optware-install-ddwrt2.sh  -O - | tr -d '\r' > /tmp/optware-install.sh
    sh /tmp/optware-install.sh
    
    Then use ipkg to manage Optware. Use ipkg with no switches to see how to use it. For example, ipkg list shows you available packages.
     
  34. benv

    benv Networkin' Nut Member

    Wow, thanks! :biggrin:
     
  35. lyrebird

    lyrebird Networkin' Nut Member

    can anybody comment on my issue? Thanks!

     
  36. airbot

    airbot Networkin' Nut Member

    I just tried it again, specifically with the facebook domain & on a RT-N16 router and it works for me. Make sure that you enter the expressions in the format below, that you check the enabled box for the rule and that you click save at the bottom of the page. If it still doesn't work, then I am using the beta 16 VPN build. There shouldn't be a difference between the std, extras, VPN, etc builds, but it's not impossible. Another option would be adding a script to the tomato firewall to block specific sites. Just google for tomato ad blocking scripts.

    The expression that I used successfully for facebook is:

    facebook
    ^69.63.181.11$
    ^1161805072$
    ^0x453fbd10$
    ^000000105.000000077.000000275.000000020$

    The first line is more inclusive than an exact match string such as ^www.facebook.com$
    The next four lines are not redundant. They seek to foil a clever user who enters an IP address instead of "facebook" So this blocks entering a numeric, integer, hex or octal IP. Of course if facebook changes their IP number, then the last four instances will fail. But probably it doesn't change very often. If you can write scripts yourself, then the firewall script would be better as it could be written to auto update any IP changes. And I suppose if an user knows how to enter an octal IP, then they probably know about proxy relays, VPN tunnels & other ways to get around a restriction. But the above rule will stop most people.

    .
     
  37. airbot

    airbot Networkin' Nut Member

    access restriction screen shot
     

    Attached Files:

    • ar.jpg
      ar.jpg
      File size:
      21.5 KB
      Views:
      77
  38. rhester72

    rhester72 Network Guru Member

    http://www.linksysinfo.org/forums/showthread.php?t=63587&page=86

    Start with post 854 to make sure it matches your issue, solution on post 861.

    The solution I personally use in Init:

    Code:
    sleep 5;ifconfig br0 hw ether `nvram get lan_hwaddr`
    Adjust sleep value to taste.

    Rodney
     
  39. beatnitup

    beatnitup Addicted to LI Member

    I searched the forums and was unable to find a clear answer. I flashed my Asus WL520GU with the 2.6 kernel 4MB flash - "Lite" edition. I quickly realized that this firmware doesn't provide NTFS support. Is it possible to add NTFS support via opt-ware or can i revert back to 2.4 kernel without bricking my WL520GU?
     
  40. jandjfishing

    jandjfishing Networkin' Nut Member

    Airbot, you've been great. I reviewed the AR settings in your jpg and even added the additional lines associated with IP address. Still no blocking of FB for me. I also tried the Beta16 VPN builds, both with USB and without with no blocking for me. I am also using the ASUS RT-N16 router. Weird. Thanks for your help.
     
  41. lyrebird

    lyrebird Networkin' Nut Member

    Thanks! put the script into init and restart the router, this morning got another number increase. now it is network 20. will watch it for another week.

     
  42. rhester72

    rhester72 Network Guru Member

    If that's the case, try being more aggressive with the sleep value - start with 1 and work your way up if necessary.

    Rodney
     
  43. airbot

    airbot Networkin' Nut Member

    I don't know why it isn't working for you (*see edit below). If your settings are the same as mine, I can only speculate that there is some unexpected interaction with another tomato setting that is preventing it from working for you. It definitely works for me. Not to fear, here is an alternate way of blocking facebook. This isn't quite as convenient, but it should work. This uses dnsmasq and will filter websites similar to the way that a windows hosts file would.

    Log into your router with SSH or telnet
    Create a text file e.g.
    cd /etc
    touch adblock.conf
    Edit the file (e.g. with the vi text editor) so that it contains "address=/facebook.com/127.0.0.1" without the quotes
    Then go the router webpage: advanced | DHCP/DNS
    Ensure that Use internal DNS is checked
    Add "conf-file=/etc/adblock.conf" to the dnsmasq window without the quotes
    Click on save
    Now go back to your router login and enter "service dnsmasq restart" without the quotes or just reboot your router
    Open a web browser and confirm that facebook is blocked


    ----
    edit: after some experimentation, i found that the apparent reason that AR rules work for me & not for some others is a firewall script that i'm running. if i remove the script, my AR rules don't work. if i put the script back, they do. so even if you have no use for this script, it might be a workaround to get your AR rules working until a proper fix is available in a future patch or build. this is just a traffic monitoring script that makes traffic stats available on the command line and it seems to have some unexpected interaction with the fast NAT module. as i don't understand the interaction, i can't guarantee that this will work for you. but if you miss AR & & don't want to roll back to an earlier firmware version, give it a try & see if it helps

    The script goes into Administration | Scripts | Firewall
    If you want to make use of the script per se, adjust the IP range to fit your network.

    Code:
    iptables -N traffic_in
    iptables -N traffic_out
    iptables -I FORWARD 1 -j traffic_in
    iptables -I FORWARD 2 -j traffic_out
    iptables -A traffic_in -d 192.168.0.100
    iptables -A traffic_out -s 192.168.0.100
    iptables -A traffic_in -d 192.168.0.101
    iptables -A traffic_out -s 192.168.0.101
    iptables -A traffic_in -d 192.168.0.102
    iptables -A traffic_out -s 192.168.0.102
    iptables -A traffic_in -d 192.168.0.103
    iptables -A traffic_out -s 192.168.0.103
    iptables -A traffic_in -d 192.168.0.104
    iptables -A traffic_out -s 192.168.0.104
    iptables -A traffic_in -d 192.168.0.105
    iptables -A traffic_out -s 192.168.0.105
    iptables -A traffic_in -d 192.168.0.106
    iptables -A traffic_out -s 192.168.0.106
    iptables -A traffic_in -d 192.168.0.107
    iptables -A traffic_out -s 192.168.0.107
    iptables -A traffic_in -d 192.168.0.108
    iptables -A traffic_out -s 192.168.0.108
    iptables -A traffic_in -d 192.168.0.109
    iptables -A traffic_out -s 192.168.0.109
    iptables -A traffic_in -d 192.168.0.110
    iptables -A traffic_out -s 192.168.0.110
    
     
  44. onehomelist

    onehomelist Addicted to LI Member

    There is an issues with access restriction on beta 16. You can read about it hear
    http://tomatousb.org/forum/t-249496/iptables-m-web-is-not-working

    According to teddy_bear you need to put the following line as a init script, and try adding some HTTP request expressions:

    Code:
    echo "0" > /proc/sys/net/ipv4/netfilter/ip_conntrack_fastnat
     
  45. rhester72

    rhester72 Network Guru Member

    I just tried that on beta 16, no joy for me.

    Rodney
     
  46. airbot

    airbot Networkin' Nut Member

    The new Broadcom fast NAT module is causing us (& I'm sure, TB) some grief with AR & QOS rules. Interestingly though, it doesn't seem to affect everyone the same way, even though they may be using the same router & Tomato version. All of the access restriction rules that I have tried work for me, but a few of my QOS rules don't. So there would appear to be further interaction with other parts of the Tomato configuration.

    Anyway as a temporary workaround if AR is important to you.. try the alternative approach outlined in post# 2053.

    .
     
  47. rhester72

    rhester72 Network Guru Member

    I'm aware of the alternative approach. :)

    I suspect it's because the services were started after I changed the proc value - will reboot later and see if it makes a difference.

    Thanks!

    Rodney
     
  48. voigts

    voigts Networkin' Nut Member

    help with NAS setup

    I read through and did the complete flash to Tomato on my Asus RT-N16 router successfully. I plugged in an external HD, enabled USB support, have the HD mounted, enabled file sharing, but cannot figure out what to do to get this drive shared on the network. I've installed telnet, tried doing a telnet 192.168.1.1, but when I do, I cannot figure out how to login, and do not know what to type into the network shares list or whatever I'm supposed to do to get this HD shared. I have it formatted in NTFS. I've read all over this forum and the internet for 2 hours with no success. Help?
     
  49. rhdcheme

    rhdcheme Addicted to LI Member

    You need to have your PC set to "workgroup" as the windows network workgroup. Then your router should appear in "View Workgroup Computers." Double click on the router and the shares should be in there. It may prompt you for any password you set in the tomato web interface for usb.

    Another way to do this is to add a Network place in windows explorer and typing \\routerip\ (e.g., \\192.168.1.1\public)
     
  50. jandjfishing

    jandjfishing Networkin' Nut Member

    Adding the init script referenced in posting 2054 worked for me in Beta 16.
     
  51. karog

    karog Networkin' Nut Member

    For telnet or ssh, use root as the username.
     
  52. voigts

    voigts Networkin' Nut Member

    Thank you for the replies. The drive now shows up under the name "unknown" in network, and I can map to it in My Computer under the name "unknown." Any idea as to why the router is showing up as being named "unknown"? i.e \\Unknown\Network_Drive.
     
  53. rhdcheme

    rhdcheme Addicted to LI Member

    You need to change the hostname/router name in tomato/basic identification of the web gui to something of your choice.
     
  54. voigts

    voigts Networkin' Nut Member

    Thank you. I guess this should have been obvious though.
     
  55. onehomelist

    onehomelist Addicted to LI Member

    Yes you are right about fast NAT module not having same effect for everyone. I have two RT-16's with beta 16. On one access restriction (web_ipt) works fine on another it doesn't work at all.
     
  56. rhdcheme

    rhdcheme Addicted to LI Member

    You're welcome! I am no better than you in the "should have been obvious" regard...at least that's what my kids tell me. :)
     
  57. spookyneo

    spookyneo Networkin' Nut Member

    Hello,

    I bought an Asus RT-N16 few days ago to install the TomatoUSB 2.6 firmware on it. I've been playing around for many hours and I have to say, I'm impressed. I was able to easily setup a OpenVPN (which was the main raison to get a third party firmware) and WOL. Now I can connect to my router directly using a VPN and power up each of my pc at home. So far so good :)

    I have some questions that some of you might be able to answer. If these questions were already asked before, I am sorry. I did search on the forum did not find what I'm looking for.

    On the RT-N16, there are 2 USB ports that can be used for an external hard drive. I was not planning this, but since the TomatoUSB includes a miniDLNA server in the firmware, I would like to give it a try. I currently hold about 1TB of videos files in a server at home. These videos are streamed to my PS3 using PS3 Media Server software. The problem with this solution, is that the server has to be powered up everytime I want to watch a video.

    - Has anyone tested miniDLNA with a PS3 or X360 ? I know DLNA is a standart and it should work, but it doesn't hurt to ask. Note that I do not have any HD videos (at the moment).
    - Which file format should I use ? FAT32 or NTFS ? I want to access the files from a Windows PC, so I can't use ext2 or ext3. Are there any limitations of NTFS in Tomato (I though Linux did not support NTFS!) ?

    My other question is about the "Bandwith Monitor". There are few settings that I don't understand.

    - Save Frequency: What is it for ? Doesn't the data saved in real time in the "Save History Location" ?
    - Create New File (Reset Data): What is it for ?
    - How can I save my data (Save History Location) to the USB drive ? Do I have to use CIFS to get it saved to a network shared drive on the USB ? Isn't there a built-in "Save to USB" ? Maybe "Custom Path" and save it to where I mounted the USB ?

    Sorry if these are stupid questions. I'm still getting familiar with Tomato (and Linux).
     
  58. gingernut

    gingernut LI Guru Member

    You'll only have problems accessing the files with windows using ext3 filesystem if you directly connect the disk to the windows computer. If you access it over your lan then it's fine. ext3 is also faster than fat32 or ntfs.
     
  59. natel

    natel Networkin' Nut Member

    i heard ext2 is fastest.
    anyone how to format to ext2 ???
     
  60. spookyneo

    spookyneo Networkin' Nut Member

    I guess you can use GParted for this. It's a very known tool.

    ext2 is faster to write than ext3, because ext3 is using a journal to log everything. For reading, both are pretty much the same.

    gingernut: Thanks for your answer. I might use NTFS anyway, as I want to be able to plug the USB drive directly into my Windows PC.
     
  61. luckman212

    luckman212 LI Guru Member

    ok so like now that this project is dead for the time being, what is the alternative? i tried oleg's firmware but honestly after using tomato, you just cant do oleg. The gui he has is the same stock asus gui- just horrific to look at & use.

    i am so sad to see the teddy bear go dormant. I don't know what to do now for reliable wireless router with working QoS for voip. :(

    can anybody comment?
     
  62. though

    though Network Guru Member

    This is VERY sad news for tomato/RT-N16. do we move to dd-wrt or find someone else to take the project over????
     
  63. spookyneo

    spookyneo Networkin' Nut Member

    Why would you move ? TomatoUSB works very great on the RT-N16...
     
  64. though

    though Network Guru Member

    there are still bug fixes that need to be worked out... from what many others are reporting. im not going anywhere in the near future, but if development stalls, we will be forced to.
     
  65. gingernut

    gingernut LI Guru Member

    Fedor stated that progess would slow down not stall and even though it's been a while since we've seen any updates I'm confident that we will soon.

    I've also tried Olegs firmware and even though it's constantly updated on a regular basis I can agree with Luckyman212 that the interface is horrible.

    Saying that the only other route would be to wait and see what Victek has up his sleeve for the RT-N16 or use DDWrt.
     
  66. wycf

    wycf Network Guru Member

    I've been struggle to try make OpenVPN client working on my RT-N16 using TB tomato. Now I just give up and switched to DDWRT. :(
     
  67. StigMX5

    StigMX5 Networkin' Nut Member

    Problem with DDWRT from my testing was the BS you need to do to get the USB printing to work. With the Tomato firmware, it just works. I never was able to DDWRT to run as a print server.
     
  68. luckman212

    luckman212 LI Guru Member

    Guys believe me don't waste your time with DDWRT on the RT-N16. THey are stuck on a very old broadcom driver and it works terribly on the RT-N16. I had to reboot my unit at least every 1-2 days on that, and I tested many, many different builds including the ones marked as "stable" or "recommended" as well as bleeding-edge latest builds. They all had various problems of one type or another- but the bottom line is none were stable enough for peace of mind.

    Who knows maybe DDWRT will get better but the development on DDWRT has been very fragmented lately.

    Hopefully teddy will pick development back up in the future or maybe someone else can carry the torch.

    I was browsing through this thread as best as I could but I couldn't find the clear instructions-- where are the instructions on how to compile this from the git trunk?? I was going to see what happens if I merge in some stuff from oleg's recent builds and try to build an updated image from teddy's latest sources. But I could not find clear instructions. I use Ubuntu 10.04 or Fedora 13 to do my compiling.
     
  69. gtj0

    gtj0 Networkin' Nut Member

    Download the source from http://repo.or.cz/w/tomato.git/snapshot/tomato-RT.tar.gz
    This gets you the latest snapshot which is now build 47.
    Extract the tarball into the directory of your choice.
    cd tomato/tools
    Read the short README.TXT to install the toolchain.
    cd tomato/release/src-rt
    make V1=9047 V2=-beta16 r2e
    This makes the "Ext" build for the RT-N16.
    The resulting image will be in tomato/release/src-rt/image

    It's really easy and one of the reasons I also left DD-WRT for TomatoUSB.
     
  70. karog

    karog Networkin' Nut Member

    In case anyone is wondering, it is 221MB to download, 1GB untar'd.

    gtj0, since it says to install the tools in /opt, it this supposed to be built on the router itself? If not, what is the required environment?
     
  71. rameshb_v

    rameshb_v LI Guru Member

    WOL

    I have connected my NAS to the Tomato-N16. Wake on Lan from tomato GUI is not working. I have found out that ether-wake will not work.
    How ever the WOL in DD-WRT works. It is found in /usr/sbin/wol. Is it possible to install the WOL binary in Tomato or else I need to switch to DD-WRT. :(
     
  72. luckman212

    luckman212 LI Guru Member

    hey thanks!! with your instructions I was able to compile (used Ubuntu lucid). I tried following a few other guides that I found here and there, and none of them were working. They all involved using the 'git clone' commands.. I think maybe that was the problem, something was missing from the git tree? anyway that tgz file was complete.

    I even modified the source a bit, making 1 small improvement. I added an option to QoS to define r2q, I am hoping I can use this to fix the "user.warn kernel: HTB: quantum of class 10001 is big. Consider r2q change." errors that I'm getting in my logs, when inbound bandwidth is >15000. We'll see!! :wink:

    edit: woot... success, I raised r2q to 20 and the errors are gone :dance:
     
  73. gtj0

    gtj0 Networkin' Nut Member

    Nope. The toolchain goes on your linux desktop in /opt/brcm. Actually, it can go anywhere as long as the bin directories are in your PATH but /opt is the standard place for optional software. Any recent linux desktop distribution should have all the other tools necessary to successfully compile Tomato. I run Fedora 11 and didn't have to install anything other than the toolchain.
     
  74. spookyneo

    spookyneo Networkin' Nut Member

    Alright a little followups on my tests. I tried running a 500MB DivX from the miniDLNA to my PS3 and it worked pretty great. I watch the entire video (45min) and there where no issues at all. I was able to pause the video and get back to it few minutes after without any lags.

    The only issues I had with the miniDLNA is:

    Originally, I put the video in a folder called Media in the root of the USB drive. I then setup the miniDLNA server in Tomato and when I restarted the service, my Media folder was gone. It was just not there anymore. I then recreated it and it was never deleted then...very weird. Anyone knows anything about this issue ?

    The other issue that I had was, it look a very long time for my PS3 to detect the video. Is it supposed to be instant ? I only had this video on my USB and the Media directory was Media, not root of USB.

    One other thing I noticed, not related to miniDLNA at all, but USB transfer speeds are pretty slow. Copying this 500MB file to the USB drive took about 5min at 2.5MB/s while copying back to my pc took about 2.5min (5MB/s). It is therefore faster in read than write, but it is pretty slow. Is that a known issue ?

    As for the Bandwith Monitor, I decided to stick a "fixed" USB flash drive in the back of the second USB port. This USB flash drive is about 2GB and I never use it so it is used to record my Bandwith Monitor Logs. I decided to save the file each 2 hours, as I've seen other people around recommanding this option. My understanding is if there is a power outage, I would only loose 2h of Logs maximum. Correct ?
     
  75. voigts

    voigts Networkin' Nut Member

    I have given up on using the NAS feature completely as it is simply too slow to be practical for my uses. I was hoping to use it as a true NAS for central storage and access, but it simply is so slow that it takes forever to do any large file transfers. I will probably end up at some point buying an actual stand alone NAS.
     
  76. luckman212

    luckman212 LI Guru Member

    hey guys is there a list somewhere of "key files" that are good to know about for modification when compiling your own firmwares? Like for example I learned through much searching & digging that the NVRAM defaults are kept at
    /release/src/router/nvram/defaults.c

    and the script that initializes QoS is
    /release/src/router/rc/qos.c

    But I mean if someone want to let's say build in a newer Broadcom driver or add a page to the webgui etc, are there any guides or howto's for that? or is it every man for himself? :cool:

    [​IMG]
     
  77. KyleChen

    KyleChen Addicted to LI Member

    Here is a 100% tested solution:

    HowToCompile
    A short guide to compiling the firmware with latest web gui from subversion.
    Introduction¶

    This document will give you basic instructions on how to compile the Tomato firmware along with our modified Web GUI. A basic knowledge of Linux is required. These instructions are assuming a Debian distro (Damn Small Linux, Knoppix, Ubuntu, etc). If you are using a different distro you may need to use slightly different commands or path names.
    Installing Linux¶

    If you already have a Linux machine ready, skip to the next section.

    I use VMware Fusion to run a virtual machine running Debian Linux. My virtual machine has a 10gb virtual hard drive with its space not all allocated at once, and 512 mb of RAM. Download the TinyCD stable Debian and install only a Standard System.
    Downloading the necessary files¶

    Install the necessary compilers and other tools for Debian. If you are using a different distribution, you will need to install these tools in some other way. In the following commands replace YOUR-USERNAME with the username you setup and are logged in as.

    su -c "apt-get update;apt-get install sudo openssh-server subversion;echo 'YOUR-USERNAME ALL=(ALL) ALL' >> /etc/sudoers"

    At this point you can SSH into your virtual machine. I like to do this because I can copy and paste into Terminal, thus saving lots of typing.

    ssh YOUR-USERNAME@virtualmachineIP

    Once you have SSH'd in, continue installing build tools.

    sudo apt-get install gcc g++ binutils patch bzip2 flex bison make gettext unzip zlib1g-dev
    sudo apt-get install libc6 libncurses5-dev libstdc++5 automake automake1.7 automake1.9 openssl

    Next, download the firmware source and untar it into your home directory. I have already prepared the source code and am hosting it on my web server. It is 179 megs and may take a while to download depending on your connection speed.

    cd ~
    wget http://jeffbaier.com/school/capstone/tomato_src.tgz
    tar zxvf tomato_src.tgz

    Now we need to replace the stock firmware files with the ones we have modified. We will be downloading the latest code from our subversion repository.

    First remove the existing www and nvram folders.

    cd ~/tomato/release/src/router/
    rm -rf www nvram

    Then download the modified ones from SVN.

    svn checkout http://nextech-wrt.googlecode.com/svn/trunk .

    Configure and Compile¶

    Now we need to create a symbolic link from the cross compiler to the /opt/brcm directory and add it to the environment PATH. This will only take affect when you next login, so also set the PATH variable now.

    sudo ln -s ~/tomato/tools/brcm/ /opt/brcm
    echo 'PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin' >> ~/.bash_profile
    echo 'export PATH' >> ~/.bash_profile
    PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin

    Everything is ready now. Change into the appropriate directory and start compiling.

    cd ~/tomato/release/src/
    make

    If there were no problems, you will now have several different firmware images in your ~/tomato/release/src/image/ directory. You will only need the one named WRT54G_WRT54GL.bin.
    Update and Re-compile¶

    Once changes are made to the web gui and they have been committed to the SVN repository, simply run the following commands to download the new source code and recompile.

    cd ~/tomato/release/src/router/
    svn update
    cd ..
    make clean
    make

    Troubleshooting¶

    If you have any problems, contact Jeff Baier. Email address, phone number, and IM information is available in our Capstone shared Google Doc. Once we resolve the problem, I'll put the solution here so that it may help others in the future.
     
  78. rameshb_v

    rameshb_v LI Guru Member

    Any one ???
     
  79. spookyneo

    spookyneo Networkin' Nut Member

    I'm having no problem at all using latest build of TomatoUSB with my RT-N16. WOL works like a charm on both of my computers.
     
  80. EricCartman

    EricCartman Addicted to LI Member

    Can someone tell me whats WOL?
     
  81. rhester72

    rhester72 Network Guru Member

    Wake-On-Lan.

    Rodney
     
  82. rameshb_v

    rameshb_v LI Guru Member

    It does not work with my Buffalo Linkstation Pro NAS because Tomato uses "ether-wake".
    It needs wol that is found in DD-WRT.
     
  83. spookyneo

    spookyneo Networkin' Nut Member

    You're better off with DD-WRT for the moment then. I don't think someone will implement this function and release it by tomorrow !

    Why don't you get your NAS open all the time ? It draws much less power than a PC
     
  84. HanzF

    HanzF Addicted to LI Member

    Teddy_Bear......Thank you so very much for sharing your incredible knowledge to make the RT-N16 an awesome router. I hope everything in your life is going well and may you have a blessed future. Many thanks!
     
  85. airbot

    airbot Networkin' Nut Member

    Hear, hear. It's high time we praised TB more and thanked him for all of his hard work. Rather than complain about this little bug or that one. Or how development will slow down, or whatever.

    Thank you, TB!



    .
     
  86. mstombs

    mstombs Network Guru Member

    That link has no relevance to this thread and compiling the version from the git, its about a hacked version of standard tomato 1.23 (December 2008), and is over a year old

    http://code.google.com/p/nextech-wrt/wiki/HowToCompile

    Am I alone in thinking something odd about that project? There's not even an acknowledgement of Jon or polarcloud to be seen, and the Tomato webui is not GPL. Just removing the copyright notices is not on! Although they missed one in changing tomato.js to wrt.js ...

    /*
    Tomato GUI
    Copyright (C) 2006-2008 Jonathan Zarate
    http://www.polarcloud.com/tomato/

    For use with Tomato Firmware only.
    No part of this file may be used without permission.
    */

    Maybe it is just a school exercise?
     
  87. EricCartman

    EricCartman Addicted to LI Member

    thank you rhester72
    I have DNS-343 and WOL is not working on DNS :(
     
  88. cariyawa

    cariyawa Addicted to LI Member

    I checked that web site too.. It is pretty hard to say what is going on there. If I am correct "Nex-Tech's Lighting Jack internet service" is a ISP... so if they are going to use tomato with their wireless routers, it seems to me that it is illegal, because tomato GUI is not GPL. In essence, what I can see is that they are just stealing tomato code and change some of the names with their own brand names.
     
  89. elitenoobboy

    elitenoobboy Networkin' Nut Member

    The sourceforge page seems to have the next version up. Yay.

    For those wondering:


    build 48 - 07/23/2010
    ---------------------

    Merged with official Tomato 1.28 update.

    Software updates: Busybox 1.16.2, usb-modeswitch 1.1.3 with data
    package 2010-07-07.

    Added NETMAP iptables target.

    Wireless N-mode support: added GUI option to configure Control Sideband,
    fixed issue causing 40MHz bandwidth to be disabled in N-only mode.

    Added GUI options to configure Vendor Class and Requested IP for DHCP
    client.

    JFFSv1 is updated to ver. 1.4 (updates by ray123): fixed system crash
    in kernel 2.6, removed BKL, a few bug fixes, clean-up.

    Remstored "Reduce packet size" GUI option for DHCP settings - apparently
    some ISPs don't like truncated packets.

    DNS vunerability fix: turned on rebinding protection in dnsmasq (see
    http://blogs.forbes.com/firewall/2010/07/13/
    millions-of-home-routers-vulnerable-to-web-hack).

    Samba: do not explicitly disable dns proxy.

    Backported various fixes and optimization patches from upstream kernel 2.6.

    Minor bug fixes and cosmetics.

    * Kernel 2.4-based builds only:

    CIFS updated to version 1.50 backported from kernel 2.6.

    * Kernel 2.6-based builds only (beta18):

    Disabled Broadcom "fast NAT" module - this should fix various problems with
    Access Restrictions, QOS, VPN and iptables rules.

    Software update: MiniDLNA 1.0.18 (cvs 2010-07-21).
     
  90. myersw

    myersw Network Guru Member

    Great news. I see over on www.tomatousb.org that teddy_bear has released build 48 today, 7/25/10.
    Here is what it says:
    Changelog
    FoldUnfold
    Table of Contents
    Build 48 - 07/25/2010
    Build 47 - 06/11/2010
    Build 46 - 05/29/2010
    Older Builds
    Build 48 - 07/25/2010

    Changes common for kernel 2.4 and kernel 2.6 based builds:

    * Merged with official Tomato 1.28 update.
    * Software updates: Busybox 1.16.2, usb-modeswitch 1.1.3 with data package 2010-07-07.
    * Added NETMAP iptables target.
    * Wireless N-mode support: added GUI option to configure Control Sideband, fixed issue causing 40MHz bandwidth to be disabled in N-only mode.
    * Added GUI options to configure Vendor Class and Requested IP for DHCP client.
    * JFFSv1 is updated to ver. 1.4 (updates by ray123): fixed system crash in kernel 2.6, removed BKL, a few bug fixes, clean-up.
    * Restored "Reduce packet size" GUI option for DHCP settings - apparently some ISPs don't like truncated packets.
    * DNS vulnerability fix: turned on rebinding protection in dnsmasq (see http://blogs.forbes.com/firewall/2010/07/13/millions-of-home-routers-vulnerable-to-web-hack).
    * Samba: do not explicitly disable dns proxy.
    * Backported various fixes and optimization patches from upstream kernel 2.6.
    * Minor bug fixes and cosmetics.

    Kernel 2.4-based builds only:

    * CIFS updated to version 1.50 backported from kernel 2.6.

    Kernel 2.6-based builds only (beta18):

    * Disabled Broadcom "fast NAT" module - this should fix various problems with Access Restrictions, QOS, VPN and iptables rules.
    * Software update: MiniDLNA 1.0.18 (cvs 2010-07-21).
    * Fixed CIFS bug resulting MiniDLNA not being able to play media files located on CIFS mounts.
    Go to the site to download the new files.
    --bill
     
  91. though

    though Network Guru Member

    Gonna load beta 18 tonite! thanks for posting this and special thanks to TEDDY BEAR!!!
     
  92. jovev007

    jovev007 Addicted to LI Member

    Runnong Tomato Firmware v1.28.9048 MIPSR1-beta18 K26 Std on WRT54GL

    Qos bug is solved.

    Thanks TeddyBear
     
  93. tsanga

    tsanga Networkin' Nut Member

    teddy_bear,

    Does build 48 also include the fix for Netgear routers taking a long time to boot? Did not see this in the release notes a few posts back....
     
  94. khris972

    khris972 Networkin' Nut Member

    Teddy big thank you for this build,WOOOW

    especially for the fact that you have to add "* Added GUI option to configure Class and Vendor Requested IP for DHCP client"

    it works very well, better build ever seen (DLNA, vendor etc ...)

    thank you teddy
     
  95. Ragnor

    Ragnor Addicted to LI Member

    Is there currently much benefit in running kernel 2.6 builds on the WRT54GL?

    Also any benefit in running the standard build type when the WRT54GL doesn't have a usb port (as opposed to the No USB version)?
     
  96. dadaniel

    dadaniel Network Guru Member

    Does this mean we will get usb hspa modem support?
     
  97. rhdcheme

    rhdcheme Addicted to LI Member

    I upgraded to build 48, ext version on my RT-N16. All OK so far.
     
  98. natel

    natel Networkin' Nut Member

    would someone please explain how to load extras ??
    do i have to recompile whole firmware or just copy these files .. where ?
     
  99. occamsrazor

    occamsrazor Network Guru Member

    "Extras" isn't an additional thing to copy, it's a different build of the firmware with extra functionality (all of which is also included in the VPN version). The differences are all explained here
     
  100. natel

    natel Networkin' Nut Member

Share This Page