From owner-freebsd-bugs@freebsd.org Sat Mar 12 03:47:47 2016 Return-Path: Delivered-To: freebsd-bugs@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 9F426ACD30B for ; Sat, 12 Mar 2016 03:47:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 844DAD4E for ; Sat, 12 Mar 2016 03:47:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u2C3llGI043374 for ; Sat, 12 Mar 2016 03:47:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207916] [PATCH] etc/rc.d/netwait breaks on releng/10.3 if ipfw configured Date: Sat, 12 Mar 2016 03:47:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-BETA2 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: John.Marshall@riverwillow.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2016 03:47:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207916 Bug ID: 207916 Summary: [PATCH] etc/rc.d/netwait breaks on releng/10.3 if ipfw configured Product: Base System Version: 10.3-BETA2 Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: John.Marshall@riverwillow.com.au Keywords: patch Created attachment 168033 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D168033&action= =3Dedit Add ipfw to REQUIRE in /etc/rc.d/netwait FreeBSD rwsrv04.gfn.riverwillow.net.au 10.3-RC2 FreeBSD 10.3-RC2 #0 r296673: Sat Mar 12 11:12:32 AEDT 2016=20=20=20=20 root@rwsrv04.gfn.riverwillow.net.au:/build/obj/build/src/sys/RWSRV04 i386 In Kernel config file: options IPFIREWALL #firewall In rc.conf: netwait_enable=3DYES All was well in 10.2-RELEASE, but now... /etc/rc.d/netwait no longer succeeds in pinging ${netwait_ip} because the firewall has not yet been started and the default "deny all" condition prevails. netwait times out, startup proceeds and bits of networking compon= ents don't get started because the interfaces haven't finished being configured = yet (now that packets can get through). The attached patch makes netwait dependent on ipfw. I doubt that this is the proper solution but "it works for me". netwait used to be dependent on NETWORKING and everything worked fine. The commit message for r294680 expla= ins why NETWORKING was removed from the netwait REQUIRE list but there are more things that need to be taken into account. Replacing NETWORKING with only d= evd and routing in the REQUIRE list is obviously insufficient. I'm thinking the dependency probably belongs in a different script - but where? The effect of adding ipfw to the netwait REQUIRE list changes rcorder like this: --- rcorder.10.3 2016-03-12 14:08:16.432798000 +1100 +++ rcorder.10.3.jm 2016-03-12 14:08:36.667104000 +1100 @@ -44,6 +44,7 @@ /etc/rc.d/ppp /etc/rc.d/faith /etc/rc.d/routing +/etc/rc.d/ipfw /etc/rc.d/netwait /etc/rc.d/resolv /etc/rc.d/local_unbound @@ -57,7 +58,6 @@ /etc/rc.d/mrouted /etc/rc.d/routed /etc/rc.d/defaultroute -/etc/rc.d/ipfw /etc/rc.d/NETWORKING /etc/rc.d/mountcritremote /etc/rc.d/newsyslog --=20 You are receiving this mail because: You are the assignee for the bug.=