Use legacy iptables

This commit is contained in:
Taylor Helsper 2020-03-04 22:29:58 -06:00 committed by GitHub
parent 5773ee0a52
commit f5a71764bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,10 @@
set -e
set -x
# Make sure we are using legacy iptables
update-alternatives --set iptables /usr/sbin/iptables-legacy || true
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy || true
# Add default rules
ufw default deny incoming
ufw default allow outgoing