Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2002 11:11:01 -0700
From:      Luigi Rizzo <rizzo@icir.org>
To:        "Daniel C. Sobral" <dcs@tcoip.com.br>
Cc:        ipfw@FreeBSD.ORG
Subject:   Re: ipfw2 and rc.firewall
Message-ID:  <20020913111101.A13603@iguana.icir.org>
In-Reply-To: <3D81D03A.8050009@tcoip.com.br>; from dcs@tcoip.com.br on Fri, Sep 13, 2002 at 08:47:06AM -0300
References:  <3D81D03A.8050009@tcoip.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 13, 2002 at 08:47:06AM -0300, Daniel C. Sobral wrote:
...
> work fine under ipfw1. All we would need is someway to tell ipfw2 and 
> ipfw1 appart so that we can select between flush and the disabled set at 
> the beginning/end of rc.firewall.

you can use some ipfw2-only feature e.g.

    firewall=ipfw1; ipfw set show 2> /dev/null || firewall=ipfw2
    echo "You are using $firewall"

	cheers
	luigi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020913111101.A13603>