Skip to contentSkip to conversation

iptables: add test file for TCPMSS extension

PATCH Applied Aastha Gupta 2 participants 3 messages Oct 16, 2017 – Oct 17, 2017 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iptables: add test file for TCPMSS extension

This adds test file for the recently added TCPMSS extension.

---
 extensions/libxt_TCPMSS.txlate | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 extensions/libxt_TCPMSS.txlate
extensions/libxt_TCPMSS.txlate new file +5 -0
new file mode 100644
index 0000000..6a64d2c
@@ -0,0 +1,5 @@
+iptables-translate -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
+nft add rule ip filter FORWARD tcp flags & (syn|rst) == syn counter tcp option maxseg size set rt mtu
+
+iptables-translate -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 90
+nft add rule ip filter FORWARD tcp flags & (syn|rst) == syn counter tcp option maxseg size set 90
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 1 line · Aastha Gupta

This adds test file for the recently added TCPMSS extension.

I'm taking this last version, it doesn't say v4 but looking at timing, it is the last one you have submitted.

Applied, thanks. If there is anything you need to fix, send me a follow up patch.

#2 lore raw
Quoted 8 lines · Pablo Neira Ayuso
Quoted 1 line · Aastha Gupta

This adds test file for the recently added TCPMSS extension.

I'm taking this last version, it doesn't say v4 but looking at timing, it is the last one you have submitted.

Applied, thanks. If there is anything you need to fix, send me a follow up patch.

Oh, I understand, this is the test file. Other patches add the translation.