diff options
| -rw-r--r-- | .bashrc | 3 | ||||
| -rw-r--r-- | setup_fail2ban.sh | 4 |
2 files changed, 7 insertions, 0 deletions
@@ -17,3 +17,6 @@ alias g="git" alias grep.lines='grep -rnw . -e' alias sl="ls" alias ls="ls -la" +alias ..="cd .." +alias f2b.ssh="sudo fail2ban-client status ssh" +alias ports="sudo ss -atpu" diff --git a/setup_fail2ban.sh b/setup_fail2ban.sh new file mode 100644 index 0000000..b817ee6 --- /dev/null +++ b/setup_fail2ban.sh @@ -0,0 +1,4 @@ +#!/bin/bash +sudo apt install fail2ban -y +sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local +sudo service fail2ban restart |
