This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script completely removes all the iptables chains ufw creates and doesn't remove after install | |
if [ "${EUID:-$(id -u)}" -ne 0 ]; then | |
echo Run this as root. | |
return 1 2> /dev/null | |
exit 1 | |
fi | |
if command -v ufw 2> /dev/null; then |