I have written a service to configure iptables rules. What tests should I write for this service? I see the following two approaches to tests: - Dump the iptables rules using iptables-save and verify that they matches the configured rules. - Configure iptables to block certain ports and allow some other ports. Then, run a service on those ports and check if it is possible to reach them. After we have iterated a few times, and converged on the final patch for this service, I will also contribute a similar service for ip6tables.