On Dec 10, 2010, at 4:56 PM, Dan Shoop wrote: > ] > How about you just define a real function you're trying to achieve: being > able to access your dynamically assigned public IP address assigned to your > NAT'ed network remotely. And you want to know about it and maybe if it > changes. > > Over the years the InterWebs have developed a way to determine or announce an > IP address, they called it DNS. Of course the problem for all those with an > IP address that kept changing was to noticed that it changed and be able to > switch the IP address to the new one when the dynamic address changed. So > DynDNS - a free service - came about, along with tools/plugins/apps that > allow for the whole notification of changes thingie to be dealt with. > > Have you considered why this won't work to resolve what may be your real > problem here? > > In other words perhaps you're going about this in the wrong way? > > -d
It turns out that it is not hard to get the Airport Extreme Base Station external address: [mbp:]$ snmpwalk -Ov -OQ -c public router ipAdEntAddr 76.177.12.46 127.0.0.1 127.0.0.2 169.254.162.44 192.168.1.1 The smnpwalk command above grabs a part of the ipAddr table which lists info on all ip addresses assigned to the machine. The first (at least in this case ) is the external ip of the router. The second two addresses are a bit of mystery to me but they are certainly not the external address The fourth is a special configuration address, try whois 169.254.162.44 for more info. The last address is the internal lan address of the router. The next part of the plan was to mail the results periodically to a public account so one could check the ip before turning on a VPN or connecting to an open port. I had hoped that I could use the local 'mail' command to send the results somewhere, regrettably that is becoming tricky... I have several mail accounts...An Exchange account at the University where I retired from, my isp RoadRunner, and my MobileMe account. If I use the mail command to attempt to send a mail via the isp I get: ******************* <[email protected]>: host smtp-server.roadrunner.com[75.180.132.33] said: 554 5.1.8 - Domain of sender address [email protected] does not exist [R0107008] (in reply to MAIL FROM command) Reporting-MTA: dns; mbp.skynet X-Postfix-Queue-ID: 54670A652E1 X-Postfix-Sender: rfc822; [email protected] Arrival-Date: Sat, 11 Dec 2010 13:24:07 -0500 (EST) Final-Recipient: rfc822; [email protected] Action: failed Status: 5.1.8 Remote-MTA: dns; smtp-server.roadrunner.com Diagnostic-Code: smtp; 554 5.1.8 - Domain of sender address [email protected] does not exist [R0107008] From: [email protected] (Jerry Levan) Date: December 11, 2010 1:24:07 PM EST To: [email protected] Subject: fromJerry hello from mbp **************** skynet is the (local) domain of my lan. I get a similar error if I attempt to mail my gmail account with routing though roadrunner. Fortunately I *can* use my local smtp to send mail directly to my mobileme address which surprised the *heck* out of me. I have tried directly invoking sendmail but I do not seem to be able to get rid of the mbp.skynet The Mail app does not have this problem...It is able to set the envelope properly. Here is an extract of a successful mail to my google addr via roadrunner using Mail.app. ************ X-Originating-IP: 76.177.12.46 Received: from [76.177.12.46] ([76.177.12.46:39626] helo=[192.168.1.80]) by cdptpa-oedge02.mail.rr.com (envelope-from <[email protected]>) (ecelerity 2.2.3.46 r()) with ESMTP id A5/C9-02631-85BA30D4; Sat, 11 Dec 2010 16:48:24 +0000 From: Jerry LeVan <[email protected]> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: using mail app Date: Sat, 11 Dec 2010 11:48:24 -0500 Message-Id: <[email protected]> To: Jerry LeVan <[email protected]> Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) trying mail.app ****************** Note roadrunner accepted the mail from my box but the envelope-from field seems to make that ok... So does anyone know how I can convince roadrunner to accept mail from my machine using mail or sendmail? Thanks Jerry_______________________________________________ MacOSX-admin mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/macosx-admin
