Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2007 02:21:54 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Noah <admin2@enabled.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: removing ipfw rules
Message-ID:  <20071228002153.GC47064@kobe.laptop>
In-Reply-To: <47743999.3010908@enabled.com>
References:  <47743999.3010908@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-12-27 15:47, Noah <admin2@enabled.com> wrote:
> Hi,
>
> I have two ipfw rules that I want to remove.  They are viewable with the
> "ipfw show" command
>
>
> --- snip ---
>
> 06600      0         0 allow ip from any to any proto tcp src-ip
> 66.66.66.66 dst-port 22
> 06700      0         0 allow ip from any to any proto tcp src-ip
> 66.66.66.66 dst-port 22
>
> --- snip ----
>
> I am typing the command "/sbin/ipfw -q delete pass proto tcp src-ip
> 66.66.66.66 dst-port 22"
>
> but both lines remain.  What am I doing wrong?

There are differences between the visible rule:

    allow ip from any to any proto tcp src-ip 66.66.66.66 dst-port 22

and the one you are trying to delete:

    pass proto tcp src-ip 66.66.66.66 dst-port 22

Having said that, can you try something simpler, i.e.

    ipfw -q delete 6600
    ipfw -q delete 6700

This should work too, if I remember well enough the ipfw syntax.




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