Skip to contentSkip to conversation

Squid only on eth1

DISCUSSION [email protected] 3 participants 7 messages Jan 26, 2004 – Jan 28, 2004

lore
Share & tools
lore
#1 lore raw

i don't remember exactly how, but, i know that you can setup squid to "listen" on specifics ips/ip-ranges/subnets. Many times i used webmin to setup squid, if you need to set it up quick, it is a good choice.

have luck !
--
Facundo Suárez
Neuquén - Argentina
FDSoft
mail y jabber: [email protected]
[email protected]

----- Original Message -----
From: <[email protected]>
To: "linux-newbie" <[email protected]>
Sent: Monday, January 26, 2004 3:01 PM
Subject: Squid only on eth1

| Hi:
|
| I have 2 eth devices in my Linux box, I want that all squid traffic go
throw
| eth1 an not eth0, how do I configure it?
|
| tks for your time...
|
| -
| To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
| the body of a message to [email protected]
| More majordomo info at  http://vger.kernel.org/majordomo-info.html
| Please read the FAQ at http://www.linux-learn.org/faqs
|

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
In reply to [email protected]
Quoted 3 lines

Hi:

I have 2 eth devices in my Linux box, I want that all squid traffic go

throw

Quoted 2 lines

eth1 an not eth0, how do I configure it?

If they have seperate IP addresses you can force squid to use a specific IP address in the squid.conf file. Look at the http_port config option and specify an IP, i.e. http_port 10.0.0.5:3128

Regards

James

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw

It works, but one more, now it takes much time (close a minute) to get response from proxy, here are all info I think you would need...

# nmap -sS XXX.XXX.XXX.XXX -p 8080 

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
The 1 scanned port on (eth0) is: closed

Nmap run completed -- 1 IP address (1 host up) scanned in 21 seconds

# nmap -sS XXX.XXX.XXX.XXX -p 8080 

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on (eth1):

Port       State       Service
8080/tcp   open        http-proxy              

Nmap run completed -- 1 IP address (1 host up) scanned in 21 seconds

# echo $http_proxy
http://localhost:8080/
# wget www.tldp.com
--13:44:09--  http://www.tldp.com/
           => `index.html'
Resolving localhost... done.
Connecting to localhost[127.0.0.1]:8080... failed: Connection refused.
# echo $http_proxy
http://eth1:8080/
# wget www.ibm.com
--13:48:57--  http://www.ibm.com/
           => `index.html.4'
Connecting to eth1:8080... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location: http://www.ibm.com/us/ [following]
--13:49:44--  http://www.ibm.com/us/
           => `index.html.4'
Connecting to eth1:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 27,087 [text/html]

100%[====================================>] 27,087 5.02K/s ETA
00:00

13:49:51 (5.02 KB/s) - `index.html.4' saved [27087/27087]

$>-- Mensaje Original --
$>From: "James Turnbull" <[email protected]>
$>To: "linux-newbie" <[email protected]>
$>Subject: Re: Squid only on eth1
$>Date: Tue, 27 Jan 2004 13:50:57 +1100
$>
$>
$>> Hi:

Quoted 2 lines

I have 2 eth devices in my Linux box, I want that all squid traffic go

throw

Quoted 2 lines

eth1 an not eth0, how do I configure it?

If they have seperate IP addresses you can force squid to use a specific IP
address in the squid.conf file. Lo
$>k at the http_port config option and
specify an IP, i.e. http_port 10.0.0.5:3128

Regards

James

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo
$>info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#4 lore raw
Quoted 2 lines · [email protected] wrote:

It works, but one more, now it takes much time (close a minute) to get response from proxy, here are all info I think you would need...

There are far too many variables to determine why this could be happening and you have not provided enough information. I'd probably need to look at your squid.conf. What OS is it? What is the spec of the machine you're running on? What version of squid? What sort of connection to the Internet do you have and it's speed?

Quoted 8 lines
# echo $http_proxy
http://localhost:8080/
# wget www.tldp.com
--13:44:09--  http://www.tldp.com/
           => `index.html'
Resolving localhost... done.
Connecting to localhost[127.0.0.1]:8080... failed: Connection refused.

Confused as to why this is here - this is going to be rejected because squid is only running on eth1?

Quoted 11 lines
# wget www.ibm.com
--13:48:57--  http://www.ibm.com/
           => `index.html.4'
Connecting to eth1:8080... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location: http://www.ibm.com/us/ [following]
--13:49:44--  http://www.ibm.com/us/
           => `index.html.4'
Connecting to eth1:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 27,087 [text/html]

I can see the time being taken but this could also be the remote site or your link?

Can I suggest you try the Squid FAQ and/or the Usenet group and mailing list. All of these can be found on the squid website -
http://www.squid-cache.org/

Regards

James

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#5 lore raw

Here is the information you need:
My machine is Pentium 400Mhz - 128 MB RAM

$ uname -a
Linux naboo 2.4.20-8 #1 Thu Mar 13 16:42:56 EST 2003 i586 i586 i386 GNU/Linux
$ rpm -q squid
squid-2.5.STABLE1-2

My Internet connection is a T1 maybe more...

$>-- Mensaje Original --
$>From: "James Turnbull" <[email protected]>
$>To: <[email protected]>, <[email protected]>
$>Subject: Re: Squid only on eth1
$>Date: Wed, 28 Jan 2004 09:24:59 +1100
$>
$>

Quoted 2 lines · $>[email protected] wrote:

It works, but one more, now it takes much time (close a minute) to get response from proxy, here are all info I think you would need...

There are far too many variables to determine why this could be happening and y
$>u have not provided enough information. I'd probably need to look at your squid.conf. What OS is it? What is the spec of the machine you're running on? What version of squid? What sort of connection to the Internet do you have and it's speed?

$>> # echo $http_proxy

Quoted 7 lines

http://localhost:8080/

# wget www.tldp.com
--13:44:09--  http://www.tldp.com/
           => `index.html'
Resolving localhost... done.
Connecting to localhost[127.0.0.1]:8080... failed: Connection refused.

Co
$>fused as to why this is here - this is going to be rejected because squid is only running on eth1?

Quoted 5 lines
# wget www.ibm.com
--13:48:57--  http://www.ibm.com/
           => `index.html.4'
Connecting to eth1:8080... connected.
Proxy request s

$>nt, awaiting response... 302 Moved Temporarily

Quoted 5 lines

Location: http://www.ibm.com/us/ [following]
--13:49:44-- http://www.ibm.com/us/

           => `index.html.4'

Connecting to eth1:8080... connected.
Proxy request sent, awaiting response...

$>00 OK

Quoted 1 line

Length: 27,087 [text/html]

I can see the time being taken but this could also be the remote site or your link?

Can I suggest you try the Squid FAQ and/or the Usenet group and mailing list. All of these can be found on the squid websit
$> -
http://www.squid-cache.org/

Regards

James

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
$>
Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#6 lore raw
Quoted 11 lines

Here is the information you need:
My machine is Pentium 400Mhz - 128 MB RAM

$ uname -a
Linux naboo 2.4.20-8 #1 Thu Mar 13 16:42:56 EST 2003 i586 i586 i386
GNU/Linux
$ rpm -q squid
squid-2.5.STABLE1-2

My Internet connection is a T1 maybe more...

Hi

When you asked the previous question about limiting squid to one interface I provided a fairly simple - a RTFM simple - answer. As to your broader problems squid is a complex beastie. Without digging into your config (especially your squid.conf) and your network setup I can't explain why you are getting 60 second + delays from squid. As I recommended I suggest you try the Squid FAQ and mailing list on http://www.squid-cache.org/

Regards

James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs