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

2010-05-20 Thread Henrik Nordström
tor 2010-05-20 klockan 19:20 +0630 skrev jyothi:
> How often the squid.conf file is read by the browser? is it on every load of 
> page?

It's read by skuid when you run "squid -k reconfigure"




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



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

2010-05-20 Thread Amos Jeffries

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


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

2010-05-20 Thread Henrik Nordström
tor 2010-05-20 klockan 17:00 +0630 skrev 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.

If you are using NetworkManager then an easy spot for integrating things
like this is by placing a action in /etc/NetworkManager/dispatcher.d/

This is used by the Squid rpm on Fedora to automatically react on
network interface changes which changes /etc/resolv.conf and some other
important parameters.

Regards
Henrik



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 Henrik Nordström
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



[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




[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