test: Deal with iptable rules moving around
test: Deal with iptable rules moving around

A rule that is added as number 1 will not stay number 1 if some other
rules are added in the background.  This happens on ubuntu-1604 at
least.

To deal with this, we delete rules based on their specification, not
their position.

Closes #10004

moraleslazaro/cockpit,deryni/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,cockpituous/cockpit,andreasn/cockpit,martinpitt/cockpit,cockpit-project/cockpit,deryni/cockpit,cockpituous/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,garrett/cockpit,mvollmer/cockpit,andreasn/cockpit,cockpituous/cockpit,garrett/cockpit,cockpituous/cockpit,mvollmer/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,martinpitt/cockpit,mvollmer/cockpit,andreasn/cockpit,andreasn/cockpit,martinpitt/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,andreasn/cockpit,garrett/cockpit,deryni/cockpit,deryni/cockpit,mvollmer/cockpit,garrett/cockpit,martinpitt/cockpit,garrett/cockpit,andreasn/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,deryni/cockpit,deryni/cockpit,deryni/cockpit,andreasn/cockpit