end
end
-hosts["inet"] << "127.0.0.1" if hosts["inet"].empty?
-hosts["inet6"] << "::1" if hosts["inet6"].empty?
-
if node[:networking][:firewall][:engine] == "shorewall"
package "shorewall"
notifies :restart, "service[nftables]"
end
+ stop_commands = [
+ "/usr/sbin/nft delete table inet filter"
+ ]
+
+ stop_commands << "/usr/sbin/nft delete table ip nat" if node[:roles].include?("gateway")
+
+ systemd_service "nftables-stop" do
+ service "nftables"
+ dropin "stop"
+ exec_reload ""
+ exec_stop stop_commands
+ end
+
if node[:networking][:firewall][:enabled]
service "nftables" do
action [:enable, :start]