mirror of
https://github.com/inspec/inspec
synced 2025-03-07 16:57:43 +00:00
It's much simpler than listing every single possible platform and it makes this actually work on Oracle Signed-off-by: Tim Smith <tsmith@chef.io>
12 lines
474 B
Ruby
12 lines
474 B
Ruby
# encoding: utf-8
|
|
# author: Stephan Renatus
|
|
|
|
if platform_family?('rhel', 'debian', 'fedora')
|
|
execute 'iptables -A INPUT -i eth0 -p tcp -m tcp '\
|
|
'--dport 80 -m state --state NEW -m comment '\
|
|
'--comment "http on 80" -j ACCEPT'
|
|
execute 'iptables -N derby-cognos-web'
|
|
execute 'iptables -A INPUT -j derby-cognos-web'
|
|
execute 'iptables -A derby-cognos-web -p tcp -m tcp --dport 80 '\
|
|
'-m comment --comment "derby-cognos-web" -j ACCEPT'
|
|
end
|