Skip to content

Commit

Permalink
Merge pull request #58 from TheMeier/master
Browse files Browse the repository at this point in the history
load rules on reboot for rhel >=7
  • Loading branch information
rtkrruvinskiy committed Nov 6, 2014
2 parents bd8461b + a57e654 commit b046ad8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,16 @@
content "#!/bin/bash\nip#{v}tables-restore < #{iptable_rules}\n"
action :create
end
when 'rhel'
if node['platform_version'].to_i >= 7
package "iptables-services"
service "iptables" do
action [ :enable, :start ]
end
service "ip6tables" do
action [ :enable, :start ]
end
end
end
end

0 comments on commit b046ad8

Please sign in to comment.