summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_switchdev.c
diff options
context:
space:
mode:
authorStéphane Veyret2019-05-25 15:30:58 +0200
committerPablo Neira Ayuso2019-06-17 16:35:20 +0200
commit857b46027d6f91150797295752581b7155b9d0e1 (patch)
treec3408c8afa62515ec21cfc5f007af55ea8291dc5 /net/bridge/br_switchdev.c
parentnetfilter: ipv6: Fix undefined symbol nf_ct_frag6_gather (diff)
downloadkernel-qcow2-linux-857b46027d6f91150797295752581b7155b9d0e1.tar.gz
kernel-qcow2-linux-857b46027d6f91150797295752581b7155b9d0e1.tar.xz
kernel-qcow2-linux-857b46027d6f91150797295752581b7155b9d0e1.zip
netfilter: nft_ct: add ct expectations support
This patch allows to add, list and delete expectations via nft objref infrastructure and assigning these expectations via nft rule. This allows manual port triggering when no helper is defined to manage a specific protocol. For example, if I have an online game which protocol is based on initial connection to TCP port 9753 of the server, and where the server opens a connection to port 9876, I can set rules as follow: table ip filter { ct expectation mygame { protocol udp; dport 9876; timeout 2m; size 1; } chain input { type filter hook input priority 0; policy drop; tcp dport 9753 ct expectation set "mygame"; } chain output { type filter hook output priority 0; policy drop; udp dport 9876 ct status expected accept; } } Signed-off-by: Stéphane Veyret <sveyret@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/bridge/br_switchdev.c')
0 files changed, 0 insertions, 0 deletions