LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Squid to configure with these, two isp through two router and each has pri & sec DNS (https://www.linuxquestions.org/questions/linux-newbie-8/squid-to-configure-with-these-two-isp-through-two-router-and-each-has-pri-and-sec-dns-722874/)

rambca 05-01-2009 02:27 AM

Squid to configure with these, two isp through two router and each has pri & sec DNS
 
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?

acid_kewpie 05-02-2009 03:01 PM

Please check lartc.org chapter 4. Note that this doesn't need to relate to squid at all, just base level IP routing.

rambca 05-11-2009 11:59 PM

multiple isp connection
 
Quote:

Originally Posted by acid_kewpie (Post 3527948)
Please check lartc.org chapter 4. Note that this doesn't need to relate to squid at all, just base level IP routing.

where i have to configure DNS IP numbers. In dns tab, I can configure only one isp provider(pri & Alternative). there is no other option. In windoes each adopter has separate configuration. so we can configure each isp's gateway and dns.

acid_kewpie 05-12-2009 04:12 AM

what "tab" would this be? DNS entries at system level just go in /etc/resolv.conf, as many as you want.

rambca 05-13-2009 03:24 AM

Quote:

Originally Posted by acid_kewpie (Post 3538004)
what "tab" would this be? DNS entries at system level just go in /etc/resolv.conf, as many as you want.

These settings i have to configure in fedora core 9.0 and squid proxy 3.0with stable 2.6.

etho -LAN
IP - 192.168.1.125/255.255.255.0

eth1 -WAN 1
IP - 192.168.1.124/255.255.255.0
Gateway(router1) - 192.168.1.1
DNS1(isp1) - 218.248.240.180
DNS2(isp1) - 218.248.240.79

eth2 - WAN2
IP - 192.168.1.123/255.255.255.0
Gateway(router2) - 192.168.1.2
DNS1(isp2) - 203.124.20.100
DNS2(isp2) - 203.124.16.100

Wan1 and WAN2 are having 2MBPS dedicated(Leased Line) bandwith. Currently i confgured wan1 only through squid proxy. eth2 has been disabled. Otherwise it wont work (through gui mode i can configure only two dns ip only -primary and alternate dns server)and there is no problem and working fine. when wan1 is failed, I have to change the dns (isp1) to (isp2) and enable the eth2 and disable the eth1 and restart the network service. then it will work fine(through isp2).

Normally two types of problem will occure in the internet line.
1. Line failed or disconnected.
2. DNS server failed (assume both(Primary and alternative dns server) will get failed).

now my questions are,
1.How can i configure fail over ( wan1(isp1) fails the traffic are automatically sent through WAN2(isp2) without manual operation)

2.if both isp are active, the traffic should be shared on both isp.

In Microsft windows XP professional each interface having separate dns entry and gateway entry. In linux each interface having separate gateway entry but dns entry is comman for all interface(i am talking about gui mode interface configuration).

I have to control the browsing and restricting adult websites. so that i have choosed linux with squid proxy server. I didnt configure or enable dns service. if required i will do it.

waiting for your valuable suggestion.

mandlikvivek 09-02-2009 07:16 AM

Use Ipcop firewall instead of fedora
Quote:

Originally Posted by rambca (Post 3539107)
These settings i have to configure in fedora core 9.0 and squid proxy 3.0with stable 2.6.

etho -LAN
IP - 192.168.1.125/255.255.255.0

eth1 -WAN 1
IP - 192.168.1.124/255.255.255.0
Gateway(router1) - 192.168.1.1
DNS1(isp1) - 218.248.240.180
DNS2(isp1) - 218.248.240.79

eth2 - WAN2
IP - 192.168.1.123/255.255.255.0
Gateway(router2) - 192.168.1.2
DNS1(isp2) - 203.124.20.100
DNS2(isp2) - 203.124.16.100

Wan1 and WAN2 are having 2MBPS dedicated(Leased Line) bandwith. Currently i confgured wan1 only through squid proxy. eth2 has been disabled. Otherwise it wont work (through gui mode i can configure only two dns ip only -primary and alternate dns server)and there is no problem and working fine. when wan1 is failed, I have to change the dns (isp1) to (isp2) and enable the eth2 and disable the eth1 and restart the network service. then it will work fine(through isp2).

Normally two types of problem will occure in the internet line.
1. Line failed or disconnected.
2. DNS server failed (assume both(Primary and alternative dns server) will get failed).

now my questions are,
1.How can i configure fail over ( wan1(isp1) fails the traffic are automatically sent through WAN2(isp2) without manual operation)

2.if both isp are active, the traffic should be shared on both isp.

In Microsft windows XP professional each interface having separate dns entry and gateway entry. In linux each interface having separate gateway entry but dns entry is comman for all interface(i am talking about gui mode interface configuration).

I have to control the browsing and restricting adult websites. so that i have choosed linux with squid proxy server. I didnt configure or enable dns service. if required i will do it.

waiting for your valuable suggestion.


sachin151080 09-04-2010 03:55 AM

two different ISP's DNS in one squid
 
hi,

i have two internet connection both have different dns
i want to configure both the isp's in squid like way if any
one of fail another will work without doing any mannual setting

i tried in linux putting both isp's dns at a time but squid not reconiging it, i have to put only one isp's dns at a time.


All times are GMT -5. The time now is 05:11 PM.