LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02: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, 11:45 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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, 01:10 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Or nagios ...


Cheers,
Tink
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:18 PM.

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
Open Source Consulting | Domain Registration