#!/bin/bash

set -e

RED='\e[1;31m'

if [[ "$EUID" -ne "0" ]]; then
        echo -e $RED "Run this script as root or with the sudo command to continue."
        exit 1
fi

systemctl disable --now iptables || true
systemctl disable --now ip6tables || true
systemctl disable --now netfilter-persistent || true
systemctl disable --now nftables || true
systemctl disable --now firewalld || true
