Re: Problem with return-rst and auth

This is a discussion on Re: Problem with return-rst and auth within the IPFilter forums, part of the System Security and Security Related category; On Fri, Sep 26, 2003 at 10:35:30AM -0400, noam+ipfilter@noam.com wrote: > > Okay..this is ...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-29-2003
Guido van Rooij
 
Posts: n/a
Default Re: Problem with return-rst and auth

On Fri, Sep 26, 2003 at 10:35:30AM -0400, noam+ipfilter@noam.com wrote:
> > Okay..this is a bug in ipf.
> >
> > Please try the attached patch (only need to recompile ipfstat, not
> > the kernel).

>
> The ioctl error is gone, but I don't see a list..
>
> # ./SunOS5/i386-5.8/ipfstat -A
> Authorisation hits: 91 misses 2669
> nospace 0
> added 91
> sendfail 0
> sendok 0
> queok 91
> quefail 0
> expire 0
> #


Ah/./I finall get it.

You are mixing auth and preauth.

With "auth", whenever an packet matches an "auth" rule, the kernel
sends data about the packet to a userland daemon. This daemon can
then decide to allow or block the packet.

WIth preauth, you have a set of temporary rules you an out into the
kernel. When a packet matches such a rule an automatic keep state entry
is created. Given your source code, it seems you want preauth.

So:
1) Add preauth rules to your ipf rules. When packet match such a rule,
ipf will go check the preauth list. If a match is found, processing will
stop. If no match is found, the other (normal) ipf rules will be
evaluated.
2) Change your program to use SIOCADAFR in stead of SIOCAUTHW.

If correct, then you will indeed see the list of rules you entered
into the kernel with SIOCADAFR, when running ipstat -A.

-Guido
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:29 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0