From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 22:49:59 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 7E9CA16A4CE for ; Tue, 21 Sep 2004 22:49:59 +0000 (GMT) Received: from forrie.com (forrie.ne.client2.attbi.com [24.147.45.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F50143D49 for ; Tue, 21 Sep 2004 22:49:59 +0000 (GMT) (envelope-from forrie@forrie.com) Received: from [127.0.0.1] (i-25.forrie.net. [192.168.1.25]) by forrie.com with ESMTP id i8LMnoGZ086282 for ; Tue, 21 Sep 2004 18:49:52 -0400 (EDT) (envelope-from forrie@forrie.com) Message-ID: <4150B00D.7010100@forrie.com> Date: Tue, 21 Sep 2004 18:49:49 -0400 From: Forrest Aldrich User-Agent: Mozilla Thunderbird 0.8 (Windows/20040920) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-RAVMilter-Version: 8.3.0(snapshot 20010925) (forrie.ne.client2.attbi.com) X-MailScanner-LocalNet: Found to be clean Subject: When your dynamic IP changes... 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: Tue, 21 Sep 2004 22:49:59 -0000 For the most part, my cable system stays on 24x7, thus my IP address remains the same (often for the duration of a year). However there are times when unpredictable things happen, such as outages, that will cause your IP to change. I have a number of internal and external dependencies that rely upon this IP address. For the most part, I've not had to change these much - however, when it happens, it's a PITA. - ipfw rules - mysql tables - apache configuration - /etc/hosts - named.conf (possibly) and more. Including needing to update external DNS, which could be addressed by using a dyndns.org name, and set your DNS to that hostname. I could whip up a script using M4 to dynamically change the ipfw rules and point /etc/rc.conf to a different script. I'm curious if anyone else has come up with a nifty scheme to make this less painful when it happens -- other than the obvious idea of getting a provider that supports fixed IP addresses ;-) Someone suggested to me the GNU CFEngine, too -- seems a bit complex for this task, though. Thanks...