[squid-users] Squid server as transparent proxy and problem with Rapid Share

2009-03-14 Thread Azhar H. Chowdhury

Hi,

We are running ISP and have few cache+proxy servers running Squid as 
transparent. Lots of our clients have been
using site like rapidshare from where they download files/program without 
having  an account.


But  problem is that when a user trying to download off rapidshare it says 
his/her IP address (Squid server IP)
already downloading a file and to wait until it is finished or ask to come 
back after 30 mins.


How can we overcome this problem? How can we bypass totally rapidshare so 
rapidshare server can

see the clients IP as his/her own public IP not squid server's IP address?

Can any body help?

Cheers

Azhar


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[squid-users] Nameservers are operational but Squid cannot resolve

2009-03-14 Thread RM
A few days ago, Squid was working perfectly fine. I have neither made
changes to Squid nor any changes to system configuration files. In
fact, I have not even logged into the server since the problems arose.
Today, I am unable to visit websites while surfing through Squid. When
my web browser is configured to use the Squid proxy, I get the
username and password prompt as I should (I use ncsa_auth). However, I
then get the following error which appears to be DNS related:



The requested URL could not be retrieved



While trying to retrieve the URL: http://www.google.com/

The following error was encountered:

Unable to determine IP address from host name for www.google.com
The dnsserver returned:

Refused: The name server refuses to perform the specified operation.
This means that:

 The cache was not able to resolve the hostname presented in the URL.
 Check if the address is correct.
Your cache administrator is root.




My access.log shows the following entries:

1237099689.372 13 xx.xx.xx.xx TCP_HIT/301 546 GET
http://google.com/ myusername NONE/- text/html
1237099689.515 15 xx.xx.xx.xx TCP_MISS/503 1512 GET
http://www.google.com/ myusername DIRECT/www.google.com text/html

So it appears that the problem is DNS related, however, I am able to
resolve domain names with the same nameservers that Squid is using
when I ping google.com or other domains. I have also tried using other
nameservers which I have verified that work and Squid refused to
resolve domains to IP addresses.

Any help is appreciated!


[squid-users] Re: Nameservers are operational but Squid cannot resolve

2009-03-14 Thread RM
On Sat, Mar 14, 2009 at 3:44 PM, RM bearm...@gmail.com wrote:
 A few days ago, Squid was working perfectly fine. I have neither made
 changes to Squid nor any changes to system configuration files. In
 fact, I have not even logged into the server since the problems arose.
 Today, I am unable to visit websites while surfing through Squid. When
 my web browser is configured to use the Squid proxy, I get the
 username and password prompt as I should (I use ncsa_auth). However, I
 then get the following error which appears to be DNS related:



 The requested URL could not be retrieved

 

 While trying to retrieve the URL: http://www.google.com/

 The following error was encountered:

 Unable to determine IP address from host name for www.google.com
 The dnsserver returned:

 Refused: The name server refuses to perform the specified operation.
 This means that:

  The cache was not able to resolve the hostname presented in the URL.
  Check if the address is correct.
 Your cache administrator is root.




 My access.log shows the following entries:

 1237099689.372     13 xx.xx.xx.xx TCP_HIT/301 546 GET
 http://google.com/ myusername NONE/- text/html
 1237099689.515     15 xx.xx.xx.xx TCP_MISS/503 1512 GET
 http://www.google.com/ myusername DIRECT/www.google.com text/html

 So it appears that the problem is DNS related, however, I am able to
 resolve domain names with the same nameservers that Squid is using
 when I ping google.com or other domains. I have also tried using other
 nameservers which I have verified that work and Squid refused to
 resolve domains to IP addresses.

 Any help is appreciated!


Another thing I forgot to mention is that I have tried completely
disabling my IPTables firewall and the problem persisted.


Re: [squid-users] Squid server as transparent proxy and problem with Rapid Share

2009-03-14 Thread johan firdianto
Using TPROXY or bypass ip rapidshare from squid box by using iptables.

Johan

On Sat, Mar 14, 2009 at 3:38 PM, Azhar H. Chowdhury az...@citechco.net wrote:
 Hi,

 We are running ISP and have few cache+proxy servers running Squid as
 transparent. Lots of our clients have been
 using site like rapidshare from where they download files/program without
 having  an account.

 But  problem is that when a user trying to download off rapidshare it says
 his/her IP address (Squid server IP)
 already downloading a file and to wait until it is finished or ask to come
 back after 30 mins.

 How can we overcome this problem? How can we bypass totally rapidshare so
 rapidshare server can
 see the clients IP as his/her own public IP not squid server's IP address?

 Can any body help?

 Cheers

 Azhar


 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.




Re: [squid-users] Squid server as transparent proxy and problem with Rapid Share

2009-03-14 Thread Nyamul Hassan
One solution could be using TProxy, where the remote IPs get to see the IPs 
of your clients', instead of Squid's.  But, you'll need to assign real IPs 
to your clients for that.


Regards
HASSAN



- Original Message - 
From: Azhar H. Chowdhury az...@citechco.net

To: squid-users@squid-cache.org
Sent: Saturday, March 14, 2009 14:38
Subject: [squid-users] Squid server as transparent proxy and problem with 
Rapid Share




Hi,

We are running ISP and have few cache+proxy servers running Squid as 
transparent. Lots of our clients have been
using site like rapidshare from where they download files/program without 
having  an account.


But  problem is that when a user trying to download off rapidshare it says 
his/her IP address (Squid server IP)
already downloading a file and to wait until it is finished or ask to come 
back after 30 mins.


How can we overcome this problem? How can we bypass totally rapidshare so 
rapidshare server can

see the clients IP as his/her own public IP not squid server's IP address?

Can any body help?

Cheers

Azhar


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.






[squid-users] How to make Squid to cache JSP redirected pages?

2009-03-14 Thread fulan Peng
 Hi,
When I want to cache a Tomcat site which its index.jsp has a command
to redirect the browser to another pages, Squid is getting lost, the
browser shows the redirected page but the port number is wrong. Is
there any way to handle this situation? I am using Squid 3.0 and
setting up a reverse proxy.
Thanks!