control ipfw from inside a program

Bill Fumerola billf at FreeBSD.org
Thu Jan 15 17:23:04 PST 2004


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 at yahoo-inc.com / billf at FreeBSD.org




More information about the freebsd-ipfw mailing list