Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] squid - allowing only one domain
Date: Wed, 20 Jan 2010 05:53:40
Message-Id: 20100120055305.GJ6352@syscon4.inet
1 I'm testing squid and want to allow only one domain but it is not working (using iptable + squid)
2 iptable:
3 ACCEPT tcp -- anywhere anywhere tcp dpt:http owner UID match squid
4 ACCEPT tcp -- anywhere anywhere tcp dpt:3128 owner UID match squid
5 REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 3128
6
7 squid:
8 # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
9
10 acl GOOD dstdomain .google.ca
11 http_access allow GOOD
12 http_access deny all
13
14 Why it doesn't work?
15
16 Squid access log entry:
17 1263964263.464 0 192.168.1.5 NONE/400 1828 GET / - NONE/- text/html
18
19 --
20 Joseph

Replies

Subject Author
Re: [gentoo-user] squid - allowing only one domain Adam <adam@××××××××××.au>
Re: [gentoo-user] squid - allowing only one domain Adam <adam@××××××××××.au>