From: Florian Westphal Date: Sat, 5 May 2018 09:21:48 +0000 (+0200) Subject: extensions: add xlate test for ipables -f X-Git-Tag: v1.8.0~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0ef8619de6c28d1ad1fbc875aeed7a6b1159810;p=thirdparty%2Fiptables.git extensions: add xlate test for ipables -f Signed-off-by: Florian Westphal --- 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