Date: Fri, 14 Jan 2005 11:17:05 +0200 From: Vladimir Terziev <vladimir.terziev@sun-fish.com> To: altares@e-card.bg Cc: jeremie@le-hen.org Subject: Re: Listening outside ipfw / program interface to ipfw Message-ID: <20050114111705.38c8f955.vlady@sun-fish.com> In-Reply-To: <41E78BCA.2080903@e-card.bg> References: <41E6D3EE.5090205@cloudview.com> <20050113221947.GC46977@obiwan.tataz.chchile.org> <41E78BCA.2080903@e-card.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
I have an old FreeBSD 4.3 and the man page of ipfirewall(4) describes the C api for manipulation of IP filtering rules. I'm not sure the C api interface in 4.10 is still the same as in 4.3, but i suggest you to try. Just find the man page from somewhere. Vladimir On Fri, 14 Jan 2005 11:07:22 +0200 Rumen Telbizov <altares@e-card.bg> wrote: > > Hi > > Jeremie Le Hen wrote: > >>2) Is there an api to ipfw that will let me manipulate rules, query > >>stats etc? I need something faster than running the command line binary? > > > > > > Yes, you should look at the ``SEE ALSO'' section in ipfw(8) manual page. > > ipfirewall(4) is what you are looking for, but looking at ipfw(8) > > source code might help too. > > On what version of FreeBSD are you looking the > ipfirewall(4) man page? > > Recently I needed the C api to ipfw, but it > turns out that ipfirewall(4) man page no longer > describes it. This is on 5.3-STABLE and 4.10-STABLE. > I also searched in google and I think I had found > a post saying that currently the only way to manipulate/use > firewall rules is via ifpw(8) command. > > If someone can provide me a reference to the C api > of ipfw I will be thankfull. > > Rumen Telbizov > > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050114111705.38c8f955.vlady>