From owner-freebsd-questions@FreeBSD.ORG Thu Nov 13 05:54:27 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F9A616A4CE for ; Thu, 13 Nov 2003 05:54:27 -0800 (PST) Received: from undead.dnn.ru (dnn.ru [212.158.164.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DF0643F85 for ; Thu, 13 Nov 2003 05:54:25 -0800 (PST) (envelope-from alex@dynaweb.ru) Received: from dynaweb.ru (dynaweb.dnn.ru [212.158.164.112]) by undead.dnn.ru (8.9.3/8.9.3) with ESMTP id QAA47186 for ; Thu, 13 Nov 2003 16:56:20 +0300 (MSK) (envelope-from alex@dynaweb.ru) Message-ID: <3FB38D3B.8050303@dynaweb.ru> Date: Thu, 13 Nov 2003 16:55:07 +0300 From: Alex User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Subject: where to find info on ipfw programming interface? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: alex@dynaweb.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 13:54:27 -0000 Hi ppl! I need to be able to control ipfw rules from within my program. A year ago I spent a week to get how to do this using ipfw utility sources. And at last successfully did it after a lot of probes and falls :0) But now since 5.0 FreeBSD is using another implementation (so called IPFW2) which is much more comprehensive and I believe robust at least as I got from ip_fw.h But in any case some thing are still unclear for me. So the question is: where can I find some kind of formal specification on what order commands and actions must be placed in a rule and what kind of parameters are needed for every kind of op_code. If there're anything about thsi problem I'd be very glad to have a copy or at last a link to :0) Alex