|
From: Frischknecht P. <pe...@em...> - 2004-05-01 02:40:48
|
Does anybody have interest in automatic link detection. The idea is to be able to run scripts based on the link state of the = card. This project: http://0pointer.de/lennart/projects/ifplugd/ It was originally designed for laptops, but we could use it as well. I = have already played with it, it works well. =20 Why do I need it? (or want it) Let's say we are perfiorming an upgrade of some kind to the network. = Instead of getting harassing phone calls from users, we simply unplug = the WAN side of the DL router. Ifplugd will fire up a script that = blocks all traffic and redirects WWW to a local web server in the DL box = itself (say on port 8080). Example: iptables -t nat -I PREROUTING -i (LAN interface) -p tcp --dport 80 -j = REDIRECT --to-port 8080. The users will now see a page that says: "Sorry for the trouble...we = will be back up in a little bit. Go watch TV." When we plug the WAN port back in, ifplugd automagically removes the = iptables entries and life is good. Neat? Who is interested? |