Skip to contentSkip to conversation

selftests: netfilter: nft_tproxy.sh: add tcp tests

PATCH Superseded Antonio Ojea 1 participant 1 message Sep 9, 2024

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: netfilter: nft_tproxy.sh: add tcp tests

The TPROXY functionality is widely used, however, there are only mptcp selftests covering this feature.

The selftests represent the most common scenarios and can also be used as selfdocumentation of the feature.

UDP tests are left for a future patch since present some technical challenges due to the connectionless nature of the protocol.

---
 .../testing/selftests/net/netfilter/Makefile  |   1 +
 .../selftests/net/netfilter/nft_tproxy.sh     | 367 ++++++++++++++++++
 2 files changed, 368 insertions(+)
 create mode 100755 tools/testing/selftests/net/netfilter/nft_tproxy.sh
tools/testing/selftests/net/netfilter/Makefile +1 -0
index d13fb5ea3e89..f378344f59cc 100644
@@ -26,6 +26,7 @@ TEST_PROGS += nft_nat.sh
 TEST_PROGS += nft_nat_zones.sh
 TEST_PROGS += nft_queue.sh
 TEST_PROGS += nft_synproxy.sh
+TEST_PROGS += nft_tproxy.sh
 TEST_PROGS += nft_zones_many.sh
 TEST_PROGS += rpath.sh
 TEST_PROGS += xt_string.sh
tools/testing/selftests/net/netfilter/nft_tproxy.sh new file +367 -0

367 lines not on this page · raw message

Signature · 1 line
2.46.0.469.g59c65b2a67-goog