From c0ef8619de6c28d1ad1fbc875aeed7a6b1159810 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sat, 5 May 2018 11:21:48 +0200 Subject: extensions: add xlate test for ipables -f Signed-off-by: Florian Westphal --- extensions/libxt_tcp.txlate | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'extensions') diff --git a/extensions/libxt_tcp.txlate b/extensions/libxt_tcp.txlate index ccec4362..bba63324 100644 --- a/extensions/libxt_tcp.txlate +++ b/extensions/libxt_tcp.txlate @@ -18,3 +18,9 @@ nft add rule ip filter INPUT tcp flags & (fin|syn|rst|ack) == syn counter accept iptables-translate -A INPUT -p tcp --syn --dport 80 -j ACCEPT nft add rule ip filter INPUT tcp dport 80 tcp flags & (fin|syn|rst|ack) == syn counter accept + +iptables-translate -A INPUT -f -p tcp +nft add rule ip filter INPUT ip frag-off & 0x1fff != 0 ip protocol tcp counter + +iptables-translate -A INPUT ! -f -p tcp --dport 22 +nft add rule ip filter INPUT ip frag-off & 0x1fff 0 tcp dport 22 counter -- cgit v1.2.3