From owner-freebsd-questions@FreeBSD.ORG Wed Sep 3 15:03:14 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8E5B16A4BF for ; Wed, 3 Sep 2003 15:03:14 -0700 (PDT) Received: from mail.mi.celestial.com (dagney.celestial.com [192.136.111.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1672543FE0 for ; Wed, 3 Sep 2003 15:03:14 -0700 (PDT) (envelope-from bill@celestial.com) Received: by mail.mi.celestial.com (Postfix, from userid 203) id CD19611EB19; Wed, 3 Sep 2003 15:03:13 -0700 (PDT) Date: Wed, 3 Sep 2003 15:03:13 -0700 From: Bill Campbell To: freebsd@celestial.com, FreeBSD Questions Message-ID: <20030903220313.GA60926@alexis.mi.celestial.com> Mail-Followup-To: freebsd@celestial.com, FreeBSD Questions References: <019101c37248$ffd50c30$6e2a6ba5@lc.ca.gov> <20030903210901.GA59060@alexis.mi.celestial.com> <01d701c37265$72e4da90$6e2a6ba5@lc.ca.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01d701c37265$72e4da90$6e2a6ba5@lc.ca.gov> User-Agent: Mutt/1.4.1i Subject: Re: How to Get Public IP From LinkSys Router? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 22:03:14 -0000 On Wed, Sep 03, 2003, Drew Tomlinson wrote: ... >> We have set up a server to return this since I got tired of >> poking around to find it. This will return the IP address. >> >> ssh -l sshclient sshclient.celestial.com > >Thanks. I will either go this route or use a suggestion by another get >the html status page from the router and extract. Is your server >normally up? Better be. sshclient.celestial.com is the T1 interface on our router (a Linux box with a Sangoma card). The login ``shell'' for the sshclient user is a C program that simply gets the SSH_CLIENT environment variable, and spits it out STDOUT. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``If you make yourselves sheep, the wolves will eat you'' -- Benjamin Franklin