Skip to content

Instantly share code, notes, and snippets.

@jacopotediosi
jacopotediosi / block-tor-exit-nodes-fail2ban.md
Last active October 26, 2024 19:45
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]