diff options
author | Eric Dumazet <edumazet@google.com> | 2013-06-20 14:52:22 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-06-20 20:28:49 +0200 |
commit | 681f130f39e10087475383e6771b9366e26bab0c (patch) | |
tree | 45f06119d209eb5031c0f80425664c7ad5e9c96e /fs/qnx6 | |
parent | netfilter: nf_conntrack: avoid large timeout for mid-stream pickup (diff) | |
download | linux-681f130f39e10087475383e6771b9366e26bab0c.tar.xz linux-681f130f39e10087475383e6771b9366e26bab0c.zip |
netfilter: xt_socket: add XT_SOCKET_NOWILDCARD flag
xt_socket module can be a nice replacement to conntrack module
in some cases (SYN filtering for example)
But it lacks the ability to match the 3rd packet of TCP
handshake (ACK coming from the client).
Add a XT_SOCKET_NOWILDCARD flag to disable the wildcard mechanism.
The wildcard is the legacy socket match behavior, that ignores
LISTEN sockets bound to INADDR_ANY (or ipv6 equivalent)
iptables -I INPUT -p tcp --syn -j SYN_CHAIN
iptables -I INPUT -m socket --nowildcard -j ACCEPT
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'fs/qnx6')
0 files changed, 0 insertions, 0 deletions