Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2004 17:23:03 -0800
From:      Bill Fumerola <billf@FreeBSD.org>
To:        tom <mags@tom-mchugh.demon.co.uk>
Cc:        freebsd-ipfw@freebsd.org
Subject:   Re: control ipfw from inside a program
Message-ID:  <20040116012303.GC40147@elvis.mu.org>
In-Reply-To: <200401152306.55243.mags@tom-mchugh.demon.co.uk>
References:  <200401152306.55243.mags@tom-mchugh.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 15, 2004 at 11:06:55PM +0000, tom wrote:
> howto control ipfw from inside a program ? (sorry new):
> a) exec (or other) a shell command, or

your best bet.

> b) program a sysctl (or other) call of some kind.
> caveat: dunno much about these calls from
> a program  - all kind help appreciated.

the interfaces is a slowly moving target. i'd avoid this unless you were
constantly tracking ipfw changes (i.e. you were writing something that
heavily interacts with ipfw and not just trying to add a firewall rule
as part of a much larger projects).

'libipfw' is something that should be written at some point, but until
we have multiple consumers of the 'api' it isn't really a priority.

-- 
- bill fumerola / fumerola@yahoo-inc.com / billf@FreeBSD.org




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