selftests: netfilter: nft_tproxy.sh: add tcp tests
Subsystems (3)
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.
Signed-off-by Antonio Ojea <[email protected]>
--- .../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
@@ -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