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

Tomato ND 1.25 Thor MOD - SDHC | SNMP | VPN | USB

Discussion in 'Tomato Firmware' started by thor2002ro, Apr 11, 2009.

  1. thor2002ro

    thor2002ro Networkin' Nut Member

    Just made it seeing as no one implemented them the way i wanted them , so please tell me what you think.

    ND only

    - Based on Victek's sources so it has all his features
    - SDHC with GUI
    - SDHC Logging GUI
    - Wrt54 Skin based on absolon
    - tomato-FS-patches 6.04.09
    - net-snmp 5.0.9 & Interface
    - OpenVPN 2.1rc13 & Inteface(Keith Moyer's implementation)

    Tomato 1.23.8515.5 .6 v3 - Download
    Tomato 1.23.8515.5 .6 v4 - Download
    Code:
    changelog:
    - fixed vpn status page
    Tomato 1.23.8515.5 .7 v1 - Download
    Code:
    changelog:
    - snmp smaller version 869kb v1 & v3 support removed
    - version fix in tomato gui
    - status page update
    - miniupnpd 14.02.09 | busybox 1.13.3 | dnsmasq 2.48test7 | jffs2 to jffs1
    Tomato 1.23.8515.5 .7 v2 - Download
    Code:
    changelog:
    - restored jffs2
    - restored busybox
    Tomato 1.23.8515.5 .7 v3 - Download
    Code:
    changelog:
    - updated WL driver
    - snmpd now reports status to syslog
    - snmpd config updated , snmpd didnt start because of bad config in the last build
    Tomato 1.23.8515.5 .7 v4 - Download
    Code:
    changelog:
    - vpn 3.2 update
    
    Tomato 1.23.8515.5 .7 v5 - Download
    Code:
    changelog:
    - miniupnpd 20090516
    - dnsmasq 2.48test15
    - Updated l7 patterns to the latest 2009-05-10
    
    Tomato 1.25.8515 .7 v6 - ERASE NVRAM AFTER UPDATE - Download
    Code:
    changelog:
    - vpn 3.3
    - tomato-misc
         Add EditDNS to DDNS	
         Allow multiple MAC addresses per device 
         Allow domain name as admin access restriction
    - tomato-miniupnpd
         Miniupnpd updated to ver. 20090605
    - tomato-fixes
         Busybox 1.14.2 - mainstream patches
    
    - Show Browser Icon is back
    - Startup LED is back
    - ISP Concentrator ID is back
    
    Tomato_RAF_1.25.8515 ND USB .7 v7 - ERASE NVRAM AFTER UPDATE - Download *4MB+ routers only(takes long time to flash ~6-7mins) dont try on 4MB routers
    md5: a8694b5c089e7d33faa68dc70c2a9c4f
    15/07/2009
    Code:
    changelog:
    - includes all the updates and changes up till now
    - includes USB / NAS / FTP / VPN / SNMP
    - tomato-ND-USBmod-VPN 13062009 
    	- samba changes
    - tomato-FS-patches 27062009 
    	- smbfs updated to the latest version from kernel 2.4.37
    - tomato-USB-patches 01072009
    	- devpath: fixed printer deregistration, added scanner support 
    	- Revert "Backport urb->interval correction for high speed devices in usb_fill_int_urb()"
    	- Revert "Add missed urb->interval initialization for usbdevfs
    - tomato-ND-usbmod-mixvpn 04072009 
    	- Compile extra smbfs module
    	- Fixed USB deadlock in Tomato 1.25 when WAN is disabled or set to static
    - tomato-fixes 13072009 
    	- Busybox 1.14.2 update
    	- Potential memleak fix
    - tomato-httpd-cgi 13072009
    	- Added QUERY_STRING support
    	- Added new GUI page to execute shell commands
    - Log to HDD(disc0_1)
    - JFFS2 to JFFS1
    - SDHC(mmc) driver removed because of usb 
    
    Tomato_RAF_1.25.8515 ND USB .8 v2 - ERASE NVRAM AFTER UPDATE - Download *4MB+ routers only(takes long time to flash ~6-7mins) dont try on 4MB routers
    md5: 8021d19400139cf29cfbcc6ae2733d02
    22/07/2009
    Code:
    changelog:
    - includes all the updates and changes up till now
    - extra themes
    - themes fixed
    - new motd
    - NTFS support with RW 
    - Swap partition auto-initialization
    - Optware options under usb
    - Added option to specify FSB for overclocking
    - fixed ftp/samba
    - ssh is now default
    - Internal DNS Caching now off by default
    
    Tomato_RAF_1.25.8515 ND USB .8 v3 - ERASE NVRAM AFTER UPDATE - Download *4MB+ routers only(takes long time to flash ~6-7mins) dont try on 4MB routers
    md5: cc016389d664fc1d58f0a7fdc77a5cfb
    27/07/2009
    Code:
    changelog:
    - includes all the updates and changes up till now
    - Added Ram in overview
    - fixed a bug that prevented optware to be initialized at startup
    
    Tomato 1.23.8515.5 .6 src - Download part [1] [2] [3]




    Who wants to donate they can do it HERE with paypal
     
  2. CBR900

    CBR900 Addicted to LI Member

    10x

    does it has usb support?
     
  3. thor2002ro

    thor2002ro Networkin' Nut Member

    if 1.23.8515.5 from Victek has.... this should too...

    i dont have a usb capable router to test...

    edit: source up
     
  4. CandyBoy

    CandyBoy Networkin' Nut Member

    Very nice mod,thanks.And that do tomato-FS-patches?
     
  5. thor2002ro

    thor2002ro Networkin' Nut Member

    they are from the tomato git here

    they are file system fixes/tweaks
     
  6. Victek

    Victek Network Guru Member

    8515 RAF releases don't build any USB support, these releases are oriented to non USB router.
     
  7. thor2002ro

    thor2002ro Networkin' Nut Member

    CBR900 theres your answer...
    and i dont think i can add it ... theres barely any space left...
    i have to look for a way to slim some stuff down....
     
  8. bogderpirat

    bogderpirat LI Guru Member

    what's the size on the snmp daemon? i'm currently using some 900kib monster, was trying to slack that down
     
  9. thor2002ro

    thor2002ro Networkin' Nut Member

    mines 920kb... compiled
     
  10. CandyBoy

    CandyBoy Networkin' Nut Member

    net-snmp isn't working for me :/

    Update : Working now :)
     
  11. thor2002ro

    thor2002ro Networkin' Nut Member

    just tested and works fine....

    it's on read : public , write: private , port: 161
    you must be doing something wrong....
     
  12. CandyBoy

    CandyBoy Networkin' Nut Member

    thor2002ro ,that SNMP monitoring program are you using?
     
  13. thor2002ro

    thor2002ro Networkin' Nut Member

    i only used Getif for testing it....
    i implemented it for future use.... i'm thinking of a tomato gadget for win and a screenlet for linux based systems dono when i'm gona start making them... maybe someone more knolagable in gadgets/screenlets might help

    edit: can anyone tell me if VPN is working? it's the only thing i didnt test....
     
  14. occamsrazor

    occamsrazor LI Guru Member

    Any chance for someone to post some screenshots showing the options pages that differ from the basic Tomato? I'm currently using SgtPepper's OpenVPN mod (which is great btw), and this one looks interesting... Thanks...

    EDIT: Have flashed the mod and uploaded some screenshots, a few more in next message
     

    Attached Files:

  15. occamsrazor

    occamsrazor LI Guru Member

    More screenshots... this forum's attachments system isn't that great, if you can't see the screenshots directly then do a right-click "save link as" and download the jpegs to your computer to view.
     

    Attached Files:

  16. thor2002ro

    thor2002ro Networkin' Nut Member

    occamsrazor from the screen shots i see vpn server running ... so it's working i take it....? as i said it the only think i didnt test....
     
  17. occamsrazor

    occamsrazor LI Guru Member

    VPN appeared to start up fine. I haven't been able to actually test it because my home internet is currently down (ISP problem).
    Also couldn't test SDHC bit as I have a Buffalo WHR-G54S without any SD card (Is it possible to add an SD card to that router????)

    The only problem I have found so far, is that even though I have logging set to "Log Internally", when I go to the logs page it says logging is disabled, and I have been unable to get any logging working at all.
     
  18. thor2002ro

    thor2002ro Networkin' Nut Member

    ow... i see it now....i havent seen this problem because i was logging to sd , i'll look into it now...
     
  19. ceckin

    ceckin Addicted to LI Member

    I have a problem with logging, it says:

    but i have enabled only Internally (cause i don't SD card mod)
     
  20. thor2002ro

    thor2002ro Networkin' Nut Member

    ya .... i included an older script by mistake in the log javascript compiling now with the fix....
     
  21. thor2002ro

    thor2002ro Networkin' Nut Member

    Buffalo WHR-G54S SD MOD

    logging page fixed redownload the firmware from the first post...
     
  22. i1135t

    i1135t Network Guru Member

    Is it possible to add USB support? It seems that's the only thing that's missing from this mod, from all the other ones for an "all-in-one" solution.
     
  23. CBR900

    CBR900 Addicted to LI Member


    100% agree
     
  24. thor2002ro

    thor2002ro Networkin' Nut Member

    as i said before .... i need to make some stuff smaller first... i dont think the usb support will fit in the curent state....
     
  25. i1135t

    i1135t Network Guru Member

    I have the Asus WL-500GP and it has 8MB flash, so I can flash it on that one. If possible, can you compile a mod that also includes USB? I would compile it myself, but I am a newbie when it comes to compiling code. I would appreciate it a lot and so would some other users who also have this router. We would appreciate it much, thanks!!!
     
  26. thor2002ro

    thor2002ro Networkin' Nut Member

    i tried to compile the usb mod and it doesnt work with my modifications.... the compilation fails....
    i will try again afer a few usb mod builds...
     
  27. i1135t

    i1135t Network Guru Member

    Well, thanks for trying anyways, I do appreciate the effort.
     
  28. occamsrazor

    occamsrazor LI Guru Member

    Tried the updated version with the logging fix. Logging works fine now...
    However I am having some weirdness with the VPN aspects... The server "seems" to be working as I can connect to it OK remotely with OpenVPN, but the status page shows no information, only a warning "Server is not running or status could not be read."
    Thor - I will PM you the log file in case it helps.
    Regards...

    (EDIT: the log is too long to send by PM - there's a 5000 character limit. If you think it would be useful PM me your email address and I'll email the log. Or if it's unlikely to help... don't worry)
     
  29. thor2002ro

    thor2002ro Networkin' Nut Member

    i'll fix it tomorrow i got a pretty good ideea where the problem is ;)

    edit: if you could please post a guide how to setup openvpn server/client
     
  30. occamsrazor

    occamsrazor LI Guru Member

    Thor - what client computer OS are you using? Do you have a Windows machine handy?
     
  31. saintraziel2

    saintraziel2 Networkin' Nut Member

    are there any chanses for adding ftp/samba support to this mod?
     
  32. occamsrazor

    occamsrazor LI Guru Member

    Assuming your client machine is Windows, here is a quick and dirty guide to getting the OpenVPN server up and running using the static key method. If you're on a UNIX-based OS it's pretty similar, see the "more info" links below. Note with the (simpler to setup) static key method you can only have one client connected at the same time, but it's a good way to get started then once you are comfortable with it you can try setting it up with a TLS key system and Certificate Authorities:

    (Steps below first posted here by Splat, slightly modified as some of the code there is redundant now) http://www.linksysinfo.org/forums/showpost.php?p=302642&postcount=3

    On The Windows PC:

    1. Install OpenVPN on the Windows machine, download installer with GUI from here:

    http://openvpn.net/index.php/downloads.html

    2. Go to Start Menu -> Programs -> OpenVPN -> Utilities -> "Generate a static OpenVPN Key"
    Note that you won't find this option in the Program Files/OpenVPN file directory, you have to go via Start Menu

    3. Now go to the OpenVPN installation directory, open the directory "config", you will see a file named key.txt
    This is the Key for the Client and for the Server. You need the same key on both machines.

    4. Rename key.txt to static.key

    5. Create a file Home.ovpn in the same directory (you can name it what you want, but it HAS to be *.ovpn)

    6. Open the .ovpn file with a text editor and paste this into the file:

    Code:
    dev tap
    proto udp
    remote [I]<your router WAN IP, or dyndns address>[/I] 1194
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    secret static.key
    comp-lzo
    verb 3
    float
    
    7. Save the file.

    More info here:

    http://openvpn.net/index.php/documentation/miscellaneous/static-key-mini-howto.html

    http://openvpn.net/index.php/documentation/howto.html

    On the Tomato Router

    Set it up as seen in the attached screenshots, copying and pasting your static key into the relevant box. You may as well set it up under Server 1 - the screenshots only show Server 2 because I have another config using TLS keys running under Server 1.

    The nice thing about the latest versions of SgtPepper's VPN GUI is you now don't have to worry about firewall rules, scripts, etc so ignore any old posts saying you need to do that. The only thing you might want to add to the init script is this, if you want it to periodically check the server is running (and restart if needed), though it's not essential:

    Code:
    cru a CheckVPNServer "*/30 * * * * service vpnserver1 start"
    
    To connect

    Run Open VPN application on the computer and connect via the tray icon. If you need to edit the client config you can now also do that via the tray icon.
     

    Attached Files:

  33. thor2002ro

    thor2002ro Networkin' Nut Member

    my plans include them just be patient ...
    remember this is a hobby :biggrin:
     
  34. kiskakas

    kiskakas LI Guru Member

    Thor,

    thanks for this mod, works fine with my GL and homemade cardreader + 2g card :)

    I tried to turn on Logging to SD/SDHC card, checked all checkbox to log everything, restarted the router, but i cant find any log files at the SD card. What i made wrong?


    kuf
     
  35. thor2002ro

    thor2002ro Networkin' Nut Member

    oooo forgot to mention this.... make a "log"(case-sensitive) directory on the sd

    edit: and please disable internal logging when enabling the sd logging
     
  36. kiskakas

    kiskakas LI Guru Member

    Thanks, it works! :))

    a last question, snmpd has got a GUI, or only command line?
     
  37. thor2002ro

    thor2002ro Networkin' Nut Member

    has gui .... meaning you can enable it at startup from the interface...in Admin Access
     
  38. powersquad

    powersquad Networkin' Nut Member

    I am new to VPN stuff. I have been using Remote Desktop for years but would like to try this out now. Few questions I have.

    The windows guide you have posted above. That is for client side right? And "On the tomato router" guide, that would be the router at home running this particular mod. right? does the client router also needs to be running this this tomato mod?

    Also if I am sitting in a cyber cafe or someone else's computer, is there is a quicker way to connect via VPN to my computer without installing the openvpn software on the client machine and going through the setup everytime? Do any ports needs to be forwarded at all on the tomato router at home or the client's router?

    Thanks
     
  39. occamsrazor

    occamsrazor LI Guru Member

    The "On The Windows PC:" bit is for both client and server initial setup because you have to generate the static key on a computer, then use the resulting certificate to setup both the client config and the server config. Most of this is just a one-time setup.
    The "On the tomato router" - yes, this is for the router at home.

    I'm not sure what you mean by "client router" - the setup I've listed is for the following scenario:

    "Client / Windows PC" - a windows computer that you want to be able to connect via VPN to your home router when away from home

    "Server / Tomato router" - Your home router running the Tomato firmware with VPN mod.

    As said above, most of the setup procedure I listed is the initial setup for both client and server, including the generation of the static key. Once the server (i.e. your home router) is setup and working, the only thing you'll need on the remote computer is the OpenVPN software and your config file. That said, actually installing OpenVPN on a shared machine with your config sounds a bad idea to me security wise, as the person who uses the machine next might be able to use it to login to your machine, unless you delete all the files well.

    If you want to have remote access via OpenVPN on shared computers you'd be better to try and install it as a portable app on a USB key. I haven't done this myself so can't help much, but a quick google brought up these links:

    http://sourceforge.net/projects/ovpnp

    http://portableapps.com/search/node/openvpn
     
  40. powersquad

    powersquad Networkin' Nut Member

    ^ cool you answered all my queries. let me try and set this up then.

    Thanks heaps.
     
  41. occamsrazor

    occamsrazor LI Guru Member

    You're welcome....

    In the long run the better option is to set it up with a Certificate Authority and using the TLS key method - it allows multiple clients to connect at the same time and has some better options... but, it is much more complicated to setup. There's more info here:

    http://openvpn.net/index.php/documentation/howto.html#pki

    So long as you don't desperately need multiple clients to connect simultaneously, the static-key method I described is the best way to get started....
    Note that with the static-key method you CAN have multiple machines setup to connect (e.g. I had my office desktop and on-the-road laptop set up)... you just can't have more than one VPN tunnel running at the same time. If the only person to use it is you... it's not a problem.

    Good luck... once you have it all working you'll find OpenVPN is pretty cool. Think of it as a long ethernet cable from anywhere to your home router - As far as everything on your home network is concerned, you are plugged in at home. This allows you to do some nice stuff like access LAN network-shares remotely and easily, or even access your home iTunes shared library remotely and stream all songs to your remote computer (and it doesn't even require any configuration)
     
  42. powersquad

    powersquad Networkin' Nut Member

    I set up everything as per instructions above but still no stuck. I keep getting an error on the client PC on the openVPN Gui window.

    Code:
    Resolve: cannot resolve host address <WAN IP of server in 59.83.32.XX format>: [NO DATA] The requested name is valid but does not have an IP address.
    1. I installed this BETA Version on both the client and the server PC.

    Then followed the following instructions and did this on both the server and PC. Did copy and paste the static keys from the server PC to the client PC config folder and named the file as per instructions.

    2. Go to Start Menu -> Programs -> OpenVPN -> Utilities -> "Generate a static OpenVPN Key"
    Note that you won't find this option in the Program Files/OpenVPN file directory, you have to go via Start Menu

    3. Now go to the OpenVPN installation directory, open the directory "config", you will see a file named key.txt
    This is the Key for the Client and for the Server. You need the same key on both machines.

    4. Rename key.txt to static.key

    5. Create a file Home.ovpn in the same directory (you can name it what you want, but it HAS to be *.ovpn)

    6. Open the .ovpn file with a text editor and paste this into the file:

    Code:
    dev tap
    proto udp
    remote <your router WAN IP, or dyndns address> 1194
    resolv-retry infinite
    nobind
    persist-key
    persist-tun
    secret static.key
    comp-lzo
    verb 3
    float
    copied the router WAN IP of the server in both the server pc and the client PC's home.opvn file. I deleted the dyndns address bit since I don't have one.

    configured the server router running the tomato mod as per instruction on server 1 option. I see the mod has 2 pages. one for server and one for client. I did nothing in the client page since screenshots only showed server settings and did copy and paste all keys in the field. rebooted the router. clicked start server.

    then did RDP to client PC and pushed the connect button on the open VPN Gui and I got the above error mentioned.

    where did I go wrong. btw I did not forward any ports what so ever at all on the server router or client router.

    Thanks
     
  43. thor2002ro

    thor2002ro Networkin' Nut Member

    updated firmware first post vrom v3 to v4
     
  44. guillaumy

    guillaumy Addicted to LI Member

    Wow, actually with all the troubleshooting going on, personally I'd be happy just to see a "plain vanilla" 1.24.

    Waiting anxiously.
     
  45. Toastman

    Toastman Super Moderator Staff Member Member

    There's a beta.... polarcloud.com/beta/
     
  46. occamsrazor

    occamsrazor LI Guru Member

    I'm not sure I've got you... There is only one PC involved:

    1. SERVER ROUTER: You have the Tomato router at home which is flashed with Thor's firmware mod. The router ITSELF is the server. There is no server PC to install anything on, the router is the server.

    2. REMOTE CLIENT PC: You have a remote computer e.g. a laptop used at your office, internet cafe, etc. This is the remote client machine.

    All port-forwarding and firewall rules for the router are created automatically and invisibly to you.

    As for using the WAN IP address of the router in the config - do you have a static IP address? Because if your DSL provides a dynamic IP as most do - i.e. changes from time to time, often when you reboot - then in this case it's not going to work unless you set it up with a dyndns address.

    Also, if you want to "test it" with your "remote pc" actually at home... then in the Tomato options page Advanced > Firewall be sure to set NAT loopback to "All".
     
  47. i1135t

    i1135t Network Guru Member

    There is a new build for the VPNServer that SgtPepper just released today. Does the new build you just released v4 include this update as well?
     
  48. powersquad

    powersquad Networkin' Nut Member


    oh...i actually installed open vpn and did the setting on the server pc as well....well i have uninstalled that....but at client pc, I am still getting the error i was getting before....i changed the nat loppback to all as well but still no luck....

    i made sure the IP is still the same....i will use dyndns service once i get this to work....

    just wondering if nothing is installed on the server pc then how will the router which pc to connect the vpn user to since some people might have 2 PC's running?
     
  49. occamsrazor

    occamsrazor LI Guru Member

    When you make an OpenVPN connection to the router it just connects you to your local network in the same way as if you were at home plugged in with an ethernet cable. It doesn't make connections to individual computers in itself.
    As to which machines you want to connect to, and how (e.g. network share, ftp, etc) - ask yourself how you would connect to those machines if your "remote" PC was actually sitting at home connected to your router by ethernet - because it will be exactly the same.
    The OpenVPN router doesn't perform any serving functions e.g. ftp, network sharing etc - you still have to set these up on your home computer or computers. What OpenVPN does is to act as a secure tunnel between your remote client pc and your local network at home - what you do with that tunnel, in the same way as what you do within your local network, is up to you.
     
  50. powersquad

    powersquad Networkin' Nut Member

    ^ alright, so I have even now set up an account with no-ip and now have replaced the wan IP with the domain address and changed the setting in the tomato router to update IP every 10 mins in the router.

    still getting cannot resolve hostname error? any idea why?

    btw my my remote PC is also connected behind a a tomato router running the normal version? Would that be blocking this by any chance?
     
  51. thor2002ro

    thor2002ro Networkin' Nut Member

    yes!
     
  52. occamsrazor

    occamsrazor LI Guru Member

    Sorry, am not really sure what is the problem.... However I did notice the link I posted earlier for the OpenVPN client software was to a much older version of the software (have now corrected it). You might try re-installing it with the latest version (2.1rc15) found here:

    http://openvpn.net/index.php/downloads.html

    Sorry about that...
     
  53. ceckin

    ceckin Addicted to LI Member

    Thanks for the logging fix, but it seems now like in Device List, there are no hostnames. Anyway i have a request (hope its not too demanding), but can you look at this and probably integrated it (its very small < 50kb). Cause i'm having problems with someone bruting to my router.
     
  54. occamsrazor

    occamsrazor LI Guru Member

    ceckin - I believe this is a problem with Tomato 1.23 generally. Or at least it's not unique to this Thor mod. See this thread:

    http://www.linksysinfo.org/forums/showthread.php?t=60728
     
  55. thor2002ro

    thor2002ro Networkin' Nut Member

    my hostnames show up in my router :wink:

    i'll take look at the sshdfilter

    PS:to avoid someone bruting.... change the ssh port and be done with it :cool:

    edit: sshdfilter seems to need perl that is a problem...
    edit2: can anyone confirm if the jffs is working....? i don't know if its somthing wrong with it or there isnt enough space for it...
    edit3: Opens the SSH server on the WAN side, while giving a better protection against Brute Force password guessing attacks. After 3 connections attempts in under 90 secs, the source address will be locked out for 90 secs. This seems enough to convince the script kiddies to search for a new target.

    In Init

    Code:
    insmod ipt_recent
    In Firewall

    Code:
    WANIP=$(nvram get wan_ipaddr)
    iptables -t nat -A PREROUTING -p tcp -d $WANIP --dport 22 -j DNAT --to 192.168.1.1:22
    iptables -A INPUT -d 192.168.1.1 -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH_LIMIT --rsource
    iptables -A INPUT -d 192.168.1.1 -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 90 --hitcount 4 --name SSH_LIMIT --rsource -j DROP
    iptables -A INPUT -d 192.168.1.1 -p tcp --dport 22 -j ACCEPT
    Note : Do not enable Remote SSH via the menu, this script will do it and apply the right rules
     

    Attached Files:

  56. kiskakas

    kiskakas LI Guru Member

    Thor,

    i've problems with scp to or from the sd card (256m sd) at my GL.
    Sometimes it freeze the router, sometimes just lost the scp connection after 1-2mbyte transfered. The cpu is on 216mhz, i watch top on a telnet session, the cpu utilisation is maximum 50-60%, when the connection break.

    Have somebody got an idea, what can i try?

    thanks,
    kuf

    ps: with ddwrt, scp worked well on the same GL
     
  57. ceckin

    ceckin Addicted to LI Member

    Thanks, Thor, of course i changed the default port, but guessing the port, still load up the router a bit, i'll try this rule thgough. And yeah now i have hostnames
     
  58. occamsrazor

    occamsrazor LI Guru Member

    Where are the skins stored? Just wondering how much space I could save by removing most of them via WinSCP... I only use the Absolon skin...
     
  59. thor2002ro

    thor2002ro Networkin' Nut Member

    you cant remove them.... they are readonly
     
  60. thor2002ro

    thor2002ro Networkin' Nut Member

    Tomato 1.23.8515.5 .7 v1 released updated first post
    need feedback at jffs
     
  61. occamsrazor

    occamsrazor LI Guru Member

    I flashed it OK, but am having problems with the JFFS.

    1. When I format JFFS and then try to copy files to it via WinSCP, the copy fails and I get the following error in WinSCP - "No space left on device". I had this problem on all of the previous versions, but had just thought it was a space problem.

    2. On the JFFS page, it lists Total / Free Size as 16,384.00 GB / 4,095.94 MB - what can I say? You've upgraded my machine to 16 terabytes, I'll store all my movies on the router from now on!!

    In case it helps, these are all the lines in the log that contained the word JFFS:

    Code:
    Jan  1 02:00:13 Tomato user.info kernel: JFFS version 1.1, (C) 1999, 2000  Axis Communications AB  Mods by Ray Van Tassle
    
    Apr 14 22:15:28 Tomato user.warn kernel: Used < Free, so try to GC anyway.
    Apr 14 22:15:28 Tomato user.warn kernel: jffs_garbage_collect_next: Enter...
    Apr 14 22:15:28 Tomato user.err kernel: JFFS: jffs_garbage_collect_next: No oldest node found!
    Apr 14 22:15:28 Tomato user.err kernel: JFFS: Something has gone seriously wrong with a garbage collect.
    Apr 14 22:16:34 Tomato user.warn kernel: Used < Free, so try to GC anyway.
    Apr 14 22:16:34 Tomato user.warn kernel: jffs_garbage_collect_next: Enter...
    Apr 14 22:16:34 Tomato user.err kernel: JFFS: jffs_garbage_collect_next: No oldest node found!
    Apr 14 22:16:34 Tomato user.err kernel: JFFS: Something has gone seriously wrong with a garbage collect.
    
    The JFFS folder permissions as shown in WinSCP were rwxr-xr-x with owner=root (I've no idea if that's good or bad but thought it might be useful to check)

    There was also a bunch of upnp errors:

    Code:
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: chain upnp not found
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: chain upnp not found
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: chain upnp not found
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: addnatrule() : iptc_is_chain() error : No chain/target/match by that name
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: chain upnp not found
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: addnatrule() : iptc_is_chain() error : No chain/target/match by that name
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: chain upnp not found
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: chain upnp not found
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: chain upnp not found
    Jan  1 02:00:39 Tomato daemon.err miniupnpd[117]: addnatrule() : iptc_is_chain() error : No chain/target/match by that name
    
    ...though note that took place before the WAN was up, perhaps it's not a problem. UPNP seems to be working from the options page.

    VPN status page is still working fine.
     
  62. thor2002ro

    thor2002ro Networkin' Nut Member

    occamsrazor did the jffs work before? i think theres something wrong with the last jffs drivers :|
    i think downgrade time:confused:
     
  63. i1135t

    i1135t Network Guru Member

    Unless occamsrazor wants to reflash, I can try when I get home. I haven't updated to the new version yet. Been trying to get my VPN working first, but I will try it when I get home and update.
     
  64. occamsrazor

    occamsrazor LI Guru Member

    No the JFFS has never worked for me with your mod. On the last version (.5) it would enable and format and but list Total/Free size as 64kb/0kb. Trying to copy anything to it just gave the "No space on the device" error. Now with the .7 version I get the crazy totals listed in my previous post, but still the same error.

    I'm running a Buffalo WHR-G54s. Prior to your mod I was running SgtPepper's mod and never had any problems with the JFFS... so you might try seeing what the JFFS differences are, if any... either that or there must be some conflict with something else in your mod. I have the SDHC options all disabled and my hardware is unmodified.

    Thanks for your continued work....
     
  65. occamsrazor

    occamsrazor LI Guru Member

    I do have another question. In the log I see this line:

    Code:
    Jan  1 02:00:48 Tomato daemon.info dnsmasq[176]: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N no-TFTP
    
    Regarding the no-TFTP bit... is this only something to do with DNSMasq? I just want to check I should still be able to flash the router via tftp if things go badly wrong... is that right?
     
  66. thor2002ro

    thor2002ro Networkin' Nut Member

    has nothing to do with the reflash tftp
     
  67. i1135t

    i1135t Network Guru Member

    Ok, just formatted JFFS2 and showing 4,096.00 KB total / 3,772.00 KB free. Copied over a 2MB file and works fine for me. :)

    Oh, forgot that I am running v4 Thor and WL-500gp router if that helps.
     
  68. occamsrazor

    occamsrazor LI Guru Member

    i1135t - what router are you using? Perhaps I'll try reflashing again...
     
  69. i1135t

    i1135t Network Guru Member

    Running Asus WL-500gp v1. Thor, should I upgrade my firmware if you haven't pinpointed the problem yet?

    occamsrazor, I checked off enable first, then saved, then formatted. Did you try it that way?
     
  70. thor2002ro

    thor2002ro Networkin' Nut Member

    i'm trying to down grade the jffs2 to the jffs2 from the vpn mod...
    will be ready soon
     
  71. occamsrazor

    occamsrazor LI Guru Member

    As i1135t's is working on his Asus with 8mb flash, I wonder if it's just a problem with my Buffalo's 4mb flash and the larger size of your mod compared to SgtPepper's? Anyway, I'll wait for the updated/downgraded JFFS and try that....
     
  72. thor2002ro

    thor2002ro Networkin' Nut Member

    i think its a problem of space.... i upgraded the driver because on my wrt54gl doesnt work as well... i think there isnt enough space for it on a 4mb flash
     
  73. occamsrazor

    occamsrazor LI Guru Member

    In my case I can live without the JFFS... the main reason I was using it was for the Absolon theme. I also had sRelay running but rarely used it.
    I was going to get a new router with 8mb anyway like an Asus WL-500gp, though the v1 is hard to come by these days and the v2 isn't as good I hear...
     
  74. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    You might try the JFFS1 changes in the git repo. From what I've gathered, it makes better use of the space available. Though, it may be so little that that wouldn't make a difference.
     
  75. thor2002ro

    thor2002ro Networkin' Nut Member

    v1 has jffs1 from the git..... complete fail...
    uploding v2 with restored jffs2 hope it works...
     
  76. thor2002ro

    thor2002ro Networkin' Nut Member

    please try .7 v2 and tell me if it works
     
  77. i1135t

    i1135t Network Guru Member

    occamsrazor, you are lucky, I just got this recently on ebay here:

    Code:
    http://tinyurl.com/ccsqdq
    Now from what the seller told me, these were v1 models. They have the 8MB flash, 32MB ram, and most importantly 2 USB slots and 264mhz cpu, probably the best home router you can get now, for a G-wireless class. Best thing is that it support tomato. I'm not sure about DDWRT, but will have to look into that. You may want to check with him first before purchasing. I made an offer of $80 and got it. Hurry, there are only two left. :)
     
  78. i1135t

    i1135t Network Guru Member

    I will try it once I get my VPN up and running. Thanks for the effort.
     
  79. thor2002ro

    thor2002ro Networkin' Nut Member

    found the cuplit it was the busybox restored it .... it works even on my 4mb flash but shows 0 of course v2 reuploaded with change
     
  80. i1135t

    i1135t Network Guru Member

    Ok, flashed to v7 and everything works as far as I know. The only thing I noticed in the logs was that this errors that showed up from time to time.

    Code:
    upnp_event_recv: recv(): Connection reset by peer
    I did notice these errors on Victek's latest USB mod as well, so maybe there is an issue with the miniupnpd that you updated. UPnP does appears to be working, but just hate seeing errors in the log, you know? Anyways, thanks for the update!
     
  81. thor2002ro

    thor2002ro Networkin' Nut Member

    the dns and upnp report "stuff" to the syslog it's the new versions.... nothing to worry ... in the other versions you dont see any log's from dns and upnp ...thats why is new
     
  82. kiskakas

    kiskakas LI Guru Member

    i've problems with vpn server, i cannot start it. I use a default vpn config, with a static key (abc123), then push Start button, but it wont start :(

    dmesg:
    Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
    device tap21 entered promiscuous mode
    br0: port 2(tap21) entering learning state
    br0: port 2(tap21) entering forwarding state
    br0: topology change detected, propagating
    br0: port 2(tap21) entering disabled state
    br0: port 2(tap21) entering disabled state

    When i check the GUI VPN status page, it shows vpn server not running.

    I use the latest Thor mod V7 2 , what i make wrong?
     
  83. thor2002ro

    thor2002ro Networkin' Nut Member

    theres nothing wrong with the vpn server occamsrazor is using it... i dont know how to set it up im not using it... theres a guide on page 4 try that
     
  84. Thrasher

    Thrasher LI Guru Member

    I'm a little out of date with WRT firmware & hardware.
    This firmware says "ND only"....does that mean it won't work on a WRT-54GS v1.1?
     
  85. thor2002ro

    thor2002ro Networkin' Nut Member

    Enter in terminal mode ssh/telnet in the router
    Code:
    nvram show | grep wl0_corerev
    wl0_corerev=9 When digit is =>9 then use ND version
     
  86. Thrasher

    Thrasher LI Guru Member

    wl0_corerev=7 :(

    Will there be a version for non ND hardware please?
     
  87. thor2002ro

    thor2002ro Networkin' Nut Member

    maybe i will give it a try after the holiday
     
  88. Victek

    Victek Network Guru Member

    You can use ND version for wl0_core=>7 also
     
  89. Thrasher

    Thrasher LI Guru Member

    Thank you.

    Really? Cool!
     
  90. thor2002ro

    thor2002ro Networkin' Nut Member

    reallly? i thought it was 9 and up :eek:
     
  91. Thrasher

    Thrasher LI Guru Member

    Well the install appears to have been succesful.

    I don't use wireless for anything so can anly assume that bit is OK.
    Thanks guys.

    I don't even know what ND means.....but this firmware certainly works on a Linksys WRT-54GS v1.1
     
  92. GhaladReam

    GhaladReam Network Guru Member

    Victek,

    The coererev=>9 advice should be taken seriousely. I have a WRT54GS v2.0 with corerev=7, and I've tried the ND firmware, and I have nothing but problems. Several of my wireless devices (that have latest drivers) either won't connec, or once they do connect, there's no activity whatsoever. Downgrading back to non-ND fixed everything.

    I'd love to see a non-ND version of this.
     
  93. ToMikaa

    ToMikaa Networkin' Nut Member

    SD/MMC module error

    Hi,

    I have a problem with the MMC module. I use a 256 MB SD card.

    The log:
    Code:
    Apr 19 15:19:00 wrt54gl user.info kernel: [INF] mmc: Version: 2.0.1  Parms: major=121 din=2 dout=4 clk=3 cs=7 maxsec=32 rahead=2 dbg=0001
    Apr 19 15:19:00 wrt54gl user.info kernel: [DBG] mmc: init: power on/insertion initialization...
    Apr 19 15:19:00 wrt54gl user.info kernel: [DBG] mmc: init: CMD0 - reset...
    Apr 19 15:19:00 wrt54gl user.info kernel: [DBG] mmc: init SD: CMD8 - CIC voltage range check...
    Apr 19 15:19:00 wrt54gl user.err kernel: [ERR] mmc: init SD: CMD8 - voltage range rejected
    Apr 19 15:19:00 wrt54gl user.info kernel: [DBG] mmc: init - CMD16 - set 512 byte blocksize...
    Apr 19 15:19:00 wrt54gl user.err kernel: [ERR] mmc: init: CMD16 - set blocksize failed - r1=01
    Apr 19 15:19:00 wrt54gl user.info kernel: [DBG] mmc: init: power on/insertion initialization...
    Apr 19 15:19:00 wrt54gl user.info kernel: [DBG] mmc: init: CMD0 - reset...
    Apr 19 15:19:00 wrt54gl user.info kernel: [DBG] mmc: init SD: CMD8 - CIC voltage range check...
    Apr 19 15:19:00 wrt54gl user.err kernel: [ERR] mmc: init SD: CMD8 - voltage range rejected
    Apr 19 15:19:00 wrt54gl user.info kernel: [DBG] mmc: init - CMD16 - set 512 byte blocksize...
    Apr 19 15:19:00 wrt54gl user.err kernel: [ERR] mmc: init: CMD16 - set blocksize failed - r1=01
    Apr 19 15:19:00 wrt54gl user.info kernel: [INF] mmc: Module unloaded due to error
    Apr 19 15:19:00 wrt54gl user.info init[1]: notice: Error loading module for SDHC/MMC. Check the logs to see if they contain more details about this error.
    
    I have tested my mod and worked fine with DD-WRT but with this firmware I cannot mount any SD/MMC cards.

    Has anybody got the same error?
     
  94. thor2002ro

    thor2002ro Networkin' Nut Member

    i thik you have diffrent solder points .... try to play with the gpio profiles , or try manual....
    i cant verify that the mmc driver is working .... so i think is the gpio points...
     
  95. ToMikaa

    ToMikaa Networkin' Nut Member

    I tried all the profiles. I use the default GPIO configuration that OpenWRT Wiki suggests for WRT54GL v1.1.

    Code:
    CS: GPIO 7
    DI: GPIO 2
    CLK: GPIO 3
    DO: GPIO 4
     
  96. thor2002ro

    thor2002ro Networkin' Nut Member

    those gpios depend on the solder points....
     
  97. ToMikaa

    ToMikaa Networkin' Nut Member

    SD/MMC module error

    Tested with a microSD card and I got another results:

    Code:
    [INF] mmc: Version: 2.0.1  Parms: major=121 din=2 dout=4 clk=3 cs=7 maxsec=32 rahead=2 dbg=0001
    [DBG] mmc: init: power on/insertion initialization...
    [DBG] mmc: init: CMD0 - reset...
    [DBG] mmc: init SD: CMD8 - CIC voltage range check...
    [DBG] mmc: init SD: CMD8 - illegal command - not v2.0 SD card...
    [DBG] mmc: init SD: CMD58 - OCR voltage range check...
    [DBG] mmc: init SD: ACMD41 - card initialization...
    [DBG] mmc: init SD: CMD10 - Card Identification Register read...
    [DBG] mmc: init SD: CMD9 - Card Specific Data read...
    [DBG] mmc: init SD: ACMD51 - SD Config Register read...
    [INF] mmc: SD Card detected & initialized
    [DBG] mmc: init - CMD16 - set 512 byte blocksize...
     mmca: unknown partition table
    devfs_mk_dir(mmc/disc0): using old entry in dir: 803dec40 "mmc"
    devfs_register(disc): could not append to parent, err: -17
    [INF] mmc: Module loaded
    [INF] mmc: Module unloaded
    
    So there is no problem with the hardware but it still cannot mount the card.

    Edit: the problem has been solved. I have formatted the microSD to FAT16 and inserted fat and vfat module. Then I could mound the card. :)
     
  98. thor2002ro

    thor2002ro Networkin' Nut Member

    the microsd works but it doesnt recognize the partition table.... remake partitions/reformat
     
  99. ToMikaa

    ToMikaa Networkin' Nut Member

    Yes, thanks. But does anyone have an idea why the module can't be loaded when the other SD card is inserted?
     
  100. thor2002ro

    thor2002ro Networkin' Nut Member

    incompatible card maybe.... dono i didnt make the mmc driver... its just implemented from the sdhc mod and that guy ported it from openwrt mmc driver
     

Share This Page