From owner-freebsd-questions@FreeBSD.ORG Wed Jan 28 07:59:27 2004 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 1BF3D16A4CE for ; Wed, 28 Jan 2004 07:59:27 -0800 (PST) Received: from dyer.circlesquared.com (host217-45-219-83.in-addr.btopenworld.com [217.45.219.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCE9143D1D for ; Wed, 28 Jan 2004 07:59:17 -0800 (PST) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.petanna.net [127.0.0.1]) i0SG3RBn005669; Wed, 28 Jan 2004 16:03:44 GMT (envelope-from peter@circlesquared.com) Message-ID: <4017DD4F.80908@circlesquared.com> Date: Wed, 28 Jan 2004 16:03:27 +0000 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20031102 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bjorn Eikeland References: <20040128080221.M4472@kifco.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit cc: Marwan Sultan cc: "freebsd-questions@freebsd.org" Subject: Re: Dynamic Router IP. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 15:59:27 -0000 Bjorn Eikeland wrote: > På Wed, 28 Jan 2004 11:10:25 +0300, skrev Marwan Sultan > : > >> >> Hello everyone, >> >> I have FreeBSD 4.8-R as a NATd ipfw enable behind a DSL router. >> The router calling the internet and giving the connection 2the bsd >> box. >> BSD box does the rest for my LAN. >> >> I redirect the port 22 from the router to my FreeBSD LAN box. >> 192.168.1.1 >> >> The problem is DSL each time calls the internet has a new 'real IP' >> so I cannot know the ip IF im at home, then i cannot access the >> box from >> outside the LAN. >> >> Question is: >> Is there a way to configure the FreeBSD box to send an auto email for >> me each time the router has a new 'real IP' ? >> >> For sure by somehow the BSD box knows about the new ip for router. >> >> Thank you very much in advance. >> >> >> -- >> Marwan Sultan > > > Why send a email, when you can go to www.no-ip.com and register > yourself a dynamic dns entry, and thus you can alwaus access your > freeBSD box using marwan.no-ip.com or something similar. After > registering you just need to install a daemon that automatically > updates the ddns every now and then. I use this for the dial up > gateway at home so I can check up on now the box is holding up with in > its harsh enviornment (i.e. my brothers) - and it works great. > > hth > ________________________________________ I thought that too at first. But then I realised - hopefully correctly - that it's his dsl router that gets the dynamic ip address, not the freebsd box. Presumably, the router has a static 192.168.1.x address facing the LAN and the freebsd box uses this as its gateway. I doubt you can install a daemon on the router. And, if this is right, I can't see how the freebsd machine would know what ip address had been allocated to the external pppoe or pppoa interface of the router. If I'm setting up a network with this type of topology, I always ask the isp for a small static ip address range. PWR.