Skip to content

Instantly share code, notes, and snippets.

View webbgamers's full-sized avatar
🧠
WHY IS IT ALWAYS THINKING

Garrett Webb webbgamers

🧠
WHY IS IT ALWAYS THINKING
View GitHub Profile
@webbgamers
webbgamers / ufw-removal.sh
Last active May 2, 2022 07:48
UFW full removal script
#!/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