Hi guys,


        I have configured squid server on two nodes. my requirement is to have a

squid failover using RHCS.



         RHCS is also configured with a virtual ip monitoring both the servers.

virtual ip :- 192.168.1.100



Now the issue is that my virtual ip is configured on all browsers with

port 8080 for

proxy purpose. ie:192.168.1.100:8080



now the request coming from browsers with virtual ip and port number 8080 are

properly directed to a active server but the request going out from

the active squid

server doesn't takes virtual ip it takes its on eth0 ip ie:192.168.1.1 of Active

server and hits firewall due to which firewall blocks the ip and hence

no page is

displayed.



so what i have did was i have configured iptables postrouting which nats all the

outgoing request from eth0 to virtual ip.



#iptables -t nat -A POSTROUTING -s 192.168.1.1 -o eth0  -j SNAT --to-

192.168.1.100



After this rule am able to receive web pages.



but cluster doesn't works at all. what i mean is if i try to shutdown

active server

the virtual ip doesn't shifts to passive server.



note:- before applying iptables the cluster works fine but cat get webpages as

mention earlies.



please help guys if any body have any solution or have configured RHCS

for the same.

Nilesh




      Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. 
http://in.overview.mail.yahoo.com/photos

[Non-text portions of this message have been removed]

Reply via email to