Skip to content

Commit

Permalink
Always include a NAT table when on kernel 3.7 or better.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheald committed Feb 10, 2016
1 parent 5863d15 commit fb821bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/default/ip6tables-rules.erb
@@ -1,5 +1,5 @@
<% if node["simple_iptables"]["ipv6"]["tables"].include?('nat') &&
node["simple_iptables"]["ipv6"]["rules"]["nat"].size > 0 %>
Gem::Version.new(/\d+(\.\d+(.\d+)?)?/.match(node['kernel']['release'])[0]) >= Gem::Version.new('3.7') %>
# This file generated by Chef. Changes will be overwritten.
*nat
:PREROUTING <%= node["simple_iptables"]["ipv6"]["policy"]["nat"]["PREROUTING"] || "ACCEPT" %> [0:0]
Expand Down

0 comments on commit fb821bd

Please sign in to comment.