From owner-freebsd-ipfw@FreeBSD.ORG Tue Apr 6 11:18:10 2004 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B28C516A4CE for ; Tue, 6 Apr 2004 11:18:10 -0700 (PDT) Received: from web40703.mail.yahoo.com (web40703.mail.yahoo.com [66.218.78.160]) by mx1.FreeBSD.org (Postfix) with SMTP id A12C043D3F for ; Tue, 6 Apr 2004 11:18:10 -0700 (PDT) (envelope-from thuan_an@yahoo.com) Message-ID: <20040406181724.73532.qmail@web40703.mail.yahoo.com> Received: from [62.178.225.200] by web40703.mail.yahoo.com via HTTP; Tue, 06 Apr 2004 11:17:24 PDT Date: Tue, 6 Apr 2004 11:17:24 -0700 (PDT) From: An Tran To: freebsd-ipfw@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Optional NOT operator of ports problem X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 18:18:10 -0000 Hi all, I was having a problem with the optional NOT operator of ports. I have tested this rule but it didn't worked: #ipfw add xxx allow ip from xx.xx.xx.xx to any not 25 ipfw: unknown argument ``not'' My server is running FreeBSD 4.9-STABLE and I have seen in the ipfw man page that we can use the optional not operator as follow: ... src and dst: {addr | { addr or ... }} [[not] ports] An address (or a list, see below) optionally followed by ports specifiers. ... ports: {port | port-port}[,ports] For protocols which support port numbers (such as TCP and UDP), optional ports may be specified as one or more ports or port ranges, separated by commas but no spaces, and an optional not operator. The `-' notation specifies a range of ports (including boundaries). ... Could anyone please tell me that what was wrong in my rule? Thank you in advance. --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today