Explorar el Código

Update iptables.sh (#429)

Bookworm (12) is not accounted for in the iptables script. End up with an almost blank chain on install.
Harry Foster hace 1 año
padre
commit
6d76c2fe0b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      debian/resources/iptables.sh

+ 5 - 0
debian/resources/iptables.sh

@@ -22,6 +22,11 @@ if [ ."$os_codename" = ."bullseye" ]; then
 	update-alternatives --set iptables /usr/sbin/iptables-legacy
 	update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
 fi
+if [ ."$os_codename" = ."bookworm" ]; then
+	apt-get install -y iptables
+	update-alternatives --set iptables /usr/sbin/iptables-legacy
+	update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
+fi
 
 #remove ufw
 ufw reset