How to Configure Multiple Routers(GateWays) in Squid Proxy Server.

s4starb4boy

Distinguished
Aug 6, 2010
24
0
18,510
Hello to All,

My thread's Subject is very straight, Let me explain scenario.

I've Three(3) DSL Modems (Internet Connections) Placed on different floors and plugged in different switches.

Floor-1 (4MB DSL Router IP=192.168.1.1)
Floor-2 (4MB DSL Router IP=192.168.2.1)
Floor-3 (4MB DSL Router IP=192.168.3.1)

I've total 100 Nodes (33 on each floor)
All nodes have IPv4 with this class 192.168.0.2,192.168.0.3,192.168.0.4......

Nodes on First floor have Gateway(192.168.1.1)
Nodes on Second floor have Gateway(192.168.2.1)
Nodes on Third floor have Gateway(192.168.3.1)

Note: There is not any Proxy Server Deployed at all.

what I want.....

I want to deploy Squid Proxy Server on First floor(IT-Department)

Problem I am facing now if for example on first floor DSL Router have problem then I manually have to reset the working gateway on all nodes one can imagine how frustrating is it, isn't it?I've recently joined this office and I want to deploy the Squid Proxy Server I want to know how can I set it up? how can I route the traffic towards Squid which is on First floor, how can I configure multiple gateways in it so that if one DSL Router by some reason stop working user should not face a trouble. All telephone lines which have DSL Internet can not be re rout to First Floor and there are different network switches in between them although all are accessible from first floor.but IT-DPT is on first floor that is why I want to rout all traffic to IT-DPT Please help me to set it up if possible. I know it is possible I've taken this challenge and need help from all of you. please.....

May be I missed some point please let me know if there is any. BTW I've successfully configured Proxy Server with one by one and it is working but I want to setup multiple GATEWAYS this is what where I am stuck and need help from you. Hope you would..

Regards,



 
You are likely going to have to make some major changes to the design of you network to make this work. You likely will need a actual router or you will have to use your "proxy" as the main router.

Most your issues sound like you need a load balancer. I would load pfsense on the machine and also load squid. pfsense is a free firewall but it also has load balancer capabilities. In this case you could run squid in transparent mode.

How exactly you get the gateways to this box is dependent on your infrastructure. If you have stupid switches you will need separate ports for each network on your device. Otherwise you can use 802.1q vlan trunks to create a virtual interface in the machine.

Be very careful you really for failure purpose need to run a pair of machines, if you run everything though 1 device and it fails you loose the building unlike now where you only lose one floor.
 

s4starb4boy

Distinguished
Aug 6, 2010
24
0
18,510


Thanks Buddy! your solution is so true I really Appreciate it.

Well I can't make any change in infrastructure if it was possible then it was so easy to manage. telephones lines cant be gather in IT-DPT, although it is integrated networks but I don't have three spare LINKS from the location where modem are placed, although each switch to switch route has two links but not each switch to one location(IT-DPT) :( very complex infrastructure. but I'll not give up and will continue op try and try again until succeeded. your solution and reservation are true.
ok buddy could you please let me know that how can we configure (setup) IPs of Different networks to communicate with different networks like we do in Windows Network>>>>>TCP/IP Setting>>>>Advance>>Add
192.168.1.1
192.168.2.1
192.168.3.1
I mean how we would do the same in Linux?