https://github.com/onair-santa/fail2ban-1-click
Simple 1-click install Fail2ban
https://github.com/onair-santa/fail2ban-1-click
debian fail2ban nftables shell shell-script vps
Last synced: 4 months ago
JSON representation
Simple 1-click install Fail2ban
- Host: GitHub
- URL: https://github.com/onair-santa/fail2ban-1-click
- Owner: Onair-santa
- License: mit
- Created: 2024-03-26T19:32:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T03:17:42.000Z (6 months ago)
- Last Synced: 2025-04-09T13:46:53.538Z (6 months ago)
- Topics: debian, fail2ban, nftables, shell, shell-script, vps
- Language: Shell
- Homepage:
- Size: 87.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
##
(Debian11, Ubuntu20) Fail2ban-1-click
### Fail2ban - the open-source security solution for youre server
### Bash script installs Fail2ban and settings file, and installs nftables to block IP addresses

#### 💠Ensure that the `sudo` and `wget` packages are installed on your system:```
apt install -y sudo wget
```#### 💠Root Access is Required. If the user is not root, first run:
```
sudo -i
```#### 💠Then:
```
wget "https://raw.githubusercontent.com/Onair-santa/Fail2ban-1-click/main/fail2ban.sh" -O fail2ban.sh && chmod +x fail2ban.sh && bash fail2ban.sh
```
#### It performs the following tasks:
- Remove firewalld, ufw or iptables
- Install nftables
- Open ports 22, 443, 80
- Install Fail2ban
- install config jail.local
- Starting fail2ban
#### Config Fail2ban:
- jail enabled: sshd(port 22), recidive(allport)
- Status command:
```
fail2ban-client status
fail2ban-client status sshd
fail2ban-client status recidive
```#### 💠Thanks
https://github.com/fail2ban/fail2ban