Skip to content

Commit

Permalink
Add fail2ban
Browse files Browse the repository at this point in the history
  • Loading branch information
John Holly committed Dec 5, 2021
1 parent 4992fc1 commit 0d8f486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source_files/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ apt-get update -y
DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
apt-get install -y wireguard iptables-persistent
apt-get install -y wireguard iptables-persistent fail2ban

# Unbound setup
apt-get install unbound unbound-host -y
Expand Down Expand Up @@ -128,4 +128,5 @@ iptables -A INPUT -s $WG_NETWORK/$LINK_NETMASK -p udp -m udp --dport 53 -m connt
iptables -A FORWARD -i wg0 -o wg0 -m conntrack --ctstate NEW -j ACCEPT

systemctl enable netfilter-persistent && netfilter-persistent save
systemctl enable fail2ban
reboot

0 comments on commit 0d8f486

Please sign in to comment.