IP routing & Squid


 
Thread Tools Search this Thread
Special Forums IP Networking IP routing & Squid
# 1  
Old 11-02-2011
IP routing & Squid

Hello, I have a Squid Proxy Web content filtering three subnets, the matter is that each subnet has a separate gateway and with the implementation of the proxy, all traffic is routed to a single link. Any idea how to fix it?

thanks
# 2  
Old 11-02-2011
Because squid's a proxy, all squid retrievals originate on the host machine. With no way to differentiate between them, the same gateway is always used.

squid allows you to set the TOS of outgoing packets depending on the originating address of the request, though:

Code:
# example from squid.conf
acl normal_service_net src 10.0.0.0/255.255.255.0
acl good_service_net src 10.0.1.0/255.255.255.0
tcp_outgoing_tos 0x10 normal_service_net
tcp_outgoing_tos 0x20 good_service_net

Then you'd add routing policies to direct different TOSes into different gateways.
Code:
ip rule add tos 0x10 table conna
ip rule add tos 0x20 table connb

ip route add default via 192.168.1.1 table conna
ip route add default via 192.168.2.1 table connb

Modified from policy routing example
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 12-13-2011
I am having one HP ML350 server with 4 nic's and Fedora Linux 9.0 with squid 3.0 stable 2.6. we got two internet leased line connectivity. Both they have given gateways and thier own dns. So there are 2 gateway IP's, and 4 DNS IP's. I want to configure the squid server can access the internet through both ISP's simultaneously. and also , if one get failed, all the traffic send to other ISP. Normally the traffic should be shared on both ISP's. How can i Configure?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. IP Networking

squid proxy: one NIC for inbound & one NIC for outbound?

I am new in squid proxy. My question is how to (and if it's necessary) to set one NIC for inbound traffic (http requests) and one NIC for outbound traffic (http answers)? Thank you in advance! (4 Replies)
Discussion started by: aixlover
4 Replies

3. IP Networking

Squid vs iptables = no Squid access.log?

Hello, I have a pretty useless satellite link at home (far from any civilization), so I wanted to set up caching in order to speed things up. My Squid 2.6 runs "3128 transparent" and is set up quite well on a separate machine. I also have my dd-wrt router to move all port 80 traffic through... (0 Replies)
Discussion started by: theWojtek
0 Replies

4. UNIX for Dummies Questions & Answers

squid&elinks config

Hi guys, I need to restrict the HTTP traffic for yahoo.com(and all its sub-domains) for elinks but when i use ping to receive packages from it. I need to do that with squid and use dstdom_regex in /etc/squid/squid.conf ,and i need to configure proxy in /etc/elinks/elinks.conf. Can someone help... (2 Replies)
Discussion started by: G30
2 Replies

5. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

6. Shell Programming and Scripting

replace & with & xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

7. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

8. Linux

Squid upgrade & run help needed

dear frnds, i m very new linux environment & is looking to deploy squid proxy server using Fedora 9. but i do not know anything abt all this. i have installed fedora in default mode & it has squid already installed. now i want to upgrade the squid to current version. i tried to use yum to... (2 Replies)
Discussion started by: ondemandemails
2 Replies

9. IP Networking

internal routing & vpn

hi there. i got a vpn working. this is what happens: remote pc ----(vpn/INTERNET)----vpn server--(redirect)---webapp (internal network) real: 200.12.15.20 200.20.45.123 vpn: 10.8.0.2 10.8.0.1 internal: ... (0 Replies)
Discussion started by: wachichornia
0 Replies
Login or Register to Ask a Question