#!/bin/sh -eu # # See /etc/systemd/system/tor_block.service echo flush tor_exit curl -sSL "https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=`curl -4 ifconfig.co`" | \ sed -nre 's/^[0-9\.]*$/add tor_exit \0/p'