From owner-freebsd-questions Wed Dec 6 12: 8: 3 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 12:08:01 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 800E237B402 for ; Wed, 6 Dec 2000 12:08:00 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 143kr8-0004I7-00; Wed, 06 Dec 2000 20:07:58 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by buffy.raggedclown (8.10.2/8.10.2) id eB6K6r002380; Wed, 6 Dec 2000 21:06:53 +0100 From: Cliff Sarginson Date: Wed, 6 Dec 2000 21:06:52 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="US-ASCII" Cc: freebsd-questions@freebsd.org To: Fernando Gleiser , 1 References: In-Reply-To: Subject: Re: Where to find example code in C how to admin ipfw? MIME-Version: 1.0 Message-Id: <00120621065209.01722@buffy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday 06 December 2000 18:56, Fernando Gleiser wrote: > On Wed, 6 Dec 2000, 1 wrote: > > I need to admin firewall rules from within C-program. > > But there's some serious questions. Compared to command-line style > > programmed access for fw seems much more complicated and hardly > > documented. > > As if ppl who did that docs thought I'm to know lots of things I don't > > know in reality :0). > > Try reading ipfirewall(4) and the sources of ipfw > > > Any help will be appriciated :0) > > > > > > Alexander Komratov Aren't you making life a little hard for yourself ? You can use "C" or perl or shell/awk/sed etc etc as a front end to construct firewall commands. Much less work, and success likely in the short term ! of course, if you are doing this for eductaional purposes then that is another matter :) Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message