[squid-users] Re: [squid users] parent proxy authentication

2010-05-21 Thread jyothi
I am still facing the problem, can anybody help me out?


-- Forwarded Message ---
From: jyothi jyo...@cse.iitm.ac.in
To: Amos Jeffries squ...@treenet.co.nz
Sent: Sun, 16 May 2010 20:25:57 +0630
Subject: Re: [squid users] parent proxy authentication

On Mon, 17 May 2010 01:23:55 +1200, Amos Jeffries wrote
 jyothi wrote:
  Hi ,
  
   To forward the requests from squid proxy to my insti proxy I have added the
  following lines to the squid.conf file. (I am using ubutnu , squid version 
  2.7 and
  browser firefox).
  
  cache_peer 10.65.0.32 parent 3128 3130 default no-query login=PASS
  never_direct allow all
  
  
  But when I tried to open any web page in the browser it kept asking me for 
  username and
  password. If I click cancel it was showing the following messages.
  
  The following error was encountered:
  
   Cache Access Denied
  
  Sorry, you are not currently allowed to request:
 
http://www.google.com/
  
   from this cache until you have authenticated yourself.
  
  
  When I invoke squid from terminal with debug messages it was showing the 
  following
message.
  
  temporary disabling ( Proxy Authentication Required) digest from 10.65.0.32
 
 
 Ah this is a background cache digest request. Squid does not have any 
 credentials of its own to pass out. To prevent these you will need to 
 add the options:
no-digest no-netdb-exchange

These options I have tried, but still it didn't work for me.

 
  
  How do I get rid of this. I tried all possible ways that I could from 
  googling, but
  nothing was working. I have even tried putting my proxy username and 
  password in
  squid.conf file itself (with login=uname:passwd) but this also didn't work. 
  please I am
  so grateful to you if you can solve this problem of mine.
  
  Thanks
  Jyothi
 
 
 Hmm. What type of authentication is the parent requiring?

I didn't get your question, type of authentication in the sense?
 It needs a username and password, as it is provided by insti(proxy.iitm.ac.in) 
I don't
have much details of it.

 
 Amos
 -- 
 Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.3
--- End of Forwarded Message ---



[squid-users] trigger rediredt_url_program if there is a change in ip address

2010-05-20 Thread jyothi
Hello All,

I want to use the redirect_url_program when there is a change ip address of my 
system.
Is it possible to detect the change in ip using squid proxy? Let me put in 
other words,
Can squid proxy communicate to any of the system applications, lets say a shell 
script?

Thanks




Re: [squid-users] trigger rediredt_url_program if there is a change in ip address

2010-05-20 Thread jyothi
change in the system ip address. I am working on a project which detects the 
change in
the connection (wired to wireless and so on) and based on the change, I need to 
take a
appropriate action. Lets say I switch from WiFi to mobile broadband while 
browsing, I
want to get a lighter version of web page.


On Thu, 20 May 2010 11:13:47 +0200, Henrik Nordström wrote
 tor 2010-05-20 klockan 13:27 +0630 skrev jyothi:
 
  I want to use the redirect_url_program when there is a change ip address of 
  my system.
  Is it possible to detect the change in ip using squid proxy? Let me put in 
  other words,
  Can squid proxy communicate to any of the system applications, lets say a 
  shell script?
 
 IP of the Squid proxy, or IP of the client station?
 
 And for how long do you want Squid to use the url_rewrite_program? And
 why?
 
 Regards
 Henrik



Re: [squid-users] trigger rediredt_url_program if there is a change in ip address

2010-05-20 Thread jyothi
How often the squid.conf file is read by the browser? is it on every load of 
page?

On Fri, 21 May 2010 00:43:18 +1200, Amos Jeffries wrote
 jyothi wrote:
  Hello All,
  
  I want to use the redirect_url_program when there is a change ip address of 
  my system.
  Is it possible to detect the change in ip using squid proxy? Let me put in 
  other words,
  Can squid proxy communicate to any of the system applications, lets say a 
  shell script?
  
  Thanks
 
 
 There is a squid.conf option for Windows machines (only).
 
 On non-windows each network interface has hooks that triggers to run a 
 set of scripts. One of which can be a script to reconfigure Squid.
 
 Amos
 -- 
 Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.3



[squid-users] trigger rediredt_url_program if there is a change in ip address

2010-05-18 Thread jyothi
Hello All,

I want to use the redirect_url_program when there is a change ip address of my 
system.
Is it possible to detect the change in ip using squid proxy?


Thanks


Re: [squid-users] squid crashing while trying use url_rewrite_program

2010-05-17 Thread jyothi
Sorted out! Perl script was not set to executable permissions. 
But I am facing some other problem 
Forwarding requests to other proxy

cache_peer 10.65.0.32 parent 3128 3130 no-digest login=PASS

As suggested in FAQ I have added this line squid.conf. 10.65.0.32 needs 
authentication.
When I configure my browser with squid and forwarded requests my proxy the
authentication window keeps appearing, any idea what the problem might be?


On Mon, 17 May 2010 03:10:28 -0700 (PDT), John Doe wrote
 From: jyothi jyo...@cse.iitm.ac.in
   What happens when you run in manually as the proxy 
   user?   does it keep running until you abort it?
  Sorry I am new to this, run in manually as 
  the proxy user means?
 
 What happens if you run your script from the command line as the squid user?
 
 JD



Re: [squid-users] squid crashing while trying use url_rewrite_program

2010-05-16 Thread jyothi
On Mon, 17 May 2010 01:20:12 +1200, Amos Jeffries wrote
 jyothi wrote:
  Hi,
  
  I am using squid 2.7, I want to redirect my url www.google.com to 
  www.m.google.com. To
  do this I have tried adding this line in squid.conf  url rewrite_program
  /etc/squid/redirect.pl  and the redirect.pl file is as follows.
  
  #!/usr/bin/perl
  $|=1;
  while () {
  @X = split;
  $url = $X[0];
  if ($url =~ /^http:\/\/www\.google\.com/) {
  $url =~ s/google/m.google/;
  print $url\n;
  } else {
  print $url\n;
  }
  
  After adding the line in squid.conf if try to start to start squid it is 
  crashing with
  the following messages. I tried googling to figure out. But most of them 
  are used
  squidguard, I could not find the solution in FAQ. Kindly help me if I am 
  doing anything
  wrong. 
  
 snip
  2010/05/16 11:34:53| Ready to serve requests.
  2010/05/16 11:34:53| WARNING: url_rewriter #1 (FD 7) exited
  2010/05/16 11:34:53| WARNING: url_rewriter #2 (FD 8) exited
  2010/05/16 11:34:53| WARNING: url_rewriter #3 (FD 9) exited
  2010/05/16 11:34:53| Too few url_rewriter processes are running
  FATAL: The url_rewriter helpers are crashing too rapidly, need help!
 
 
 What happens when you run in manually as the proxy user?
 does it keep running until you abort it?
 
 Amos
 -- 
 Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.3


Sorry I am new to this, run in manually as the proxy user means?
It was not keep running, it was showing the error message and turning off.



Re: [squid-users] how do I ensure that my request is passing through squid proxy

2010-05-15 Thread jyothi
Thanks! I got your point. I have one more doubt, my institution proxy needs
authentication. When I configured my browser with squid proxy, it was asking me 
for
uname and password. when I enter my institution username and password it is not
accepting. When I saw in FAQ it shows how to authenticate for squid, now I have 
to
forward to other other proxy so how can I resolve this? ( means how my insti 
proxy
resolves the authentication when the request is coming from squid)? 

On Sat, 15 May 2010 18:14:30 +1200, Amos Jeffries wrote
 jyothi wrote:
  Thanks for the quick reply. I am using firefox, there I can only specify 
  one proxy (that
  is presently institution proxy), may be I don't know, could you please 
  elaborate?
 
 
 Perhapse I misunderstood you.
   You said you already read the FAQ titled How do I configure Squid 
 forward all requests to another proxy?
 
   That FAQ explains how to configure Squid to use the institution proxy.
 
 Your browser only needs to be configured for the one single proxy it is 
 talking to. Squid.
 
  
  On Fri, 14 May 2010 23:26:25 +1200, Amos Jeffries wrote
  jyothi wrote:
  Hi,
 
  I have a doubt, I am using a proxy enabled network (which is provided by 
  my
  institution).
  My browser is configured with the corresponding proxy in order to access 
  the web
pages.
  I want to use squid proxy in order to serve some of my needs. I can't 
  configure
browser
  with the squid as I need to my institution proxy to access the web. So 
  all my requests
  first should go to squid proxy then to the institution proxy. I did this 
  by
reading the
  faq (How do I configure Squid forward all requests to another proxy?). 
  But now my
doubt
  is how would I ensure that first my request is going to squid and then to 
  my insti
proxy
  (as my browser is not configured with the squid)?
 
  Since that Squid is using the Institution proxy you should configure 
  your browser to use the Squid.
 
  So you end up with this:
 Browser - Squid - Institution Proxy - Internet
 
 
 Amos
 -- 
 Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.3



Re: [squid-users] how do I ensure that my request is passing through squid proxy

2010-05-15 Thread jyothi
The following lines I have added to the squid.conf file

cache_peer 10.65.0.32 parent 3128 3128  no-query login=PASS
prefer_direct off

My institution proxy also connects to the port 3128. A window keeps appearing 
for
authentication even after entering the username and password.

Is there any thing with the lines I have added?




On Sat, 15 May 2010 19:28:12 +1200, Amos Jeffries wrote
 jyothi wrote:
  Thanks! I got your point. I have one more doubt, my institution proxy needs
  authentication. When I configured my browser with squid proxy, it was 
  asking me for
  uname and password. when I enter my institution username and password it is 
  not
  accepting. When I saw in FAQ it shows how to authenticate for squid, now I 
  have to
  forward to other other proxy so how can I resolve this? ( means how my 
  insti proxy
  resolves the authentication when the request is coming from squid)?
 
 The cache_peer option in squid.conf which points Squid to the 
 institution proxy will need to have the login=PASS (exact text) option 
 set.
 
  
  On Sat, 15 May 2010 18:14:30 +1200, Amos Jeffries wrote
  jyothi wrote:
  Thanks for the quick reply. I am using firefox, there I can only specify 
  one proxy
(that
  is presently institution proxy), may be I don't know, could you please 
  elaborate?
 
  Perhapse I misunderstood you.
You said you already read the FAQ titled How do I configure Squid 
  forward all requests to another proxy?
 
That FAQ explains how to configure Squid to use the institution proxy.
 
  Your browser only needs to be configured for the one single proxy it is 
  talking to. Squid.
 
  On Fri, 14 May 2010 23:26:25 +1200, Amos Jeffries wrote
  jyothi wrote:
  Hi,
 
  I have a doubt, I am using a proxy enabled network (which is provided 
  by my
  institution).
  My browser is configured with the corresponding proxy in order to 
  access the web
  pages.
  I want to use squid proxy in order to serve some of my needs. I can't 
  configure
  browser
  with the squid as I need to my institution proxy to access the web. So 
  all my
requests
  first should go to squid proxy then to the institution proxy. I did 
  this by
  reading the
  faq (How do I configure Squid forward all requests to another proxy?). 
  But now my
  doubt
  is how would I ensure that first my request is going to squid and then 
  to my insti
  proxy
  (as my browser is not configured with the squid)?
 
  Since that Squid is using the Institution proxy you should configure 
  your browser to use the Squid.
 
  So you end up with this:
 Browser - Squid - Institution Proxy - Internet
 
 Amos
 -- 
 Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.3



[squid-users] how do I ensure that my request is passing through squid proxy

2010-05-14 Thread jyothi
Hi,

I have a doubt, I am using a proxy enabled network (which is provided by my 
institution).
My browser is configured with the corresponding proxy in order to access the 
web pages.
I want to use squid proxy in order to serve some of my needs. I can't configure 
browser
with the squid as I need to my institution proxy to access the web. So all my 
requests
first should go to squid proxy then to the institution proxy. I did this by 
reading the
faq (How do I configure Squid forward all requests to another proxy?). But now 
my doubt
is how would I ensure that first my request is going to squid and then to my 
insti proxy
(as my browser is not configured with the squid)?

Thank you.

Regards
jyoti



Re: [squid-users] how do I ensure that my request is passing through squid proxy

2010-05-14 Thread jyothi
Thanks for the quick reply. I am using firefox, there I can only specify one 
proxy (that
is presently institution proxy), may be I don't know, could you please 
elaborate?





On Fri, 14 May 2010 23:26:25 +1200, Amos Jeffries wrote
 jyothi wrote:
  Hi,
  
  I have a doubt, I am using a proxy enabled network (which is provided by my
institution).
  My browser is configured with the corresponding proxy in order to access 
  the web pages.
  I want to use squid proxy in order to serve some of my needs. I can't 
  configure browser
  with the squid as I need to my institution proxy to access the web. So all 
  my requests
  first should go to squid proxy then to the institution proxy. I did this by 
  reading the
  faq (How do I configure Squid forward all requests to another proxy?). But 
  now my doubt
  is how would I ensure that first my request is going to squid and then to 
  my insti proxy
  (as my browser is not configured with the squid)?
 
 
 Since that Squid is using the Institution proxy you should configure 
 your browser to use the Squid.
 
 So you end up with this:
Browser - Squid - Institution Proxy - Internet
 
 Amos
 -- 
 Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.3