summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bashrc3
-rw-r--r--setup_fail2ban.sh4
2 files changed, 7 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 48dd32c..20e6670 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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