From owner-freebsd-bugs@FreeBSD.ORG Thu Nov 28 16:10:03 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E97F5FF9 for ; Thu, 28 Nov 2013 16:10:03 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A9D7816BB for ; Thu, 28 Nov 2013 16:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rASGA3xr041526 for ; Thu, 28 Nov 2013 16:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rASGA306041525; Thu, 28 Nov 2013 16:10:03 GMT (envelope-from gnats) Resent-Date: Thu, 28 Nov 2013 16:10:03 GMT Resent-Message-Id: <201311281610.rASGA306041525@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, Dmitry Morozovsky Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCFE2CEA for ; Thu, 28 Nov 2013 16:00:43 +0000 (UTC) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 53091165C for ; Thu, 28 Nov 2013 16:00:42 +0000 (UTC) Received: from woozle.rinet.ru (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.5/8.14.5) with ESMTP id rASG0Zro012104 for ; Thu, 28 Nov 2013 20:00:35 +0400 (MSK) (envelope-from marck@woozle.rinet.ru) Received: (from marck@localhost) by woozle.rinet.ru (8.14.5/8.14.5/Submit) id rASG0ZnB012103; Thu, 28 Nov 2013 20:00:35 +0400 (MSK) (envelope-from marck) Message-Id: <201311281600.rASG0ZnB012103@woozle.rinet.ru> Date: Thu, 28 Nov 2013 20:00:35 +0400 (MSK) From: Dmitry Morozovsky To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/184355: ipfw failed to restart if tables are used X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: Dmitry Morozovsky List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2013 16:10:04 -0000 >Number: 184355 >Category: bin >Synopsis: ipfw failed to restart if tables are used >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 28 16:10:03 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Dmitry Morozovsky >Release: any >Organization: Cronyx Plus LLC (RiNet ISP) >Environment: System: FreeBSD of any version. >Description: If ipfw tables are configured in firewall rc script, ipfw service can not be restarted and failed on duplicate table entry, usually rendering the system in question network cut. >How-To-Repeat: - configure at least one table entry in firewall script - issue service ipfw restart >Fix: Index: etc/rc.firewall =================================================================== --- etc/rc.firewall (revision 258710) +++ etc/rc.firewall (working copy) @@ -137,6 +137,7 @@ # Flush out the list before we begin. # ${fwcmd} -f flush +${fwcmd} -f table all flush setup_loopback setup_ipv6_mandatory >Release-Note: >Audit-Trail: >Unformatted: