[CentOS] A simplistic parental-control setup

Thu Jan 5 10:16:05 UTC 2012
Ljubomir Ljubojevic <office at plnet.rs>

On 01/05/2012 01:21 AM, Marko Vojinovic wrote:
> On Wednesday 04 January 2012 18:04:43 Frank Cox wrote:
>> On Wed, 04 Jan 2012 23:58:17 +0000 Marko Vojinovic wrote:
>>> The point is that I need a simple, easy-to-implement, easy-to-configure
>>> and easy-to-maintain solution for this particular usecase.
>>
>> Put the disallowed addresses into your /etc/hosts file and associate those
>> addresses with whatever you want them to resolve to.
>
> Hmm... that sure looks simple enough. :-) I'll give it a try, thanks!
>

/etc/hosts is local DNS server. It does not work when http://1.2.3.4/xxx 
is used. You need iptables/PREROUTING/redirect? rules for that.

Also, I think you will need some kind of http server, at least like 
lighttpd.



-- 

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant