LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2006, 09:58 PM   #1
LordHendrix
LQ Newbie
 
Registered: May 2006
Posts: 16

Rep: Reputation: 0
Squid Proxy Problem


Here is my diagram:

here is a link with gif diagram:

http://geocities.com/hendrixanova/diagram2.gif


Code:
     <internet>
          |
          |
{<Squid Proxy1 eth0> <192.168.1.1 eth1> }
                        |
                        |
              { <Squid proxy2 eth0> <192.168.2.1 eth1> }
                                           |
                                           |
                                       <client>
                                   (must use proxy  
                                 server 192.168.2.1:80)
The client now is using the the proxy setting
(192.168.1.1:80) to access internet. but my aim is i want to to use the setting 192.168.2.1:80 which is the second proxy server(squid) but it does not return any internet access. i have config the squid.conf(on second server) to allow all client to connect. what configuration will i do to the second proxy server to be act a real proxy server to the client. hope you can help me solve this problem. thanks in advance..

Last edited by LordHendrix; 05-31-2006 at 10:26 PM. Reason: diagram without /code
 
Old 06-01-2006, 12:45 AM   #2
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally Posted by LordHendrix
Here is my diagram:

here is a link with gif diagram:

http://geocities.com/hendrixanova/diagram2.gif


Code:
     <internet>
          |
          |
{<Squid Proxy1 eth0> <192.168.1.1 eth1> }
                        |
                        |
              { <Squid proxy2 eth0> <192.168.2.1 eth1> }
                                           |
                                           |
                                       <client>
                                   (must use proxy  
                                 server 192.168.2.1:80)
The client now is using the the proxy setting
(192.168.1.1:80) to access internet. but my aim is i want to to use the setting 192.168.2.1:80 which is the second proxy server(squid) but it does not return any internet access. i have config the squid.conf(on second server) to allow all client to connect. what configuration will i do to the second proxy server to be act a real proxy server to the client. hope you can help me solve this problem. thanks in advance..
What is the client network ip?? is it 192.168.1.xxx or 192.168.2.xxx ??
 
Old 06-01-2006, 01:09 AM   #3
LordHendrix
LQ Newbie
 
Registered: May 2006
Posts: 16

Original Poster
Rep: Reputation: 0
What is the client network ip?? is it 192.168.1.xxx or 192.168.2.xxx ??


the client network ip is 192.168.2.2 gateway is 192.168.2.1
 
Old 06-01-2006, 02:46 AM   #4
joseph
Member
 
Registered: Jul 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
Quote:
Originally Posted by LordHendrix
What is the client network ip?? is it 192.168.1.xxx or 192.168.2.xxx ??


the client network ip is 192.168.2.2 gateway is 192.168.2.1
So in your case u need something to route the trafic from your secondary proxy to your primary proxy, because both of your proxy is a totally different network so you need to configure a router that maybe can be a hardware or a software
 
Old 06-01-2006, 04:41 AM   #5
LordHendrix
LQ Newbie
 
Registered: May 2006
Posts: 16

Original Poster
Rep: Reputation: 0
no my first proxy and the second proxy are in the same network. but the second proxy has 2 NICs the 1st is connect to the first proxy and the second NIC to the client(that needs internet)

-the two proxy servers are same network (1st proxy)192.168.1.1 and (second)192.168.1.2

-the 3rd pc the client is 192.168.2.1

please see the GIF image Diagram above

Last edited by LordHendrix; 06-01-2006 at 04:49 AM.
 
Old 06-01-2006, 05:12 AM   #6
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
If i were you I would have done something like this.
In the second proxy i.e 192.168.2.1
I would have typed
route add default gw 192.168.1.1
Thats It. But that is a speculation. Give more info such as
1) Is the first proxy is connected directly to the internet
2) Is the first proxy acts as a NAT gateway
3) does it allow IPforwarding.

Regards
Manjunath
 
Old 06-01-2006, 09:23 PM   #7
LordHendrix
LQ Newbie
 
Registered: May 2006
Posts: 16

Original Poster
Rep: Reputation: 0
yah i have add its default gateway to 192.168.1.1 on the second proxy..

btw when i use the 192.168.1.1:80 on the third pc the(Client PC). it works and it has internet. but i want the i will be using 192.168.2.1 as its proxy server (the second proxy server.) because the second will be use less if i'll go directly to the 1st proxy server..


1) Is the first proxy is connected directly to the internet? yes it is. its http port is 80. and ip 192.168.1.1

it also allow ip forwarding.

and it does not acts as a nat.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 02:38 AM
squid proxy problem linuxboy_inside Linux - Networking 2 01-05-2006 12:17 AM
Squid Proxy Problem algates Linux - Enterprise 1 11-13-2005 07:31 AM
transparent proxy with squid problem philipph Linux - Networking 5 04-19-2004 10:03 AM
Squid proxy problem kelper Linux - Software 2 06-16-2003 02:39 AM


All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration