Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2010 12:20:33 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-ipfw@FreeBSD.ORG, rizzo@iet.unipi.it
Subject:   Re: Small problem with "ipfw list"
Message-ID:  <201003101120.o2ABKXoa002322@lurza.secnetix.de>
In-Reply-To: <20100309164611.GB53491@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo wrote:
 > On Tue, Mar 09, 2010 at 03:36:15PM +0100, Oliver Fromme wrote:
 > > Just a question:  Is the output from "ipfw list" supposed
 > > to be in the same rule format that is accepted as input?
 > 
 > it is not, partly due to backward compatibility.

I see.

 > If you try "ipfw -c show" then you might have better luck though.

Unfortunately that makes things even worse.  The "dst-ip"
word is still there, and additionally any rules containing
"from any to any" are shortened, which is also not accepted
as input to ipfw(8).

What do you think about adding a new option that lists the
rules in a format that can be fed back as input to ipfw(8)?
There are several tools with similar options, for example
"stty -g".  So far -g is not used in ipfw(8), so ...

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

I suggested holding a "Python Object Oriented Programming Seminar",
but the acronym was unpopular.
        -- Joseph Strout



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