Re: bind squid to interface
* Michael West <[EMAIL PROTECTED]> [26-03-03 15:16]: > I would like to bind squid to a specific interface. Look at /etc/squid.conf: # NETWORK OPTIONS # - # TAG: http_port # Usage: port # hostname:port # 1.2.3.4:port # # The socket addresses where Squid will listen for HTTP client # requests. You may specify multiple socket addresses. # There are three forms: port alone, hostname with port, and # IP address with port. If you specify a hostname or IP # address, then Squid binds the socket to that specific # address. This replaces the old 'tcp_incoming_address' # option. Most likely, you do not need to bind to a specific # address, so you can use the port number alone. # # The default port number is 3128. # # If you are running Squid in accelerator mode, then you # probably want to listen on port 80 also, or instead. # # The -a command line option will override the *first* port # number listed here. That option will NOT override an IP # address, however. # # You may specify multiple socket addresses on multiple lines. # #Default: http_port 127.0.0.1:3128 HTH Jens
Re: bind squid to interface
Michael West wrote: > > I would like to bind squid to a specific interface. [...] > What am I doing wrong with xinetd? What other ways are there to make > squid bind to an interface? IIRC there used to be an option "tcp_incoming_adress" in /etc/squid.conf, but I think lately it was changed to be included in the "http_port" option. HTH Frank
Re: bind squid to interface
## Michael West ([EMAIL PROTECTED]): > I would like to bind squid to a specific interface. http_port hostname:port http_port ip:port http_port port It's documented. Regards, cmt -- Spare Space
Re: bind squid to interface
On Wednesday 26 March 2003 15:16, Michael West wrote: Hi there, how about : http_port xxx.xxx.xxx.xxx:8000 tcp_outgoing_address xxx.xxx.xxx.xxx udp_outgoing_address xxx.xxx.xxx.xxx in the squid config and run squid as daemon ? Michi > I would like to bind squid to a specific interface. > > I thought the easy way to do this would be with xinetd, but I get: > > Mar 26 06:05:09 localhost squid: Cannot open HTTP Port > Mar 26 06:05:49 localhost last message repeated 10 times > > When I try to use it. Normally this would mean there is a squid process > already running, but there is no other squid process. > > service squid > { > disable = no > socket_type = stream > wait= no > user= root > bind= 192.0.0.1 > server = /usr/sbin/squid > server_args= -N -D -YC -u0 > } > > What am I doing wrong with xinetd? What other ways are there to make > squid bind to an interface? > > ~Michael -- Bisping & Bisping GmbH & Co. KG Michael Streb internet and network [EMAIL PROTECTED] Spitalstrasse 21-24-26 phone +49-9123-9740-630 D-91207 Lauf a. d. Pegnitzfax +49-9123-9740-97 http://photo.bisping.de *http://bisping.de *http://lauf.de
Re: bind squid to interface
Michael West wrote: > > I would like to bind squid to a specific interface. [...] > What am I doing wrong with xinetd? What other ways are there to make > squid bind to an interface? IIRC there used to be an option "tcp_incoming_adress" in /etc/squid.conf, but I think lately it was changed to be included in the "http_port" option. HTH Frank -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: bind squid to interface
* Michael West <[EMAIL PROTECTED]> [26-03-03 15:16]: > I would like to bind squid to a specific interface. Look at /etc/squid.conf: # NETWORK OPTIONS # - # TAG: http_port # Usage: port # hostname:port # 1.2.3.4:port # # The socket addresses where Squid will listen for HTTP client # requests. You may specify multiple socket addresses. # There are three forms: port alone, hostname with port, and # IP address with port. If you specify a hostname or IP # address, then Squid binds the socket to that specific # address. This replaces the old 'tcp_incoming_address' # option. Most likely, you do not need to bind to a specific # address, so you can use the port number alone. # # The default port number is 3128. # # If you are running Squid in accelerator mode, then you # probably want to listen on port 80 also, or instead. # # The -a command line option will override the *first* port # number listed here. That option will NOT override an IP # address, however. # # You may specify multiple socket addresses on multiple lines. # #Default: http_port 127.0.0.1:3128 HTH Jens -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: bind squid to interface
## Michael West ([EMAIL PROTECTED]): > I would like to bind squid to a specific interface. http_port hostname:port http_port ip:port http_port port It's documented. Regards, cmt -- Spare Space -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: bind squid to interface
On Wednesday 26 March 2003 15:16, Michael West wrote: Hi there, how about : http_port xxx.xxx.xxx.xxx:8000 tcp_outgoing_address xxx.xxx.xxx.xxx udp_outgoing_address xxx.xxx.xxx.xxx in the squid config and run squid as daemon ? Michi > I would like to bind squid to a specific interface. > > I thought the easy way to do this would be with xinetd, but I get: > > Mar 26 06:05:09 localhost squid: Cannot open HTTP Port > Mar 26 06:05:49 localhost last message repeated 10 times > > When I try to use it. Normally this would mean there is a squid process > already running, but there is no other squid process. > > service squid > { > disable = no > socket_type = stream > wait= no > user= root > bind= 192.0.0.1 > server = /usr/sbin/squid > server_args= -N -D -YC -u0 > } > > What am I doing wrong with xinetd? What other ways are there to make > squid bind to an interface? > > ~Michael -- Bisping & Bisping GmbH & Co. KG Michael Streb internet and network [EMAIL PROTECTED] Spitalstrasse 21-24-26 phone +49-9123-9740-630 D-91207 Lauf a. d. Pegnitzfax +49-9123-9740-97 http://photo.bisping.de *http://bisping.de *http://lauf.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]