Quote:
Originally Posted by shahidbashir7861
tcp_outgoing_address option in squid but that is also not working for me
|
Yes it should work; How did you set it up btw?
@ Your setup : So you must be having two adsl/broadband connections & both of them are terminated at a single box & instead of doing a load balancing with them; you want both of them to serve two different client-sets sepearately.
RIGHT ???
@ two proxy setup : Yes you can do that; untill & unless they are maintaing two different heirarchy for their respective files; it shouldnt be any problem. Though with
tcp_outgoing_address option.. you really do not need two different squid installations at a single box. A single squid with
tcp_outgoing_address interface1-ip CLIENT-SET1
tcp_outgoing_address interface2-ip CLIENT-SET2
However the problem you'll face here is that you cant have two default gateways over @ your box & hence the traffic to interface(without-gateway)*-ip would not go out because of the lack of a gateway-ip at it.
Hey... shahid.. with the help of MARKING packets on base of client-sets; & SNATing (iptables) we can achieve what you are looking for. (this doesnt require squid in b/w)
For one client-set we'll do a SNATing (pass onto default gateway)
For other client-set we'll set marks & then with iprule & ip route we'll pass on them to other gateway.
Thats it !!!