aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_NFLOG.c
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-06-20 21:26:28 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2016-06-24 11:03:22 +0200
commite1dbbc5907b53d8d53c009b3cb3dd2a0366ce45c (patch)
tree19334e637adb37e43907f23d79fd9bfcc305ac90 /net/netfilter/xt_NFLOG.c
parentnetfilter: Allow xt_owner in any user namespace (diff)
downloadlinux-dev-e1dbbc5907b53d8d53c009b3cb3dd2a0366ce45c.tar.xz
linux-dev-e1dbbc5907b53d8d53c009b3cb3dd2a0366ce45c.zip
netfilter: nf_reject_ipv4: don't send tcp RST if the packet is non-TCP
In iptables, if the user add a rule to send tcp RST and specify the non-TCP protocol, such as UDP, kernel will reject this request. But in nftables, this validity check only occurs in nft tool, i.e. only in userspace. This means that user can add such a rule like follows via nfnetlink: "nft add rule filter forward ip protocol udp reject with tcp reset" This will generate some confusing tcp RST packets. So we should send tcp RST only when it is TCP packet. Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_NFLOG.c')
0 files changed, 0 insertions, 0 deletions