Closed chorankates-sfdc closed 6 years ago
@pferriola @petersenallen - looks like i was making the problem harder than it needed to be.. confirmed this works as expected on RHEL6, need to confirm with 7 and check CentOS and Debian, but even if it doesn't fix everything, it does fix @pjperger's reported issue
resolving #84 by detecting iptables output and presuming it is enabled, allowing final line in output to flip to disabled as needed.
relevant iptables information in
service --status-all
when iptables is running:same, when iptables is disabled:
so now, if the table headers are matched, set iptables to
running
, and if it isn't, we'll catch the final line and flip it back tostopped