From 19d14e43d7afdbf7fdd9f8ca40887fc8992d9c96 Mon Sep 17 00:00:00 2001 From: Akash6222 Date: Sat, 6 May 2023 01:05:48 +0530 Subject: [PATCH] added firewalld and enable at startup --- airootfs/etc/skel/.zshrc | 2 +- airootfs/etc/systemd/system/firewalld.service | 11 +++++++++++ .../system/multi-user.target.wants/firewalld.service | 1 + airootfs/root/.zshrc | 2 +- packages.x86_64 | 3 +++ 5 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 airootfs/etc/systemd/system/firewalld.service create mode 120000 airootfs/etc/systemd/system/multi-user.target.wants/firewalld.service diff --git a/airootfs/etc/skel/.zshrc b/airootfs/etc/skel/.zshrc index 1a29504..f9ac4e7 100644 --- a/airootfs/etc/skel/.zshrc +++ b/airootfs/etc/skel/.zshrc @@ -40,7 +40,7 @@ alias remove="sudo pacman -R" alias autoremove="sudo pacman -Rns" # Fix keyring and gnupg mount isuue -alias fix-keys = "sudo rm -rvf /etc/pacman.d/gnupg && sudo pacman-key --init && sudo pacman-key --populate" +alias fix-keys="sudo rm -rvf /etc/pacman.d/gnupg && sudo pacman-key --init && sudo pacman-key --populate" # keyboard ctrl+arrow key issue solved #bindkey '^[[1;5C' forward-word # Ctrl+Right arrow diff --git a/airootfs/etc/systemd/system/firewalld.service b/airootfs/etc/systemd/system/firewalld.service new file mode 100644 index 0000000..c9e2200 --- /dev/null +++ b/airootfs/etc/systemd/system/firewalld.service @@ -0,0 +1,11 @@ +[Unit] +Description=firewalld - dynamic firewall daemon +After=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/firewalld --nofork --nopid + +[Install] +WantedBy=multi-user.target + diff --git a/airootfs/etc/systemd/system/multi-user.target.wants/firewalld.service b/airootfs/etc/systemd/system/multi-user.target.wants/firewalld.service new file mode 120000 index 0000000..d0b36f7 --- /dev/null +++ b/airootfs/etc/systemd/system/multi-user.target.wants/firewalld.service @@ -0,0 +1 @@ +../firewalld.service \ No newline at end of file diff --git a/airootfs/root/.zshrc b/airootfs/root/.zshrc index 1a29504..f9ac4e7 100644 --- a/airootfs/root/.zshrc +++ b/airootfs/root/.zshrc @@ -40,7 +40,7 @@ alias remove="sudo pacman -R" alias autoremove="sudo pacman -Rns" # Fix keyring and gnupg mount isuue -alias fix-keys = "sudo rm -rvf /etc/pacman.d/gnupg && sudo pacman-key --init && sudo pacman-key --populate" +alias fix-keys="sudo rm -rvf /etc/pacman.d/gnupg && sudo pacman-key --init && sudo pacman-key --populate" # keyboard ctrl+arrow key issue solved #bindkey '^[[1;5C' forward-word # Ctrl+Right arrow diff --git a/packages.x86_64 b/packages.x86_64 index 1f4ce0c..4779204 100644 --- a/packages.x86_64 +++ b/packages.x86_64 @@ -206,3 +206,6 @@ mcfly starship zsh-history-substring-search #grml-zsh-config + +# Firewalld +firewalld