From owner-freebsd-stable Fri Dec 14 13:39: 0 2001 Delivered-To: freebsd-stable@freebsd.org Received: from pi.yip.org (pi.yip.org [199.45.111.121]) by hub.freebsd.org (Postfix) with ESMTP id A985237B41A for ; Fri, 14 Dec 2001 13:38:54 -0800 (PST) Received: (from melange@localhost) by pi.yip.org (8.11.3/8.11.3) id fBELcrP37201 for freebsd-stable@FreeBSD.ORG; Fri, 14 Dec 2001 16:38:53 -0500 (EST) (envelope-from melange@yip.org) Date: Fri, 14 Dec 2001 16:38:52 -0500 From: Bob K To: freebsd-stable@FreeBSD.ORG Subject: Re: Networking Question Message-ID: <20011214163852.S61341@yip.org> References: <20011214153114.A47574@edgemaster.zombie.org> <20011214153531.A62514@mikea.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011214153531.A62514@mikea.ath.cx>; from mikea@mikea.ath.cx on Fri, Dec 14, 2001 at 03:35:31PM -0600 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I've noticed that various versions of Windows can detect whether my > > ethernet card has a "live" connection. If I pull the cable or if the other > > end goes dead, Windows knows about it. I've been looking at making a > > firewall/NAT machine using FreeBSD and was wondering if there is any way to > > determine this situation in FreeBSD. It would be nice to be able to emit a > > beep or update an internal stats website when my router's connection goes > > dead. > > Steal the code in ifconfig that determines whether the interface > has carrier or not, and daemonize it or something. I'm pretty sure there's a way to have ucd-snmp send a snmp trap when the up/down status of an interface changes. Combining that with any of the network monitoring tools out there that use snmp (ie, all of them) should do the trick. -- Bob | Please don't spill hot things on Bob. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message