From owner-freebsd-hackers Fri Feb 28 2:10:11 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E89C37B401; Fri, 28 Feb 2003 02:10:10 -0800 (PST) Received: from www3.mailru.com (www3.mailru.com [80.68.244.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE2FE43F85; Fri, 28 Feb 2003 02:10:08 -0800 (PST) (envelope-from denb@front.ru) Received: by HotBOX.Ru WebMail v2.1 id h1SAA3VD087527 for ; Date: Fri, 28 Feb 2003 13:10:03 +0300 (MSK) Message-Id: <200302281010.h1SAA3VD087527@www3.mailru.com> From: denb To: ipfw@freebsd.org Cc: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Mailer: Free WebMail HotBOX.ru X-Proxy-IP: [212.1.229.5] X-Originating-IP: [172.16.0.3] Subject: Question about divert in ipfw2 on 5.0 release Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I write program simular to natd, witch receives packets at divert port X. Question: On ipfw1 (FreeBSD 4.7) this rules work excellent: ipfw add divert X from any to any Y ipfw add divert X from any Y to any We're diverting all received and sended packets (from\to port Y) to divert port X. But these rules are not working together with ipfw2 (5.0 Release). Each single rule works fine, but when i combine them together only first of them triggers. The order doesn't matter. What am I doing wrong? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message