From owner-freebsd-ipfw@FreeBSD.ORG Fri Mar 25 05:21:18 2005 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ADD416A4CE for ; Fri, 25 Mar 2005 05:21:18 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5E4043D41 for ; Fri, 25 Mar 2005 05:21:17 +0000 (GMT) (envelope-from freebsd-ipfw@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1DEhFh-0001Gs-UO for freebsd-ipfw@freebsd.org; Fri, 25 Mar 2005 06:20:59 +0100 Received: from 63-224-222-139.spkn.qwest.net ([63.224.222.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2005 06:20:57 +0100 Received: from sergei by 63-224-222-139.spkn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Mar 2005 06:20:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ipfw@freebsd.org From: Sergei Gnezdov Date: Fri, 25 Mar 2005 05:07:30 +0000 (UTC) Lines: 18 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 63-224-222-139.spkn.qwest.net User-Agent: slrn/0.9.8.1 (FreeBSD) Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner-SpamScore: s X-MailScanner-From: freebsd-ipfw@m.gmane.org X-MailScanner-To: freebsd-ipfw@freebsd.org Subject: DHCP with ipfw X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sergei@gnezdov.net List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 05:21:18 -0000 /etc/rc.conf: ifconfig_rl0="DHCP" firewall_type="client" firewall_enable="YES" When my machine boots firewall is initialized before DHCP obtains IP address. This results in incomplete firewall configuration. How do I fix this? My /etc/rc.firewall initialized with the following commands: net=`ifconfig rl0 | grep "inet " | awk '{print $6}'` mask="255.255.255.0" ip=`ifconfig rl0 | grep "inet " | awk '{print $2}'`