Skip to content

Simple script to dynamically fetch all Tor Exit Nodes and drop their communication

Notifications You must be signed in to change notification settings

Vnet-as/tor-iptables-blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Tor Iptables Blocker

This is simple bash script that creates set of IP addresses of Tor Exit Nodes and blocks them completely.

Dependencies

To run this script you need to have installed these utilities:

  • wget
  • ipset
  • iptables

This script must have root privileges to run!

Example Run

To block IP addresses that can access IP address 192.0.2.10, run tor-iptables-blocker.sh 192.0.2.10.

To dynamically update ip address set every day at 6:00 for IP address 192.0.2.10, you can add line as this to crontab:

0 6 * * * root /usr/local/bin/ipset-block-tor.sh 109.74.144.181

About

Simple script to dynamically fetch all Tor Exit Nodes and drop their communication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages