From ce0824b00957c94af89389fdd48ea43109330d7e Mon Sep 17 00:00:00 2001 From: askiiart Date: Thu, 19 Dec 2024 18:44:56 -0600 Subject: [PATCH] add disable firewall on fedora --- distro-specific.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/distro-specific.bash b/distro-specific.bash index b9c0b06..f1c3eb6 100755 --- a/distro-specific.bash +++ b/distro-specific.bash @@ -15,6 +15,12 @@ elif command_exists "dnf"; then sudo dnf remove libreoffice* atril -y sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y + # disable firewall (poorly) + sudo firewall-cmd --permanent --zone=trusted --set-target=ACCEPT + lines=$(netstat -i | wc -l) + for interface in $(netstat -i | cut -f 1 -d ' ' | tail --lines $((lines - 2))); do + sudo firewall-cmd --zone=trusted --change-interface=$interface + done elif command_exists "rpm-ostree"; then sudo wget https://askiiart.net/repos/fedora/x86_64/askiiart.repo -O /etc/yum.repos.d/askiiart.repo rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y