Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-13-2007, 02:53 AM   #1
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, 11:45 AM   #2
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,239
Blog Entries: 5

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

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

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Or nagios ...



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-25-2007 11:57 PM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12: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 12:33 AM
cant http my router... derfaust Linux - Software 3 05-08-2004 04:15 PM
belkin router http port forwarding illtbagu Linux - Networking 3 08-16-2003 02:44 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:17 PM.

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