Check firewall on slaves to detect security holes

In different deployment scenarios Puppet generates
different firewall rules and potentially can add
permit rule, which will allow access to unused or
secure ports/services. We should check iptables
for security holes on slaves:
 1. listen on admin interface on some unused port
    (tcp or udp);
 2. try to connect to that port from master node
    and send data;
 3. check that connection attempt was blocked and
    data was not received.

Change-Id: I1f625a75f4febf372948c47a1c920b6aed885a4b
Closes-bug: #1346265
(cherry picked from commit 0790465b4c4b5f7bde6a13a964fbaa7ced83648d)
Merge "Check firewall on slaves to detect security holes" into stable/5.0