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@xxxxxxxxxxxxxx>
To: "Alaa Ayad - InternetVSAT.com" <alaa@xxxxxxxxxxxxxxxx>
Sent: Tuesday, March 13, 2007 9:52 PM
Subject: Re: 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@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx>
To: "Alaa Ayad - InternetVSAT.com" <alaa@xxxxxxxxxxxxxxxx>
Sent: Tuesday, March 13, 2007 6:25 PM
Subject: Re: 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@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx>
>> To: <alaa@xxxxxxxxxxxxxxxx>
>> Sent: Tuesday, March 13, 2007 11:55 AM
>> Subject: Re: 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@xxxxxxxxxxxxxxxx <alaa@xxxxxxxxxxxxxxxx> 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