From eeb48f1612b72279ca77707b550272256ddae5c8 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 31 Jan 2021 17:21:26 +0100 Subject: latest --- .bashrc | 3 +++ setup_fail2ban.sh | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 setup_fail2ban.sh 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 -- cgit v1.3