Re: [squid-users] Multiple Proxy addresses on the same Server

From: Alaa Ayad - InternetVSAT.com <alaa@dont-contact.us>
Date: Tue, 13 Mar 2007 22:17:23 +0200

Hi Alex,

I did the command:
iptables -t nat -A POSTROUTING -p tcp --dport 80 -j SNAT --to-source
zzz.zzz.zzz.zzz

directly on SSH terminal.
What is happining now is that I'm getting the reply for IP: zzz.zzz.zzz.zzz
even if I used the IP Addresses: xxx.xxx.xxx.xxx or yyy.yyy.yyy.yyy

----- Original Message -----
From: "Alexandre Correa" <alexandre@sabbath.com.br>
To: "Alaa Ayad - InternetVSAT.com" <alaa@internetvsat.com>
Sent: Tuesday, March 13, 2007 9:52 PM
Subject: Re: [squid-users] Multiple Proxy addresses on the same Server

> not in the squid.conf
>
> its a firewall rule for iptables !!!
>
> just execute on the console...
>
> if works fine for you... you can add this line no /etc/rc.d/rc.local
> to start when server restart !
>
> regards !
>
> On 3/13/07, Alaa Ayad - InternetVSAT.com <alaa@internetvsat.com> wrote:
>> Do you mean I have to add the lines below in the squid.conf or
>> resolv.conf :
>> iptables -t nat -A POSTROUTING -p tcp --dport 80 -j SNAT --to-source
>> zzz.zzz.zzz.zzz
>> yyy.yyy.yyy.yyy
>>
>> I tried that but it gives error for those lines !
>>
>> ----- Original Message -----
>> From: "Alexandre Correa" <alexandre@sabbath.com.br>
>> To: "Alaa Ayad - InternetVSAT.com" <alaa@internetvsat.com>
>> Sent: Tuesday, March 13, 2007 6:25 PM
>> Subject: Re: [squid-users] Multiple Proxy addresses on the same Server
>>
>>
>> > with iptables you can !!
>> >
>> > iptables -t nat -A POSTROUTING -p tcp --dport 80 -j SNAT --to-source
>> > zzz.zzz.zzz.zzz
>> >
>> > On 3/13/07, Alaa Ayad - InternetVSAT.com <alaa@internetvsat.com> wrote:
>> >> I was wondering if there is another way allow me to use the other IP
>> >> addresses of the server and getting the reply as per used IP address
>> >> in
>> >> the
>> >> browser ..
>> >>
>> >>
>> >> Regards,
>> >> Aldalil
>> >>
>> >> ----- Original Message -----
>> >> From: "Alexandre Correa" <alexandre@sabbath.com.br>
>> >> To: <alaa@internetvsat.com>
>> >> Sent: Tuesday, March 13, 2007 11:55 AM
>> >> Subject: Re: [squid-users] Multiple Proxy addresses on the same Server
>> >>
>> >>
>> >> > tcp_outgoing_address
>> >> >
>> >> > ex:
>> >> >
>> >> > acl home_clients src 10.0.0.0/8
>> >> > acl corporate_clients src 192.168.0.0/23
>> >> >
>> >> > tcp_outgoing_address yyy.yyy.yyy.yyy home_clients
>> >> > tcp_outgoing_address zzz.zzz.zzz.zzz corporate_clients
>> >> >
>> >> > regards.
>> >> >
>> >> > On 3/13/07, alaa@internetvsat.com <alaa@internetvsat.com> wrote:
>> >> >> I've just installed and configured the latest stable release of
>> >> >> squid
>> >> >> 2.6,
>> >> >> Squid is working Fine on Fedora now .. BUT I have small problem.
>> >> >>
>> >> >> I have 3 IP addresses on the same server, x.x.x.x is the Main
>> >> >> Server
>> >> >> IP,
>> >> >> y.y.y.y & z.z.z.z are the additional IP addresses.
>> >> >>
>> >> >> Using any of these IP addresses is working fine.
>> >> >>
>> >> >> The problem is that when I use x.x.x.x , y.y.y.y & z.z.z.z as the
>> >> >> proxy
>> >> >> address I get a reply that I'm using the main server IP which is:
>> >> >> x.x.x.x
>> >> >>
>> >> >> What I need is when I use y.y.y.y I get a reply that I'm using
>> >> >> y.y.y.y
>> >> >> and
>> >> >> same for z.z.z.z
>> >> >>
>> >> >> Any one have the solution ?
>> >> >>
>> >> >> Best Regards,
>> >> >> Aldalil
>>
>>
>
>
> --
>
> Sds.
> Alexandre J. Correa
> Onda Internet / OPinguim.net
> http://www.ondainternet.com.br
> http://www.opinguim.net
>
> __________ NOD32 2112 (20070313) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
Received on Tue Mar 13 2007 - 14:20:35 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Mar 31 2007 - 13:00:02 MDT