Re: tcp_incomming - eth1 & eth2 - How ?

From: Michael Buchau <michael.buchau@dont-contact.us>
Date: Wed, 26 Apr 2000 18:03:50 +0200

Adam Jurkiewicz wrote:
>
> I've got squid on Linux with :
>
> Internet <--- eth0
> eth1 ---> local company #1 (192.168.1.0)
> eth2 ---> local company #2 (192.168.2.0)
>
> in squid.conf i've been trying :
>
> 1st step
> tcp_incoming_address 192.168.1.1
> tcp_incoming_address 192.168.2.1
> - only 192.168.2.1 was listening
>
> 2nd step
> tcp_incoming_adress 192.168.1.1 192.168.2.1
> - only 192.168.1.1 was listening
>
> The question is: how to make, that squid will be listening
> on both eth1 and eth2 ?
>
> thanks for any answers,
> Adam Jurkiewicz,
> AVC - Poznan, POLAND

Under the assumption that you are currently using Squid 2.2STABLE5:

Get and apply Henrik Nordstrom's current set of patches from

http://download.sourceforge.net/squid/squid-2.2.STABLE5-hno.20000202.snapshot.gz

Then rebuild and reinstall squid. The patch enables the http_port
statement in squid.conf to take multiple portnumber or
address:portnumber arguments. Squid will listen on all these
addresses/ports for client requests. In your case, that would be

http_port 192.168.1.1:3128 192.168.2.1:3128

Dont't forget to comment out tcp_incoming_address.

Mike

-- 
Michael Buchau  <Michael.Buchau@Erlangen.Netsurf.DE>  Erlangen, Germany
Received on Wed Apr 26 2000 - 10:09:52 MDT

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