Gentoo Archives: gentoo-user

From: Thanasis <thanasis@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Blocking sites for some users
Date: Mon, 25 Jan 2016 18:34:14
Message-Id: 56A66A98.2080702@asyr.hopto.org
In Reply to: Re: [gentoo-user] Blocking sites for some users by "J. Roeleveld"
1 On 01/25/2016 08:15 AM, J. Roeleveld wrote:
2
3 > squidguard sounds interesting, was wondering if anyone has any experience with
4 > setting it up.
5 >
6
7 You can use net-firewall/iptables to redirect to squid port (3128) all
8 passing through traffic directed to port http (80)
9
10 Like so:
11 iptables -w -t nat -A PREROUTING -i eth0 -p tcp --dport 80 ! -d
12 {ROUTER_IP} -j REDIRECT --to-port ${SQUID_PORT}
13
14 Setting up net-proxy/squid and net-proxy/squidguard is quite simple.
15 http://www.squidguard.org/Doc/configure.html

Replies

Subject Author
Re: [gentoo-user] Blocking sites for some users R0b0t1 <r030t1@×××××.com>