From owner-freebsd-questions@freebsd.org Sun Oct 8 12:37:36 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4298BE3439D for ; Sun, 8 Oct 2017 12:37:36 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from voyageurs.rail.eu.org (voyageurs.rail.eu.org [IPv6:2001:bc8:30d3::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B3A648180B for ; Sun, 8 Oct 2017 12:37:35 +0000 (UTC) (envelope-from erwan@rail.eu.org) Received: from [IPv6:2001:bc8:30d3:3040:6267:20ff:fede:1808] (unknown [IPv6:2001:bc8:30d3:3040:6267:20ff:fede:1808]) by voyageurs.rail.eu.org (Postfix) with ESMTPSA id 2D7212CC056E for ; Sun, 8 Oct 2017 14:37:32 +0200 (CEST) Subject: Re: forcing new dynamic ip address To: freebsd-questions@freebsd.org References: <59DA19E8.5000602@gmail.com> From: Erwan David Message-ID: <7531e98e-6910-0853-b4e2-a3fe92bfb694@rail.eu.org> Date: Sun, 8 Oct 2017 14:37:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <59DA19E8.5000602@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rail.eu.org; s=mail; t=1507466252; bh=d9PEVoYDUwEqiP3xxFQ09dYz8yD2RfNIIxV+ZFfgWcI=; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=dKA13ZnwVXinRbZDoQGT5yLiVirh8xDH6eYvTQA64is+FTYYdJKjjO8SRq9XYFAh2d7+cklWFKSJusHkBx3DXtOjVolJWYVYigcu72bJYwJ+JoiDAAKAgRH7ZNuhKxUmh8eYOiSHHr7B21doL8Eu5sbtLAMAsSzQ9jkSzzSW4EM= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2017 12:37:36 -0000 Le 10/08/17 à 14:28, Ernie Luzar a écrit : > Hello List; > > I have a "home service" account from my ISP. The ISP issues an dynamic > ip address which has not changed in 12 years. > > My host has 2 NICs, one which is not used. I know if I plug the internet > cable into the un-used NIC and make the appropriate config changes and > reboot I will get a different dynamic ip address. > > Is there a simpler way to expire the lease to force the ISP dhcp to > refresh with a different dynamic ip address? > > The goal is to have a cron job that gets a different dynamic ip address > assigned to my host's front door every a week. > > Just another level of security to make it very hard for the script > kiddies from finding any open ports I may have. > > Thanks for the help. > DHCP protocol states that the server should try to give you the same IP address. And dhcp servers keep track of the addresses they allocated in the past, to give them back if possible.