Update iptables.sh (#429)

Bookworm (12) is not accounted for in the iptables script. End up with an almost blank chain on install.
This commit is contained in:
Harry Foster 2024-07-07 03:40:43 +01:00 committed by GitHub
parent 49930c411a
commit 6d76c2fe0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -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