@@ -83,10 +83,18 @@ sys_hardening() {
8383 # Install usbguard
8484 echo Installing usbguard for USB device control...
8585 sudo dnf install -y usbguard usbguard-notifier
86- # Generate config for current hardware
8786 sudo usbguard generate-policy | sudo tee /etc/usbguard/rules.conf > /dev/null
88- # Enable and start the service
8987 sudo systemctl enable --now usbguard
88+ echo
89+ # Install fail2ban
90+ echo " Installing and enabling fail2ban to prevent bruteforcing attacks..."
91+ sudo dnf install -y fail2ban
92+ sudo systemctl enable --now fail2ban
93+ echo
94+ # Install Secure Blue's hardened_malloc
95+ echo " Installing hardened_malloc found in GrapheneOS and SecureBlue..."
96+ sudo dnf copr enable secureblue/hardened_malloc
97+ sudo dnf install -y hardened_malloc
9098
9199 # Enable MAC address randomization for Wi-Fi
92100 echo Enabling MAC address randomization for Wi-Fi...
@@ -258,7 +266,7 @@ install_winboat() {
258266 echo " Installing and setuping WinBoat, make sure you have virtualization enabled in your BIOS..."
259267 sudo dnf install docker docker-compose freerdp.x86_64 -y
260268 # sudo groupadd docker
261- # udo usermod -aG docker "$USER"
269+ # sudo usermod -aG docker "$USER"
262270 echo -e " ip_tables\niptable_nat" | sudo tee /etc/modules-load.d/iptables.conf
263271 echo " Getting and installing the WinBoat RPM file..."
264272 curl -s https://api.github.com/repos/TibixDev/winboat/releases/latest | grep -oP ' "browser_download_url": "\K[^"]*\.rpm' | head -1 | xargs curl -L -o /tmp/winboat.rpm
0 commit comments