Find the answer to your Linux question:
Results 1 to 4 of 4
Does anyone know how to set a message or a redirect that can be used when internet connection is lost? It doesn't have to be automatic but I want to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    2

    Squid internet down message


    Does anyone know how to set a message or a redirect that can be used when internet connection is lost?

    It doesn't have to be automatic but I want to let users know without manually sending email that the internet is down as they try to browse.

    I've found some php scripts that could be used, but I was hoping for an easier way.

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    I would think you would need to create an acl that points to a specific page. have the acl match every website and redirect to http://localserver/internetdown.html

    just create the acl and then reload squid

    and just use a webserver on the local machine (or any machine) and create a basic html page that says its down.

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    2

    Good idea

    That's a good idea but I can't find how exactly to accomplish that.

    The only way I could find to get that to work is to install a redirector.

  4. #4
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    I believe you are right. I did this was squidguard and it was very easy to do. not sure about the acl then since I believe I had problems getting squid to redirect to something besides its own error pages.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •