X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/534043ca66b46815b0338475a60ad0fac4a90323..1d06c44847ea4ebca7cc114902d149041476fc00:/cookbooks/networking/templates/default/nftables.conf.erb diff --git a/cookbooks/networking/templates/default/nftables.conf.erb b/cookbooks/networking/templates/default/nftables.conf.erb index a3dae7143..8594cc244 100644 --- a/cookbooks/networking/templates/default/nftables.conf.erb +++ b/cookbooks/networking/templates/default/nftables.conf.erb @@ -112,7 +112,7 @@ table inet filter { type filter hook input priority filter; <%- unless @interfaces.empty? %> - iif { $external-interfaces } jump incoming + iifname { $external-interfaces } jump incoming <%- end %> accept @@ -122,8 +122,8 @@ table inet filter { type filter hook forward priority filter; <%- unless @interfaces.empty? %> - iif { $external-interfaces } jump incoming - oif { $external-interfaces } jump outgoing + iifname { $external-interfaces } jump incoming + oifname { $external-interfaces } jump outgoing <%- end %> accept @@ -133,7 +133,7 @@ table inet filter { type filter hook output priority filter; <%- unless @interfaces.empty? %> - oif { $external-interfaces } jump outgoing + oifname { $external-interfaces } jump outgoing <%- end %> accept @@ -147,7 +147,7 @@ table ip nat { <%- node.interfaces(:role => :external, :family => :inet).each do |external| %> <%- node.interfaces(:role => :internal, :family => :inet).each do |internal| %> - oif { <%= external[:interface] %> } ip saddr { <%= internal[:network] %>/<%= internal[:prefix] %> } snat <%= external[:address] %> + oifname { <%= external[:interface] %> } ip saddr { <%= internal[:network] %>/<%= internal[:prefix] %> } snat <%= external[:address] %> <%- end %> <%- end %> }