|
From: Heiko Z. <he...@zu...> - 2004-05-01 12:26:18
|
Frischknecht Peter wrote: > 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. > > 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? > I think it's a nice feature. I added it to the feature requests, but it won't make it into 1.2 anymore. Heiko |