Date: Thu, 7 Apr 2011 10:21:22 +0200 From: Quentin Narvor <quentin.narvor@gmail.com> To: freebsd-net@freebsd.org Cc: nicolas.greneche@univ-orleans.fr Subject: [PATCH] New feature in Packet Filter Message-ID: <BANLkTi=fMCfzJrTavK3Pe0zUXHbQgpPE=Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hello,
My name is Quentin Narvor and I am currently working on intrusion detection.
I use Freebsd 8.2 and I recently needed pf to be able to dynamically fill in
tables according pass rule.
For performances reasons, I didn't want to do it with a script and pfctl.
Then, with the help of Mr Nicolas Greneche, I made this patch named "add".
It enables pf to add src ip or dst ip in a table when a match occurs on a
pass rule.
I submit this patch to your attention. Is this feature is of interest to be
added in PF mainstream ?
You will find the patch and its documentation in attachment.
Let me know if you think that some modifications are needed.
Best regards,
Quentin Narvor
[-- Attachment #2 --]
%PDF-1.4
%äüöß
2 0 obj
<</Length 3 0 R/Filter/FlateDecode>>
stream
xS0W\H*ٲcClvzxBK#9ɣmLҌzv?/?c/;݂~g͋~y'OᲬ?!$>pH(R2L7|
t2θB
\l&I}
<26W0hntcYWaρxLD<xi`<hHJAXn1]3J0l9ci*zG@`!DO7S|AeꆑT3Yh*nٲ4WJ
R.kl/5(
&bMتnVRDmx_8uGKƳ5 :Et?Øݠ3kUSdmzhGEVt:O D)8CmokZ[2=ۡ(ۦ=L/5ĜjBg;懷l7~mH S>s-uQi9ԡv:+oM*Dd8~r A
endstream
endobj
3 0 obj
523
endobj
5 0 obj
<</Length 6 0 R/Filter/FlateDecode>>
stream
xO0>jF,0dz[0PzC{dﶫ6M1[q2/oZh~l7*:u4CM-~XvGb3|jޞ?
B{e"
VI:r<t.ݿ\ŏûqKp!./ p*(@@Z hЂSM}.X@?W ,oT
[:Wt55nUz'q:K4ݳ *뜱EXI~MZʬV?7)4Qb`Hq #ӰΑ+%ߢgj͡cSYZ"B:@kEY ;Sf(
&nٜȫLE+JuઃSh2N0
'47aH8y δ.z҂BOJS?CG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