LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-13-2007, 03:53 AM   #1
ultrasawblade
LQ Newbie
 
Registered: Apr 2007
Distribution: Debian
Posts: 15

Rep: Reputation: 0
Getting Debian router to notify via HTTP if internet is down


I'm running a Debian box that is serving as a internet gateway/router/server host.

The internet comes from a cable connection on eth0 and is then routed appropriately out to eth1 by the Debian system. ip's are given to computers behind this box via dhcp (udhcpd). the Debian system itself gets its ip via dhcp. Everything is setup and works fine.

However, at times the cable connection will go down. Nothing I can do about it, it's a provider issue. However, what I would like to do is if the outage occurs while computers behind the Debian system are browsing the web, that the Debian box can redirect HTTP requests from the internal network to an internal webpage indicating the internet is down temporarily.

I can access the cable modem's diagnostic page to figure out if the connection is up or down. And redirecting HTTP requests to an internal page would have to be done by some sort of HTTP proxy server, correct? I've looked through various proxy servers and am thinking that tinyproxy would be the best one.

I'm thinking I will have to setup a script/program to execute on a regular basis (say, every minute) and check the cable modem's diagnostic page. If it indicates no connection, then reconfigure/restart the proxy to return a descriptive page. If it indicates a connection, reconfigure/restart the proxy to pass through.

However, is there some tool or combination thereof that can do this similar task better? Any suggestions or ideas?
 
Old 05-14-2007, 12:45 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
check out some of the monitoring applications..

http://bigsister.graeff.com/

there are lots to choose from this is just one example..
 
Old 05-14-2007, 02:10 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Or nagios ...


Cheers,
Tink
 
  


Reply


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
No HTTP traffic after changing to a new router jamesf303 Linux - Networking 5 05-26-2007 12:57 AM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 01:33 PM
noFTP acces via Internet on Debian 3.0 box on a LAN network with Netgear rp614 router ferry Linux - Networking 2 08-16-2004 01:33 AM
cant http my router... derfaust Linux - Software 3 05-08-2004 05:15 PM
belkin router http port forwarding illtbagu Linux - Networking 3 08-16-2003 03:44 PM


All times are GMT -5. The time now is 09:22 AM.

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