Is there any way to make this work when static leases are setup?
Also this works GREAT coupled with pixelserv. Keep in mind that pixelserv takes over port 80 on your router so the ddwrt web admin must be disabled or moved to a alternate port.
I saved pixelserv as /mcc/bin/pixelserv.bin and use a script like this to start pixselserv and move httpd to 8080:
/mmc/bin/pixselserv
Code:
#!/bin/sh
killall -9 pixelserv.bin
HTTP_PORT=8080
if [ `nvram get http_lanport` -eq 80 ] ; then
nvram set http_lanport=${HTTP_PORT}
nvram commit
stopservice httpd
startservice httpd
fi
pixelserv.bin
The version of pixelserv I am using is a 10k precompiled bin compile and offered by the user mstombs. More info is available here. Anyone interested can also retrieve a copy from my DropBox: http://dl.dropbox.com/u/1397571/pixelserv
It could ofc be retrieve at startup and saved to /tmp by adding something like this to your startup script:
killall -9 pixelserv
HTTP_PORT=8080
if [ `nvram get http_lanport` -eq 80 ] ; then
nvram set http_lanport=${HTTP_PORT}
nvram commit
stopservice httpd
startservice httpd
fi
/tmp/pixelserv
I'm just waiting for someone to hack mvps.org modifying the hosts text, the posted script here is completely insecure. Just modify the downloaded hosts and add the line:
74.125.39.104 microsoft.com # 127.0.0.1
running:
grep 127.0.0.1 | sed -e '2,$s/127.0.0.1/0.0.0.0/g' -e 's/[[:space:]]*#.*$//'
Replace 192.168.1.8 thats hightlighted to bypass the squid proxy (such as xbox 360 / Wii / Media receivers ) You can use it to add as many exceptions as you like
Joined: 24 Aug 2009 Posts: 2070 Location: South Florida
Posted: Wed May 02, 2012 18:06 Post subject:
<Kong> wrote:
I'm just waiting for someone to hack mvps.org modifying the hosts text, the posted script here is completely insecure. Just modify the downloaded hosts and add the line:
74.125.39.104 microsoft.com # 127.0.0.1
running:
grep 127.0.0.1 | sed -e '2,$s/127.0.0.1/0.0.0.0/g' -e 's/[[:space:]]*#.*$//'
will add:
74.125.39.104 microsoft.com
to your hosts file:-)
I can't believe people are blindly downloading a foreign hosts file without simple checks.
An accepted risk I was living with for awhile, but I've since changed the url in pixelserv to:
Which includes PGP encryption, MD5 and Sha-1 hashing..
Code:
root@None:/opt/etc/pixelserv# ls -altr
total 7704
-rw-r--r-- 1 root root 0 Oct 24 2011 hosts.exclude
-rw-r--r-- 1 root root 253 Apr 25 01:10 hosts.include
drwxr-xr-x 2 root root 4096 May 2 12:44 .
-rw-r--r-- 1 root root 7860147 May 2 12:44 blacks
drwxr-xr-x 13 root root 4096 May 2 14:00 ..
root@None:/opt/etc/pixelserv#
Other than your Privoxy service you integrated into your builds (which is hard to understand), what else would you recommend?
Thanks,
-Masterman _________________ Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
Posted: Wed Aug 29, 2012 19:48 Post subject: Re: good ;)
es1013 wrote:
Quote:
If you DON'T have jffs it gets more tricky.....you would need to store your additional hosts somewhere the router DOES have access to and modify the script to grab them after grabbing yours. A dirty version without error checking would be:
Micro doesn't have jffs. Someone in a previous post mentioned that frater's script DOES work in the Mini version. However, most commands in Micro have been stripped - sed, awk, nwget, ntwget, etc..
For the record, here are the commands listed in 2.4sp1 micro:
Code:
BusyBox v1.11.1 (2008-07-27 19:40:27 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
\u@\h:\w\$ help
Built-in commands:
-------------------
. : [ alias bg break cd chdir command continue eval exec exit export false fg getopts hash help jobs kill let local pwd read readonly return set shift source test times trap true type ulimit umask unalias unset wait
I won't hold my breath for a solution. Will probably just try to find a non-neutered router instead.
I added a section to the Wiki with a makeshift solution for transmitting a hosts file into a router with the Micro build. (Sorry for such a late bump, but I'm still using a WRT54Gv2, which only can accommodate Micro, and came to the posting/question while trying to figure this out.)