Develop your Cybersecurity Framework
Supply chain attacks, ransomware attacks, phishing, data breaches; all these types of attacks are on the rise, thanks to the expansion of the connected world. With greater expansion comes greater security risk.Recent comments
- I think the R8000 firmware 4 days 7 hours ago
- Just want to add some update: 6 days 1 hour ago
- When I press Ctrl+C, the boot 6 days 3 hours ago
- Well, Netgear has the 1 week 23 hours ago
- waste of time 1 month 3 weeks ago
Hey kong, I have your previous mod.. do I need to do a hard reset (30/30/30) to update or can I just update it without any resets?
Also my hdd stopped being seen on my seagate media players.. does this mod solve this?
Hi johnny,
no need to reset if you just update from dd-wrt. Regarding minidlna make sure you set the db path to a path on the external media drive previous builds had problems in case there were lots of media files on the external drive. Before the minidlna was always stored in ram, with lots of media files the db gets very big until all ram is used if the db is saved on the external drive this isn't happening.
Thanks for the response kong.. I updated to your new mod and my media players still didn't pick up my external hdd. I finally got it to work by disabling and then enabling mindlna again on dd-wrt panel. In case anyone else goes through.
Have anyone test firewall or access restriction of Kong mod? It does not work well for me.
I'll check it out. The agent seems to have no extra dependencies so compiling it should be rather easy.
Hi frater, no wonder you couldn't compile a working zabbix. The current Zabbix for example needs the function getloadavg this function is not included in uclibc unfortunately zabbix assumes this function is always present under linux, see :
src/libs/zbxsysinfo/solaris/cpu.c:#if defined(HAVE_GETLOADAVG)
src/libs/zbxsysinfo/solaris/cpu.c:#if defined(HAVE_GETLOADAVG)
...
it does not honor HAVE_GETLOADAVG under linux but on other systems, this results in : cpu.c:(.text+0x44c): undefined reference to `getloadavg' at link time.
Openwrt seems to use some older zabbix release. Would an older version e.g. 1.6.2 work for you?
Without patching around a lot it was easy to build the older version, you can test if you want:
Zabbix-1.6.2 for DD-WRT Kong
Hi frater,
I saw your message in the dd-wrt forum, seems like it is working. A little test on my own worked out just fine:-)
The binaries I have compiled are not stripped yet, I just stripped them and uploaded them to the same location as before. The tarball is 55KB smaller now.
Just used your template on my test machine, looks promising:-)
I use now this build, but ushare and twonky still don't work. :(
webaccess with Port 9000 (twonky) and 49200 (ushare) also not available. Whats wrong?
Hi JimPanse,
I don't know what you mean by ushare/twonky does not work? If you want to access the dlna server on this router you first have to setup minidlna so it can index your media files on a usb storage device. After that dlna compatible devices should see the media server.
Not sure if anyone noticed this but in case you have a huge media library over 400GB you might want to make sure you have a swap setup.
I noticed after resetting my router and setting everything up my router would crash and reboot after the minidlna db reached about 37000kb. I couldn't understand why because my database was located on my /opt directory which is 1GB.
After some exhaustive research I found that when the minidlna db is rebuilding the VSZ size of the process, which you can check using the PS command gets up to over 45000KB. I am guessing the process is using RAM so once it runs out of memory the router just crashes and takes about 3 minutes to reboot itself.
Anyway thats when I noticed my Swap drive was off, and once I turned it on..well no issues, my database rebuilds with about 22380KB of space used on the Swap.
So long story short if you have a large media collection like me, make sure you use a swap. I used this link for info to set it up http://www.dd-wrt.com/wiki/index.php/Linux_SWAP
Good tip HeCareth!
I had the same problem and very got back to looking into why. I will set swap up and make another run at it.
Thanks!
First of all, hi everyone! And Kong - marvelous work, thank you so much!
But to the point - what kind of transfers are you seeing using Samba3.5?
For me, using directly connected 500GB USB HDD, I get ~5 MB read from router and ~9 MB write (using Gigabit Ethernet). It happens regardless of smb.conf tweaks (like TCP_NODELAY, setting buffers, AIO etc...). Using htop, I can see processor load ->100%, mainly because of the kernel (red color); using top, I see si (software interrupts) north of 60%. I have about 5 MB free RAM and no swap is used. Aside from Samba, I'm using Transmission, but the speed is quite the same when I turn it off.
Do you have similar observations and it's standard speed? I'm especially puzzled that write is almost 200% faster that read. I'd love to see such an improvement in read speed :-)
If that's of any help, I can show you output of Wireshark, but it's heavy (I used >100 MB file both ways).
EDIT: I almost forgot - I also have another Windows box connected to this router, and transfer Windows->Windows is about 60 MB/s both ways.
as a brutforce protector for mac i'd recomend http://www.protemac.com/logonkey/
Hi Kong and Everybody,
I have flashed this fw into my asus wl500gp.
I have connected a 250 Gb USB HD, partitioned 1 Gb ext3 (system, opt, whatever we call); 500 Mb swap partition; and the last one is ext3 also (vids, ...).
I can automount the first partition to /opt or /jffs also (both works).
But I can't swapon. I can install swap-utils via ipkg, but when I try swapon but it gives the following error:
swapon: can't resolve symbol '__uClibc_start_main'
Do you know how can I turn on swap?
MegaTHX:
P!
You don't need swapon to enable swap partition. Just edit (/tmp)/etc/fstab via telnet and add the correct line like:
/dev/sda2 none swap sw 0 0 (editing /dev/sda2 to your convenience, some prefer LABEL= or UUID= for designing the partition, to avoid confusions if you have multiple disks that can be booted in different orders, changing their sdX names).
After saving file don' t forget to commit nvram: nvram commit to save the modifications permanently.
Then reboot.
Fstab entries are read before automounting process.
Hi Striatum,
Thanks for your help!
I try to edit fstab, but it seems to be read only, with vi /etc/fstab after :w
"/etc/fstab" File is read only
I try chmod, but it doesn't work...
:w! doesn't work also :-(
Have you got any idea?
MegaTHX:
P!
I'm not sure, I use Tomato and not DD-WRT, and in Tomato you can write/save files but if you reboot without 'nvram commit' first, all changes are lost.
Perhaps some DD-WRT trained people could answer.
Pages