Skip to content

Commit

Permalink
Merge pull request #4 from optimisticninja/master
Browse files Browse the repository at this point in the history
Add fail2ban
  • Loading branch information
castironclay committed Dec 5, 2021
2 parents ff23970 + 0d8f486 commit 5a5be9b
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 5a5be9b

Please sign in to comment.