Executing toriptables2.py as a standalone executable:
-
sudo cp -var toriptables2.py /usr/local/bin/
-
cd /usr/local/bin
-
sudo chown root.root toriptables2.py
-
sudo chmod +x toriptables2.py
-
cd ~
-
sudo toriptables2.py -h
usage: toriptables2.py [-h] [-l] [-f]
Tor Iptables script for loading and unloading iptables rules
optional arguments:
-h, --help show this help message and exit
-l, --load This option will load tor iptables rules
-f, --flush This option flushes the iptables rules to default
Executing toriptables2 module as a script:
-
sudo cp -var toriptables2.py /usr/local/lib/python2.7/dist-packages/
-
cd /usr/local/lib/python2.7/dist-packages
-
sudo chown root.staff toriptables2.py
-
sudo chmod 644 toriptables2.py
-
cd ~
-
sudo python -m toriptables2 -h
usage: toriptables2.py [-h] [-l] [-f]
Tor Iptables script for loading and unloading iptables rules
optional arguments:
-h, --help show this help message and exit
-l, --load This option will load tor iptables rules
-f, --flush This option flushes the iptables rules to default
┌─[mint@mint]─[~]
└──╼1 (00:03:16) >> sudo python -m toriptables2 -l
[+] Anonymizer status [ON]
[*] Getting public IP, please wait...
[+] Your IP is 185.38.14.171
┌─[mint@mint]─[~]
└──╼2 (00:03:39) >>