Setup basic firewall rules and OpenSSH
This commit is contained in:
12
setup
12
setup
@@ -136,7 +136,7 @@ exit
|
|||||||
printf '\033c'
|
printf '\033c'
|
||||||
|
|
||||||
# Installing programs
|
# Installing programs
|
||||||
sudo pacman -Syu --noconfirm hyprland polkit xdg-desktop-portal-hyprland xdg-desktop-portal-gtk hyprpaper hypridle hyprlock hyprpolkitagent waybar git sxiv bash-completion mpv ffmpeg fzf man flameshot neovim dunst curl htop lazygit pavucontrol plocate pipewire lib32-pipewire pipewire-audio pipewire-alsa wireplumber pipewire-pulse 7zip rsync openssh starship ttf-terminus-nerd reflector ranger qutebrowser xclip udiskie alacritty rofi bluez bluez-utils blueman otf-font-awesome perl-image-exiftool grim brightnessctl
|
sudo pacman -Syu --noconfirm hyprland polkit xdg-desktop-portal-hyprland xdg-desktop-portal-gtk hyprpaper hypridle hyprlock hyprpolkitagent waybar git sxiv bash-completion mpv ffmpeg fzf man flameshot neovim dunst curl htop lazygit pavucontrol plocate pipewire lib32-pipewire pipewire-audio pipewire-alsa wireplumber pipewire-pulse 7zip rsync openssh starship ttf-terminus-nerd reflector ranger qutebrowser xclip udiskie alacritty rofi bluez bluez-utils blueman otf-font-awesome perl-image-exiftool grim brightnessctl ufw
|
||||||
|
|
||||||
sudo systemctl enable bluetooth
|
sudo systemctl enable bluetooth
|
||||||
|
|
||||||
@@ -1169,6 +1169,16 @@ sudo chmod +x ~/.local/scripts/fuzzyopen
|
|||||||
sudo chmod +x ~/.local/scripts/randomwp
|
sudo chmod +x ~/.local/scripts/randomwp
|
||||||
sudo chmod +x ~/.local/scripts/updatetheme
|
sudo chmod +x ~/.local/scripts/updatetheme
|
||||||
|
|
||||||
|
# Configuring firewall and OpenSSH
|
||||||
|
sudo systemctl enable ufw
|
||||||
|
sudo ufw default deny
|
||||||
|
echo "Input the IP of your Network with proper CIDR notation:"
|
||||||
|
read cidr
|
||||||
|
sudo ufw allow from "$cidr"
|
||||||
|
sudo ufw limit ssh
|
||||||
|
sudo ufw enable
|
||||||
|
sudo systemctl enable sshd
|
||||||
|
|
||||||
# Downloading wallpapers
|
# Downloading wallpapers
|
||||||
|
|
||||||
cd $HOME
|
cd $HOME
|
||||||
|
|||||||
Reference in New Issue
Block a user