Suricata is a network Intrusion Detection System, Intrusion Prevention System and Network Security Monitoring engine developed by the OISF and the Suricata community.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Eric Leblond 1e600c1054 source-nfq: add simulated non-terminal NFQUEUE verdict
This patch adds a new mode for NFQ inline mode. The idea is to
simulate a non final NFQUEUE rules.
This permit to do send all needed packets to suricata via a simple
FORWARD rule:
    iptables -I FORWARD -m mark ! --mark $MARK/$MASK -j NFQUEUE
And below, we have a standard filtering ruleset.

To do so, suricata issues a NF_REPEAT instead of a NF_ACCEPT verdict and
put a mark ($MARK) with respect to a mask ($MASK) on the handled packet.

NF_REPEAT verdict has for effect to have the packet reinjected at start
of the hook after the verdict. As it has been marked by suricata during
the verdict it will not rematch the initial rules and make his way to
the following classical ruleset.

Mode, mark and mask can be configured via suricata.yaml file with the
following syntax:
   nfq:
     repeat_mode: (false|true)
     mark: $MARK
     mask: $MASK
Default is false to preserve backward compatibility.

Signed-off-by: Eric Leblond <eric@regit.org>
15 years ago
benches Initial add of the files. 16 years ago
doc Doc update for EPEL install link 15 years ago
libhtp Apply revision 233 and 234 from libhtp to improve memory handling when Suricata runs out of memory. 15 years ago
m4 Prelude plugin: add detection in configure script 16 years ago
qa small operator fixes to qa script 15 years ago
src source-nfq: add simulated non-terminal NFQUEUE verdict 15 years ago
.gitignore Import .gitignore file. 15 years ago
COPYING Initial add of the files. 16 years ago
ChangeLog Initial add of the files. 16 years ago
LICENSE import of gplv2 LICENSE 16 years ago
Makefile.am Add missing 'reference' to reference.config to Makefile.am. 15 years ago
Makefile.cvs Initial add of the files. 16 years ago
acsite.m4 Added C99 defs/macros to acsite.m4 for CentOS 16 years ago
autogen.sh Add initial support for reading packets from a DAG card, we only support reading from a single stream at this time. 15 years ago
classification.config Import of classification.config 15 years ago
configure.in source-nfq: add simulated non-terminal NFQUEUE verdict 15 years ago
depcomp Update autojunk.sh + build update. 16 years ago
doxygen.cfg more project name updates 16 years ago
install-sh Update autojunk.sh + build update. 16 years ago
missing Update autojunk.sh + build update. 16 years ago
mkinstalldirs Update autojunk.sh + build update. 16 years ago
reference.config Add the ET reference.config file as a default 15 years ago
suricata.yaml source-nfq: add simulated non-terminal NFQUEUE verdict 15 years ago