Re: Where can I add a script
Rob Brewer <[email protected]>
| Newsgroups | gmane.comp.security.ipcop.user |
|---|---|
| Organization | Megadodo Publications |
| Message-ID | <[email protected]> |
Renaud OLGIATI wrote: > On Sun, 02 Aug 2015 13:10:03 +0100 > Rob Brewer <[email protected]> wrote: > >> I suggested this a few years ago and I am still using it: >> On your IPCop box add the following line to /etc/dnsmasq.conf >> addn-hosts=/etc/hosts.ext >> then go to http://www.mvps.org/winhelp2002/hosts.htm >> and download the hosts.zip file. >> Unzip the file and copy it to /etc/hosts.ext >> and restart dnsmasq running /etc/rc.d/rc.updatered > > Thanks, but > > -I already have my file of bad hosts > > -running /etc/rc.d/rc.updatered with the modified conf file does not seem > to add the bad hosts to /etc/hosts on my IPCop 2 box ;-3( > /etc/rc.d/rc.updatered does call /etc/rc.d/rc.dnsmasq so you could try just running: /etc/rc.d/rc.dnsmasq restart would also load the hosts.ext file into memory. user@host:~$ ping doubleclick.net PING doubleclick.net (127.0.0.1) 56(84) bytes of data. works for me :) Rob ------------------------------------------------------------------------------ _______________________________________________ IPCop-user mailing list [email protected] Manage your subscription or unsubscribe https://lists.sourceforge.net/lists/listinfo/ipcop-user