[CentOS] A simplistic parental-control setup
office at plnet.rs
Thu Jan 5 10:16:05 UTC 2012
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://22.214.171.124/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
(Love is in the Air)
Google is the Mother, Google is the Father, and traceroute is your
StarOS, Mikrotik and CentOS/RHEL/Linux consultant
More information about the CentOS