Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-12-2013, 02:25 AM   #1
Registered: Oct 2006
Posts: 61

Rep: Reputation: 15
The best way howto check internet connection every second or less?


I have a router with wwan conections and I need to show to the clients cached page with custom message or custom error page when the requested page is not cached when there is no internet connection (the connection is usually not available few seconds or less). I have installed WWWOFFLE which is working really great. I am redirecting all requests to WWWOFFLE via iptables. The problem is that it needs to be switched to offline/online mode manually with cmd. The second problem is in DNS because when browser didnt receive correct answer from DNS it shows their custom error page instead the one from proxy. To avoid this I am creating fake DNS records using BIND when the connections is not available which point everything to the router IP. It works also good. The questions is whats the best way howto switch proxy to offline mode and create fake dns zone in a very short time when there is no internet connection (is there some better way to test internet connection then ping)? Or is there a better solution howto display cached pages and/or custom error page when wwan connection is temporally not available due to GSM low signal? I dont want clients to setup proxy manually in their browser. Thank You


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem bash script to check the internet connection? shams Programming 9 10-28-2012 09:27 PM
check if the internet connection is available. ALInux Linux - Networking 3 02-12-2006 05:05 AM
check internet connection in .bashrc mvo Linux - Newbie 2 11-26-2005 06:32 PM
Hi I am trying to setup a mailserver with internet connection! HOWTO? ankursaxena Linux - Software 8 03-04-2005 06:42 AM
How to check kernel (RH9) is support for Internet connection sharing?? TYLin Linux - Hardware 0 06-18-2003 02:39 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration