Search squid archive

Re: Just one error page.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK so first you need to make sure you know and understand what you define as "The Internet is Down''.
How do you recognize that the connection is down?
If the proxy is the gateway and it has the interface up or down it would be easy to script it.
There are other ways which uses "ping" checks and a marker.
The helper will check if the "marker" file is there or not.
A daemon will run and will test every 15 seconds if the connection is up or down.
If the connection state changes the daemon will delete the mark file for UP state and will create the file for a DOWN state.
The squid helper will "stat" or "check" if the file is there for each request it receives and then if the "marker"(flag) file exists which means the connection is down it will redirect the client into a local web server with an error page.
A Similar thing runs in cloudflare infrastructure.

How are you with scripting?

Eliezer

----
Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer@xxxxxxxxxxxx


-----Original Message-----
From: squid-users [mailto:squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of erdosain9
Sent: Friday, November 25, 2016 18:52
To: squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Just one error page.

Hi
Thanks!
Can you guide me on this "Use an helper that will check the status of the
internet connection. 
If the Internet is down then redirect to a special error page" ???





--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Just-one-error-page-tp4680631p4680661.html
Sent from the Squid - Users mailing list archive at Nabble.com.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux