Trying the test on a local VM I noticed spurious errors from nc, complaining about an address being already in use. Patch 1 fixes this. Validating the notrack workaround led to the minor simplifications in patch 2. Phil Sutter (2): selftests: nft_nat: Improve port shadow test stability selftests: nft_nat: Simplify port shadow notrack test tools/testing/selftests/netfilter/nft_nat.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -- 2.33.0