[squid-users] Just one error page.

Eliezer Croitoru eliezer at ngtech.co.il
Mon Nov 28 03:53:21 UTC 2016


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 at ngtech.co.il


-----Original Message-----
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On Behalf Of erdosain9
Sent: Friday, November 25, 2016 18:52
To: squid-users at lists.squid-cache.org
Subject: Re: [squid-users] 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 at lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list