From e379de92c1868887a1c7f00b87954a1062e2ff5a Mon Sep 17 00:00:00 2001 From: "tiago.ferreira" Date: Sun, 8 Feb 2026 18:03:02 +0000 Subject: [PATCH] Atualizar pisrc_compartilha_internet.sh --- pisrc_compartilha_internet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisrc_compartilha_internet.sh b/pisrc_compartilha_internet.sh index 5cdb300..43d9701 100644 --- a/pisrc_compartilha_internet.sh +++ b/pisrc_compartilha_internet.sh @@ -1,7 +1,7 @@ #!/bin/bash read -p "Qual a interface de saĆ­da para a internet? " IFACE -nft add table -exist ip nat -nft add chain -exist ip nat postrouting { type nat hook postrouting priority 100 \; } +nft add table ip nat +nft add chain ip nat postrouting { type nat hook postrouting priority 100 \; } if ! nft list chain ip nat postrouting | grep -q "oifname \"$IFACE\" masquerade"; then nft add rule ip nat postrouting oifname "$IFACE" masquerade fi