From owner-freebsd-bugs@FreeBSD.ORG Sat Feb 28 21:30:21 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11BC816A4CE for ; Sat, 28 Feb 2004 21:30:21 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6B3D43D2D for ; Sat, 28 Feb 2004 21:30:20 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i1T5UKbv012406 for ; Sat, 28 Feb 2004 21:30:20 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i1T5UKVB012405; Sat, 28 Feb 2004 21:30:20 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 28 Feb 2004 21:30:20 -0800 (PST) Resent-Message-Id: <200402290530.i1T5UKVB012405@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Derek VerLee Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93FCC16A4CE for ; Sat, 28 Feb 2004 21:27:04 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D20843D2D for ; Sat, 28 Feb 2004 21:27:04 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1T5R472008991 for ; Sat, 28 Feb 2004 21:27:04 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i1T5R4F9008976; Sat, 28 Feb 2004 21:27:04 -0800 (PST) (envelope-from nobody) Message-Id: <200402290527.i1T5R4F9008976@www.freebsd.org> Date: Sat, 28 Feb 2004 21:27:04 -0800 (PST) From: Derek VerLee To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: conf/63519: commands in dhclient-exit-hooks may not succeed at boot with firewall X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Feb 2004 05:30:21 -0000 >Number: 63519 >Category: conf >Synopsis: commands in dhclient-exit-hooks may not succeed at boot with firewall >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 28 21:30:20 PST 2004 >Closed-Date: >Last-Modified: >Originator: Derek VerLee >Release: 5.2-RELEASE #1 >Organization: >Environment: FreeBSD pcp02905714pcs.roylok01.mi.comcast.net 5.2-RELEASE FreeBSD 5.2-RELEASE #1: Thu Jan 15 03:31:40 GMT 2004 root@pcp02905714pcs.roylok01.mi.comcast.net:/usr/obj/usr/src/sys/PANOX i386 >Description: I have added a line to my /etc/dhclient-exit-hooks script (which is executed (if it exists) by /sbin/dhclient-script) that sets my hostname to a name that actually resolves to something in order to make sendmail as well as several other programs run more cleanly. It does this using the host command. The problem comes because I also run a firewall, and dhcpclient starts before the firewall rules are added, so that dhclient-exit-hooks and thus host is executed under a closed firewall. >How-To-Repeat: Any attempt to access the network within a script initiated by dhclient while booting on a machine with ipfw enabled. >Fix: in the file /etc/rc.d/dhclient change the line # REQUIRE: network netif mountcritlocal to # REQUIRE: ipfw network netif mountcritlocal >Release-Note: >Audit-Trail: >Unformatted: