From owner-freebsd-questions@FreeBSD.ORG Wed Aug 4 19:24:41 2010 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 DBA1E106567A for ; Wed, 4 Aug 2010 19:24:41 +0000 (UTC) (envelope-from mlmichael70@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 61EE18FC08 for ; Wed, 4 Aug 2010 19:24:40 +0000 (UTC) Received: by bwz12 with SMTP id 12so3399299bwz.13 for ; Wed, 04 Aug 2010 12:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=8Kpvist68pYe4DexOSY8BA6xYN5elvr6p97DeHwQqrQ=; b=WIJjhlmyFsoNPVbt4GCiSi/r/iVL32Nw9eZE4qpXFApIdyI+myS8MlDES9zLifn3tj SAWbi8esvwKLWTT7NngxYW40oe1xeukYmeQanxyozyb5OwGnVh4ZPiBm/QvLkJWXhxCF ozorxSqn+FaNiGTHAzEBnWyBdtQTv2hn60/2s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=uwRZkY0NTkf9twSS/JMWGyQ31aaf7y6cWUeWsadj8pge0SgYQv029H+zEcwosaL2or 6bvqWIGQvx29jbp4NUTQgjtGPehD1YHC+r+VNp7wzAB+2KRYV7BaZSKsHBhdjYlaza5V uD4/tLViPnrJF3e5nLy9jdsxrNkC1tIiOdTqI= Received: by 10.204.59.134 with SMTP id l6mr6550450bkh.103.1280949879992; Wed, 04 Aug 2010 12:24:39 -0700 (PDT) Received: from prime.nonspace (94-193-57-116.zone7.bethere.co.uk [94.193.57.116]) by mx.google.com with ESMTPS id bq20sm6186810bkb.4.2010.08.04.12.24.38 (version=SSLv3 cipher=RC4-MD5); Wed, 04 Aug 2010 12:24:39 -0700 (PDT) Message-ID: <4C59BEB6.8050101@gmail.com> Date: Wed, 04 Aug 2010 20:25:42 +0100 From: Michael User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100721 Thunderbird/3.0.6 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: ipfw and changing IP address (dhcp) 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, 04 Aug 2010 19:24:41 -0000 Hello, I'm using ipfw on my laptop running 8.1R amd64. IP address of it's external interface (wlan0) is assigned by DHCP server on home broadband access point. Everything works fine when access point is up and running but if I boot my FreeBSD laptop when access point (DHCP server) is down then obviously my laptop gets no IP. ipfw complains that it "cannot get interface name" and loads firewall rules anyway. Now after some time access point becomes available and freebsd gets IP address automatically but I still have to manually reload the same ipfw ruleset to get internet access. I am using "me" in all of my firewall rules for example: $cmd 20010 allow icmp from me to any out via $if_ext keep-state Is there anything I have forgotten about? Or ipfw simply can't handle such situations? Michael