### Get and Execute Proxmox Toolbox Script Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/README.md Downloads the Proxmox Toolbox script from GitHub and executes it. This is the primary method to get started with the tool. ```shell wget -qO proxmox_toolbox.sh https://raw.githubusercontent.com/Tontonjo/proxmox_toolbox/main/proxmox_toolbox.sh && bash proxmox_toolbox.sh ``` -------------------------------- ### Install Fail2Ban on Proxmox Backup Server Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/pbs/README.md Installs the Fail2Ban package on a Proxmox Backup Server using apt. This is the initial step for setting up Fail2Ban protection. ```bash apt -y update; apt -y install fail2ban ``` -------------------------------- ### Manually Import ZFS Pool Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/README.md Steps to manually import a ZFS storage pool. This process includes listing available pools, importing a specific pool with force option, and then adding it as a storage in Proxmox or PBS. ```shell zpool import zpool import -f $poolname ``` -------------------------------- ### Backup Configuration Only Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/README.md Initiates a backup of the Proxmox configuration files without performing other operations. The backup is saved as a tar.gz archive in the directory specified by `backupdir` in the script. ```shell bash proxmox_toolbox.sh -b ``` -------------------------------- ### Manually Mount Directory Storage Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/README.md Instructions for manually mounting directory-based storage. This involves sourcing a systemd mount unit file, updating the fstab, and then mounting the filesystem. It also covers verifying the mount and adding it to Proxmox. ```shell source /etc/systemd/system/mnt-datastore-$datastorename.mount mkdir -p "$Where" echo "$What $Where $Type $Options 0 2" >> /etc/fstab mount -a ``` -------------------------------- ### Fail2ban Client Commands Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/README.md Provides essential commands for managing Fail2ban, including checking status, listing jails, and unbanning IP addresses. These commands are useful for monitoring and securing SSH and web interfaces. ```APIDOC fail2ban-client status - Description: Displays the status of all active Fail2ban jails. - Returns: A list of enabled jails. fail2ban-client status $jailname - Description: Shows the status of a specific Fail2ban jail, including currently banned IP addresses. - Parameters: - jailname: The name of the Fail2ban jail to check (e.g., sshd, pve, pbs). - Returns: Detailed status of the specified jail. fail2ban-client set $jailname unbanip $ipaddress - Description: Unbans a specific IP address from a Fail2ban jail. - Parameters: - jailname: The name of the Fail2ban jail. - ipaddress: The IP address to unban. - Returns: Confirmation of the unban action. ``` -------------------------------- ### Configure Fail2Ban for Proxmox Backup Server Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/pbs/README.md Copies the custom filter and jail configuration files from the cloned repository to the Fail2Ban configuration directory and restarts the service. This enables the specific protection for Proxmox Backup Server. ```bash # Download or clone this repository git clone https://github.com/inettgmbh/fail2ban-proxmox-backup-server.git # Put filter.d/proxmox-backup-server.conf contents to /etc/fail2ban/filter.d/proxmox-backup-server.conf cp filter.d/proxmox-backup-server.conf /etc/fail2ban/filter.d/proxmox-backup-server.conf # Put jail.d/proxmox-backup-server.conf to /etc/fail2ban/jail.d/proxmox-backup-server.conf cp jail.d/proxmox-backup-server.conf /etc/fail2ban/jail.d/proxmox-backup-server.conf # Restart Fail2Ban Service systemctl restart fail2ban.service ``` -------------------------------- ### Check Fail2Ban Jail Status Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/pbs/README.md Verifies that the new 'proxmox-backup-server' jail is active and listed among the running Fail2Ban jails. It shows the total number of active jails. ```bash fail2ban-client status Status |- Number of jail: 2 `- Jail list: proxmox-backup-server, sshd ``` -------------------------------- ### Check Specific Proxmox Backup Server Jail Status Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/pbs/README.md Provides detailed status for the 'proxmox-backup-server' jail, including currently failed attempts, total failed attempts, and the log file being monitored. It also shows banned IP addresses. ```bash fail2ban-client status proxmox-backup-server Status for the jail: proxmox-backup-server |- Filter | |- Currently failed: 0 | |- Total failed: 0 | `- File list: /var/log/proxmox-backup/api/auth.log `- Actions |- Currently banned: 0 |- Total banned: 0 `- Banned IP list: ``` -------------------------------- ### Update Host and Remove Subscription Message Source: https://github.com/tontonjo/proxmox_toolbox/blob/main/README.md Triggers a host update and automatically removes the Proxmox subscription message if no enterprise repository is configured. It can be run via the script's `-u` flag or the `proxmox-update` alias created after the first run. ```shell bash proxmox_toolbox.sh -u ``` ```shell proxmox-update ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.