Posted: Sun Oct 17, 2010 17:19 Post subject: Wiki - Change
Note #1: I've modified the Wiki page for the mvps script. According to the dnsmasq man page, sending a HUP does NOT reread /tmp/hosts0. You have to restart the daemon.
Note #2: This probably isn't the best solution, as I bet some folks are starting dnsmasq with some wierd options. Is there a "service" script that will restart the daemon in a better way? I'm not familiar with the init system for dd-wrt. ie: service dns restart or svcadm restart dns.
Note #3: I've also added a "tr" entry to remove the ^M's from the Weendows file format.
Donny:
This should run on all builds.
What is does is takes any request from a system and checks it against the list of URLS. If the URL matches, it returns the IP 0.0.0.0 instead of passing it though and getting the ad.
This is incorrect information. It does NOT run on micro builds. Runs on mini or standard.
This is incorrect information. It does NOT run on micro builds. Runs on mini or standard.
What are you doing in this thread? I am busy with you in another thread and invested time to try and solve your problem. You still haven't done the things I've told you, like putting that script there. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Posted: Mon Nov 29, 2010 7:46 Post subject: Re: Wiki - Change
lamelogin wrote:
Note #1: I've modified the Wiki page for the mvps script. According to the dnsmasq man page, sending a HUP does NOT reread /tmp/hosts0. You have to restart the daemon.
Not true.
And very silly to use a manual to tell someone he is wrong.
I tested it. You obviously NOT
Are you working for the civil service or something?
Code:
~# host bla.gakijken.nl
bla.gakijken.nl has address 82.150.128.70
~# killall -HUP dnsmasq
~# host bla.gakijken.nl
bla.gakijken.nl has address 10.63.63.1
EDIT: I see someone updated the Wiki page with a new script, which may make my original point moot. (unless the new one has the same issue?)
frater,
I'm sorry for upsetting you. I must be doing something wrong then, sorry for insulting you by updating a Wiki page ONCE with info I thought was correct. I have tested it several times. Your output dosen't show if you tested the script after a fresh reboot, have you?
The entry I was refering to was the following: "When it receives a SIGHUP, dnsmasq clears its cache and then re-loads /etc/hosts and /etc/ethers and any file given by --dhcp-hostsfile, --dhcp-optsfile or --addn-hosts. The dhcp lease change script is called for all existing DHCP leases. If --no-poll is set SIGHUP also re-reads /etc/resolv.conf. SIGHUP does NOT re-read the configuration file. "
Below is my script, I added the functionality of removing lines from the original hosts.txt file.
I found that some sites that are disabled in the hosts.txt I need to uses.
I have a webserver at home, I created a file the contains this list and I can add more if I need.
I have tested it several times. Your output dosen't show if you tested the script after a fresh reboot, have you?
You have an appropriate sig...
Don't share your code.. it will keep damage limited. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Can somebody help me with this script?
I'm really noob at this but I wanted to download the pixelserv binary at startup then execute it afterwards. But this one is not downloading anything in the /tmp folder.
Thanks.
Code:
logger WAN UP scripts
#!/bin/sh
cd /tmp
wget http://www.mywebsite.org/pixelserv
wait
cd /tmp
chmod +x pixelserv
./pixelserv &
It's a bogus domain.
He has his own webserver at his disposal and he gave this example assuming people would know.... _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Just found this thread and would like to implent Frater (the great)'s proposed script.
Wanted to check to see if the scripts have changed from what is posted on the first page of this topic.
Any way to sticky a link to the latest version of the scripts? _________________ ===================================
1 * DIR-866L - 29193 Mega (Main Gateway)
1 * EA4200 - 29193 Mega (Main Gateway)
1 * EA6500 - 29193 Mega (Repeater Bridge)
1 * EA6500v2 - 29193 Mega (Repeater Bridge)
1 * WRT610N - 29193 Mega (Repeater Bridge)
===================================
It is more streamlined than the one in this thread although the one in this thread should do just fine.
If you have OTRW anyhow I would advice you to enable the script 'S45pixelserv' as it runs a small pseudo-httpserver that will answer these redirected requests. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
I went ahead and installed the code above, added the dnsmasq entry and enables the pixelserv service.
I am noticing a performance issue and pages take ages to load. Even the dd-wrt forum page hangs. Other sites include my.yahoo.com, cnn.com, bbc.com.uk etc.
On a whim, while pages were waiting to load, I stopped the pixelserv service, and the pages loaded immediately.
By no means is this a conclusive test, but I wanted to check with the group to see if others are seeing similar issues.
If my case is isoloated, any clues as to what might be going on.
Router: e3000
Firmware: DD-WRT v24-sp2 (12/24/10) mega
(SVN revision 15962) _________________ ===================================
1 * DIR-866L - 29193 Mega (Main Gateway)
1 * EA4200 - 29193 Mega (Main Gateway)
1 * EA6500 - 29193 Mega (Repeater Bridge)
1 * EA6500v2 - 29193 Mega (Repeater Bridge)
1 * WRT610N - 29193 Mega (Repeater Bridge)
===================================