-
Notifications
You must be signed in to change notification settings - Fork 5
Cron service to block all traffic from tor clients (for linux)
License
godjil/block-tor-iptables
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a cron-service that blocks all Tor users from accessing your server. Made for systems that support iptables. The cron-service.sh script accepts an arbitrary number of arguments. Each argument is a port number that you want query for Tor IPs to block. You must specify at least one. The code was derived from: http://www.brianhare.com/wordpress/2011/03/02/block-tor-exit-nodes-using-bash-script/ If you are unfamiliar with cron, perhaps read about it: http://en.wikipedia.org/wiki/Cron http://www.adminschoice.com/crontab-quick-reference Note: The script must be run as root. On Ubuntu, if you add it to your crontab as root with ``crontab -e``, it is necessary to prefix the command with "sudo", for some reason. Note: The script analyzes the 'eth0' network interface to obtain your IP address, which is required to query the tor bulk exit list. If your network interface is not 'eth0' (perhaps you are running on wlan0, eth1, avian0), then edit the script.
About
Cron service to block all traffic from tor clients (for linux)
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published