diff options
author | Florian Westphal <fw@strlen.de> | 2021-11-28 18:25:53 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-11-28 18:26:17 +0100 |
commit | 273d88a7744ea5638969ad3252acf518e5ec6cc2 (patch) | |
tree | 170071db82e03b590e9d92c8531681cd41f4a0d0 /extensions/libxt_tcpmss.txlate | |
parent | 7213561d9d7a17c4db29c867b2607241941dae5a (diff) |
extensions: tcpmss: add iptables-translate support
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libxt_tcpmss.txlate')
-rw-r--r-- | extensions/libxt_tcpmss.txlate | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extensions/libxt_tcpmss.txlate b/extensions/libxt_tcpmss.txlate new file mode 100644 index 00000000..d3f1b27d --- /dev/null +++ b/extensions/libxt_tcpmss.txlate @@ -0,0 +1,11 @@ +iptables-translate -A INPUT -m tcpmss --mss 42 +nft add rule ip filter INPUT tcp option maxseg size 42 counter + +iptables-translate -A INPUT -m tcpmss ! --mss 42 +nft add rule ip filter INPUT tcp option maxseg size != 42 counter + +iptables-translate -A INPUT -m tcpmss --mss 42:1024 +nft add rule ip filter INPUT tcp option maxseg size 42-1024 counter + +iptables-translate -A INPUT -m tcpmss ! --mss 1461:65535 +nft add rule ip filter INPUT tcp option maxseg size != 1461-65535 counter |