[squid-users] squid.conf: Defining acl items in a file

From: Rost, Werner <Werner.Rost@dont-contact.us>
Date: Mon, 30 Apr 2001 17:22:18 +0200

Hello squid gurus,

our whole intranet consists of various intranets:

acl intranet2 dstdomain .rexroth.de
acl intranet3 dstdomain .mannesmann.de
acl intranet4 dstdomain .rexroth-mecman.de
acl intranet5 dst 192.71.221.29
acl intranet6 dst 195.233.149.75
acl intranet_mpoint dst 145.230.129.173
acl intranet_sachs dst 192.125.140.149
acl internet_sachs dstdomain www.sachs-ag.de
acl intranet_vdo_auto dst 193.25.152.172
acl local_external dstdomain www.rexroth-mecman.de
acl intranet_boge dst 192.125.129.54

Now I want to define this whole intranet in a separate file, say
"intranet_definition". squid.conf should reference this file:

acl intranet dst "/usr/local/squid/etc/intranet_definition"
acl auth_intranet proxy_auth REQUIRED
http_access allow intranet
http_access allow !intranet auth_intranet

Unfortunately this leads to errors during reloading squid.conf:

2001/04/30 17:27:18| decode_addr: Invalid IP address '.'
2001/04/30 17:27:18| squid.conf line 1187: acl intranet dst
"/usr/local/squid/et
c/intranet_definition"
2001/04/30 17:27:18| aclParseIpData: Ignoring invalid IP acl entry: unknown
firs
t address '.'
2001/04/30 17:27:18| decode_addr: Invalid IP address '.'
2001/04/30 17:27:18| squid.conf line 1187: acl intranet dst
"/usr/local/squid/et
c/intranet_definition"
2001/04/30 17:27:18| aclParseIpData: Ignoring invalid IP acl entry: unknown
firs
t address '.'
2001/04/30 17:27:18| decode_addr: Invalid IP address '.'
2001/04/30 17:27:18| squid.conf line 1187: acl intranet dst
"/usr/local/squid/et
c/intranet_definition"
2001/04/30 17:27:18| aclParseIpData: Ignoring invalid IP acl entry: unknown
firs
t address '.'
2001/04/30 17:27:18| aclParseIpData: Bad host/IP: 'www.sachs-ag.de'
2001/04/30 17:27:18| aclParseIpData: Bad host/IP: 'www.rexroth-mecman.de

Contents of the file intranet_definition:

.rexroth.de
.mannesmann.de
.rexroth-mecman.de
192.71.221.29
195.233.149.75
145.230.129.173
192.125.140.149
www.sachs-ag.de
193.25.152.172
www.rexroth-mecman.de
192.125.129.54

How can I define our intranet?

regards

Werner Rost, KIR
Mannesmann Boge GmbH

Tel.: 0228/3825 420
Fax: 0228/3825 398

-----------------------------------------------------------
This Mail has been checked for Viruses
Attention: Encrypted Mails can NOT be checked !

***

Diese Mail wurde auf Viren ueberprueft
Hinweis: Verschluesselte Mails koennen NICHT geprueft werden!
------------------------------------------------------------
Received on Mon Apr 30 2001 - 09:25:46 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:40 MST