X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/d6e70139959efcd6f0ae1f5149d0d02021c21f88..ad1da4a00772c18bbc6392d94c603208c7a8db05:/cookbooks/networking/templates/default/shorewall-interfaces.erb diff --git a/cookbooks/networking/templates/default/shorewall-interfaces.erb b/cookbooks/networking/templates/default/shorewall-interfaces.erb index d8a5705d2..4701b9641 100644 --- a/cookbooks/networking/templates/default/shorewall-interfaces.erb +++ b/cookbooks/networking/templates/default/shorewall-interfaces.erb @@ -1,13 +1,15 @@ # DO NOT EDIT - This file is being maintained by Chef -# ZONE INTERFACE BROADCAST OPTIONS +?FORMAT 2 + +# ZONE INTERFACE OPTIONS <% node[:networking][:interfaces].each do |name,interface| -%> <% if interface[:interface] && interface[:family] == "inet" -%> <% if interface[:role] == "internal" -%> -loc <%= interface[:interface] %> detect nosmurfs,tcpflags +loc <%= interface[:interface] %> nosmurfs,tcpflags <% elsif interface[:role] == "external" -%> -net <%= interface[:interface] %> detect nosmurfs,tcpflags +net <%= interface[:interface] %> nosmurfs,tcpflags <% end -%> <% end -%> <% end -%> -loc tun+ detect nosmurfs,tcpflags +loc tun+ nosmurfs,tcpflags