Have the iptables script remove the ufw.

This commit is contained in:
FusionPBX 2021-11-13 12:50:15 -07:00 committed by GitHub
parent 56a1280caa
commit c64169c145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ if [ ."$os_codename" = ."bullseye" ]; then
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
fi
#remove ufw
ufw disable
apt-get remove ufw
#apt-get purge ufw
#run iptables commands
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT