Re: [squid-users] What is the reason & how to solve this

From: David Rodríguez Fernández <davidrf_at_gmail.com>
Date: Mon, 2 Mar 2009 12:17:54 +0100

I think I don't understand you.

You says that the traffic from squid server to Internet, the source
IP, is always from 192.168.1.1?

This is normal, because the server only have one route to internet and
this route specifies only one source IP. The destination IP to squid
connection is not relevant in this case, because the traffic is
generated inside the squid server and hasn't relation with the
connection to squid.

On Mon, Mar 2, 2009 at 11:15 AM, Shekhar Gupta <shekharsahab14_at_gmail.com> wrote:
> I got this point however the source IP should be the one which is
> specified on the interface , then why all the packets are taking the
> previous IP as source IP ...
>
>
> On Mon, Mar 2, 2009 at 3:29 PM, David Rodríguez Fernández
> <davidrf_at_gmail.com> wrote:
>> If you put two nic with 2 IP from the same network the kernel can't
>> know how route. If you need two ip from the same network, you can add
>> the second IP as an alias on the same nic.
>>
>> On Mon, Mar 2, 2009 at 10:52 AM, Shekhar Gupta <shekharsahab14_at_gmail.com> wrote:
>>> I didn't get this , why can't ?
>>>
>>> On Mon, Mar 2, 2009 at 2:27 PM, David Rodríguez Fernández
>>> <davidrf_at_gmail.com> wrote:
>>>> You can't have two IP from the same network on different nic.
>>>>
>>>> On Mon, Mar 2, 2009 at 9:11 AM, Shekhar Gupta <shekharsahab14_at_gmail.com> wrote:
>>>>>
>>>>> I am running 2 squid instance on 2 Diffrent IP address on a Single server .
>>>>>
>>>>> NIC1 - 192.168.1.1:8080 installed to /squid1/
>>>>> NIC2 - 192.168.1.2:8080 installed to /squid2/
>>>>>
>>>>> When i am specifying 192.168.1.1:8080 it takes this IP and go to
>>>>> Internet whcih is Fine
>>>>> When i am specifying 192.168.1.2:8080 it still takes (192.168.1.1) and
>>>>> go to internet ?????? what is wrong why is this happening .
>>>>
>>>
>>
>
Received on Mon Mar 02 2009 - 11:18:07 MST

This archive was generated by hypermail 2.2.0 : Mon Mar 02 2009 - 12:00:02 MST