Online Book Reader

Home Category

Squid_ The Definitive Guide - Duane Wessels [202]

By Root 1950 0
the Appendix A section). If you don't like Squid's icons, you can use your own, as long as the filenames found in mime.conf exist in the icon_directory directory.

Syntax

icon_directory directory

Default

icon_directory $prefix/share/icons

Example

icon_directory /usr/local/squid/share/myicons

Related

error_directory, mime_table

Name

error_directory

Synopsis

This directive specifies the location of Squid's error message files. If you want to customize the error messages, you should put them into a nondefault directory. Otherwise, they may be overwritten if you run make install in the future.

Syntax

error_directory directory

Default

error_directory $prefix/share/errors/$language

Example

error_directory /usr/local/squid/share/my_errors

Related

icon_directory, err_html_text, deny_info

Name

maximum_single_addr_tries

Synopsis

This directive places a limit on the number of times Squid attempts to connect to a single IP address when forwarding a request. It can't be set higher than 10.

Syntax

maximum_single_addr_tries N

Default

maximum_single_addr_tries 3

Example

maximum_single_addr_tries 5

Related

connect_timeout

Name

snmp_port

Synopsis

This is the UDP port to which Squid listens for SNMP queries. SNMP support requires the —enable-snmp option to ./configure. Set the SNMP port to 0 if Squid shouldn't accept any SNMP messages.

Syntax

snmp_port port-number

Default

snmp_port 3401

Example

snmp_port 3161

Related

snmp_access, snmp_incoming_address, snmp_outgoing_address

Name

snmp_access

Synopsis

The snmp_access rules apply to SNMP queries. Although this is a standard Squid access list rule, many ACL elements are undefined for SNMP. In fact, you can only use src and snmp_community ACLs.

Syntax

snmp_access allow|deny [!]ACLname ...

Default

No default (all queries denied by default)

Example

acl SNMPPasswd snmp_community sekrit

acl SNMPClients src 172.16.1.2 10.0.5.1

acl All src 0/0

snmp_access allow SNMPClients SNMPPasswd

snmp_access deny All

Related

acl, snmp_port

Name

snmp_incoming_address

Synopsis

By default, Squid opens the SNMP socket to receive packets on all local interfaces. You can use this directive to bind the SNMP socket to a particular interface.

Syntax

snmp_incoming_address ip-address

Default

snmp_incoming_address 0.0.0.0

Example

snmp_incoming_address 172.16.0.1

Related

snmp_port, snmp_access, udp_incoming_address

Name

snmp_outgoing_address

Synopsis

Squid uses a single SNMP socket by default. If you set this directive, however, Squid opens a separate socket for SNMP replies only. In most cases, you shouldn't use this directive because SNMP queries should come from the same address to which the queries are sent.

Syntax

snmp_outgoing_address ip-address

Default

No default

Example

snmp_outgoing_address 192.168.5.5

Related

snmp_port, snmp_access, udp_outgoing_address

Name

as_whois_server

Synopsis

This is the hostname of the whois server Squid uses to resolve Autonomous System numbers into IP networks. You only need to worry about this if you use AS-based ACLs (src_as, dst_as).

The default server, whois.ra.net, seems to work relatively well. It may be too far away (and unreliable) for non-U.S. users. If you know of a local whois server that returns AS queries, feel free to use it instead.

Syntax

as_whois_server hostname

Default

as_whois_server whois.ra.net

Example

as_whois_server whois.host.name

Related

acl

Name

wccp_router

Synopsis

This directive defines Squid's home router for WCCP. When you enter an IP address (or hostname) here, Squid sends WCCP "Here I Am" messages to the router. See Section 9.3.4 for more information.

Routers, by definition, have multiple network interfaces. You should probably use the address of the interface that is connected, or has the route, to Squid. Squid ignores WCCP messages that don't have the wccp_router value as their source address.

Syntax

wccp_router ip-address

Default

No default

Return Main Page Previous Page Next Page

®Online Book Reader