hello guys,
i am working to install two squid proxies on one same machine . ( that would not be difficult part i think ) . i have two different internet connections . and i want that if i install two proxies (say squid1 and squid2) the requests to internet from squid1 must be routed throug interface1 and request from squid2 routed through interface2. I have slight idea of working on iptables and routing commands but not able to implement the above scenario . please send me your suggestions in this regard.
regards
multiple squid proxies routing on different intenet intfaces
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Dear zafar466,
Salam,
Below link might help you if you can understand.
FYI, http://www.linuxpakistan.net/forum2x/vi ... t=15#19849
Best Regards.
Salam,
Below link might help you if you can understand.
FYI, http://www.linuxpakistan.net/forum2x/vi ... t=15#19849
Best Regards.
Farrukh Ahmed
-
- Battalion Quarter Master Havaldaar
- Posts: 237
- Joined: Tue Dec 13, 2005 10:47 pm
- Location: JNB, SA
- Contact:
Hi,zafar466 wrote:thanks for your attention llinuxfreak .
infact i want to tell squid to send its internet request from a specified interface . so if two squids ( or suppose any two applications) are running i will instruct them to send their packets from two different internet connections .
is it possible
regards
One solution is to take traffic on different ports that will help you to redirect to required outgoing-interface, other use seperate subnets in your LAN for each outgoing-interface and do simple redirection on source address base iptables rules.
thanks
Nayyar Ahmad
RHCE, CCNA, OCP DBA
nayyares aT fedoraproject DoT org
blogs: nayyares.blogspot.com
RHCE, CCNA, OCP DBA
nayyares aT fedoraproject DoT org
blogs: nayyares.blogspot.com
thanks for your reply nayyares
can i tell squid to use specific source ports when it sends its request to internet .
i think if we define source ports for squid we will use snat of iptables and this way we will be able to send the traffice from desired interface .
waiting for your reply guys
regards
can i tell squid to use specific source ports when it sends its request to internet .
i think if we define source ports for squid we will use snat of iptables and this way we will be able to send the traffice from desired interface .
waiting for your reply guys
regards
tcp_outgoing_address
just learn howto use
tcp_outgoing_address
in squid.conf.
tcp_outgoing_address
in squid.conf.
dear zafar466,
newbie's answer will help you in this regard for your help here is an example
let se you are your are getting ips like
ISP1 ***.***.59.5
ISP2 ***.59.**.6
just add
1st squid.conf
http_port 8080
tcp_outgoing_address ***.***.59.5
2nd squid.conf
http_port 3128
tcp_outgoing_address ***.59.**.6
in your senerio running 2 squids will help your to redirect trafic as clients based
newbie's answer will help you in this regard for your help here is an example
let se you are your are getting ips like
ISP1 ***.***.59.5
ISP2 ***.59.**.6
just add
1st squid.conf
http_port 8080
tcp_outgoing_address ***.***.59.5
2nd squid.conf
http_port 3128
tcp_outgoing_address ***.59.**.6
in your senerio running 2 squids will help your to redirect trafic as clients based