From owner-freebsd-questions@FreeBSD.ORG Wed Aug 5 21:29:30 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E74C81065672 for ; Wed, 5 Aug 2009 21:29:30 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 76DBC8FC08 for ; Wed, 5 Aug 2009 21:29:30 +0000 (UTC) Received: by fxm24 with SMTP id 24so422156fxm.36 for ; Wed, 05 Aug 2009 14:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=THggz1nA0ZISGxRQ+conFxyQQK9EmaZJkazW6iSMW6g=; b=FkqnX6MKzojJDEWQjKLZ/76GRIT57BtW1p5FRem9dO9yxSuY3V/7u/JZhR2bIS7I4q nbmsLHh0aGQmYFRgBzTs1dAQ7ezoeYtYAeGjp6XlLL/u+p6oxpLV1sGNqfXLMwDYUQGo MHzwU/QBAOQSCXO4o39g6JGgwDPhnEePuWOg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=DywOAGnqOkZt8AHUbcf78a1IjeMqaeXY6NxuG3AX3JsaqUA6PmyPgxX3qLDF1FmHFG Z3lRNUSKF2AhdQtldYZ43SG0vkynut63lZMnxx9oI6tqvnXC5hr0+PO3NxAzUCvb3PiX HVEaWOLVngutDIDrbbGimn5XSOvcdKkfTw1Fk= MIME-Version: 1.0 Received: by 10.223.105.72 with SMTP id s8mr1699772fao.44.1249507769343; Wed, 05 Aug 2009 14:29:29 -0700 (PDT) In-Reply-To: References: Date: Wed, 5 Aug 2009 17:29:29 -0400 Message-ID: <4ad871310908051429q5d10f62bs8d9fff4f3a2d094e@mail.gmail.com> From: Glen Barber To: Stefan Miklosovic Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: sshd and dhcp bind to specific address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 21:29:31 -0000 On Wed, Aug 5, 2009 at 5:11 PM, Stefan Miklosovic wrote: > hi, > > my pc gets ip address from dhcp server, > but on my pc, there is running > sshd. > > I want to make ssh to listen to only one > ip address, but if ip changes due to dhcp, > ssh server do not work properly. > > I know, that dhcp is able to assign ip address > to client from some range e.g. 192.168.0.1-254 > It is possible to do the same with ssh in case > that it is not possible to do it only with one ip? > Is this a local network, inside 192.168.0.0/24 ? Are you able to configure a static IP for this machine? If not, I wrote a little script that runs every 15 minutes via cron(8) which gets my IP address, performs a diff(1) against a static file containing the current IP. If the IP is different, it mails me the new IP. However, this assumes t hat outside access is the problem, not internal access. -- Glen Barber