[ previous ] [ next ] [ threads ]
 From:  Chris Buechler <cbuechler at gmail dot com>
 To:  JobOberio - My List Mail <mylistmail at gmail dot com>
 Cc:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] adding HOSTS file to m0n0wall
 Date:  Thu, 18 Nov 2004 01:39:10 -0500
On Tue, 16 Nov 2004 19:48:31 +0800, JobOberio - My List Mail
<mylistmail at gmail dot com> wrote:
> i did able to go to the hidden page /exec.php
> for command line execution.
> i can download the default hosts file at /etc/hosts
> however when i try adding entries to the new host
> its uploaded to /tmp

That's what it's supposed to do.  

> i tried to copy the new hosts file
> by executing commands via the exec.php page
> cp /tmp/hosts /etc/hosts

That's correct.  

> But the new entry wont take effect.
> i can still access the sites which i should not be able to
> since i add it in hosts file
> www.playboy.com
> did i do something wrong?

run 'killall -HUP dnsmasq' so dnsmasq will re-read the hosts file.

You'll lose that /etc/hosts file at reboot though.  You lose
everything but config.xml at reboot.