Quick Code Notes

In the process of setting up this site on Digital Ocean, I accidentally tripped the fail2ban trigger and had my own IP banned. Fortunately, I had connected to the server by ssh.

If this happens to you, you can add your IP temporarily with these lines of code.

iptables -I INPUT -s <allowed_ip> -j ACCEPT 
ufw allow from <allowed_ip>