Skip to content

Instantly share code, notes, and snippets.

View tomventa's full-sized avatar
🇮🇹

Tommaso Ventafridda tomventa

🇮🇹
View GitHub Profile
@jacopotediosi
jacopotediosi / block-tor-exit-nodes-fail2ban.md
Last active August 17, 2025 05:37
Block Tor Exit Nodes with Fail2ban

Below is the procedure to automate the ip ban of tor exit nodes with fail2ban.

  1. Install fail2ban:
sudo apt install fail2ban
  1. Create a new fail2ban jail (editing /etc/fail2ban/jail.local):
[tor]