From 44014aa2cd48a29e8a5f50865e3fb747a15591ba Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 2 Mar 2025 01:14:53 +0100 Subject: [PATCH] Update --- .../docs/post-install/basic-settings/page.tsx | 8 +- web/app/docs/post-install/network/page.tsx | 10 +- web/app/docs/post-install/security/page.tsx | 150 +++++++++++++++++- web/app/docs/post-install/storage/page.tsx | 6 +- web/app/docs/post-install/system/page.tsx | 10 +- .../docs/post-install/virtualization/page.tsx | 6 +- 6 files changed, 167 insertions(+), 23 deletions(-) diff --git a/web/app/docs/post-install/basic-settings/page.tsx b/web/app/docs/post-install/basic-settings/page.tsx index 4038290..100f88a 100644 --- a/web/app/docs/post-install/basic-settings/page.tsx +++ b/web/app/docs/post-install/basic-settings/page.tsx @@ -155,7 +155,7 @@ export default function BasicSettingsPage() { libguestfs-tools: A set of tools for accessing and modifying virtual machine disk images -

This adjustment automates the following command:

+

This adjustment automates the following command:

-

This adjustment automates the following command:

+

This adjustment automates the following command:

-

This adjustment automates the following command:

+

This adjustment automates the following command:

-

This adjustment automates the following command:

+

This adjustment automates the following command:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

+ {number} + + ) } export default function SecuritySettingsPage() { @@ -15,7 +45,121 @@ export default function SecuritySettingsPage() {

Security Settings

- {/* ... (rest of the component remains the same) */} +

+ The Security Settings category focuses on enhancing the security of your Proxmox VE + installation. These settings are crucial for protecting your virtualization environment from potential threats + and unauthorized access. +

+

Available Optimizations

+ +

+ + Disable portmapper/rpcbind +

+

This optimization disables the portmapper/rpcbind service for improved security.

+

+ Why it's beneficial: Disabling unnecessary services like portmapper/rpcbind reduces the attack + surface of your system. This service is often not needed in modern environments and can be a potential security + risk if left enabled. +

+

This adjustment automates the following commands:

+ + +

+ + Install Lynis Security Tool +

+

+ This optimization installs Lynis, a powerful security auditing tool for Unix-based systems. +

+

+ Why it's beneficial: Lynis helps identify security vulnerabilities, configuration errors, and + provides recommendations for system hardening. Regular security audits with Lynis can significantly improve your + system's overall security posture. +

+

This adjustment automates the following commands:

+ + +

+ + Protect Web Interface with fail2ban +

+

+ This optimization installs and configures fail2ban to protect the Proxmox VE web interface from brute-force + attacks. +

+

+ Why it's beneficial: fail2ban helps prevent unauthorized access attempts by temporarily banning + IP addresses that show malicious signs, such as too many password failures. This adds an extra layer of security + to your Proxmox VE web interface. +

+

This adjustment automates the following commands:

+ /etc/fail2ban/filter.d/proxmox.conf +[Definition] +failregex = pvedaemon\[.*authentication failure; rhost= user=.* msg=.* +ignoreregex = +EOF + +# Configure Proxmox jail +cat < /etc/fail2ban/jail.d/proxmox.conf +[proxmox] +enabled = true +port = https,http,8006,8007 +filter = proxmox +logpath = /var/log/daemon.log +maxretry = 3 +bantime = 3600 +findtime = 600 +EOF + +# Configure general fail2ban settings +cat < /etc/fail2ban/jail.local +[DEFAULT] +ignoreip = 127.0.0.1 +bantime = 86400 +maxretry = 2 +findtime = 1800 +[ssh-iptables] +enabled = true +filter = sshd +action = iptables[name=SSH, port=ssh, protocol=tcp] +logpath = /var/log/auth.log +maxretry = 2 +findtime = 3600 +bantime = 32400 +EOF + +# Enable and restart fail2ban service +systemctl enable fail2ban +systemctl restart fail2ban + `} + /> + +
+

Automatic Application

+

+ All of these optimizations are automatically applied when selected in the Security section. This automation + ensures that these beneficial settings are applied consistently and correctly, saving time and reducing the + potential for human error during manual configuration. +

+
) } diff --git a/web/app/docs/post-install/storage/page.tsx b/web/app/docs/post-install/storage/page.tsx index 53b63d5..aa7bde2 100644 --- a/web/app/docs/post-install/storage/page.tsx +++ b/web/app/docs/post-install/storage/page.tsx @@ -64,7 +64,7 @@ export default function StorageSettingsPage() { operations and allow for more frequent backups, improving data protection. This is particularly important in environments with large amounts of data or tight backup windows.

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

> /etc/vzdump.conf point-in-time recovery, protecting against data loss or corruption. This is especially useful in virtualized environments where quick recovery options are crucial.

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

> ~/.bash_profile on its own. This is particularly crucial in remote or lights-out data center environments where immediate physical access might not be possible.

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands:

-

This adjustment automates the following commands:

+

This adjustment automates the following commands: