Coder Social home page Coder Social logo

ruped24 / toriptables2 Goto Github PK

View Code? Open in Web Editor NEW
449.0 23.0 130.0 135 KB

Tor Iptables script is an anonymizer that sets up iptables and tor to route all services and traffic including DNS through the Tor network.

Python 100.00%
tor iptables tor-iptables-script tor-ip-switcher tor-network anonymize dns traffic zero-configuration zero-knowledge

toriptables2's Introduction

toriptables2

Maintenance

Tor Iptables script is an anonymizer that sets up iptables and tor to route all services and traffic including DNS through the Tor network.


Dependencies:

apt install tor

toriptables2.py -l

To test your anonymity:

Expand for anonymity test

To change Tor IP address:

Expand for change Tor IP
toriptables2.py -r

To automate changing Tor IP:

Expand for tor ip switcher

Screenshot

Tor IP Switcher


Screenshots:

Expand for Screenshots

Expand for toriptables2g installation and usage

Dependencies:

apt install tor

Screenshots:

Expand for screenshots

Usage Demo:

Exapand for notification demo

Expand for toriptables3

Upgrade to toriptables3 the successor to toriptables2.


toriptables2's People

Contributors

asvvvad1 avatar dmitryd avatar ruped24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

toriptables2's Issues

ping problem

I'm having trouble pinging after using toriptables2. it fixes when i turn it off

Errors Python...

Hi,

System Manjaro Linux 18.0.2
Kernel 4.18.20-1-MANJARO
Python2 2.7.15
iptables v1.8.2 (legacy)
Tor 0.3.4.9

I followed the tutorial https://en.kali.tools/?p=423 on BlackArch

sudo python2 toriptables2.py -l
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/local/bin/toriptables2.py", line 58, in restart_tor
stdout=fnull, stderr=fnull)
File "/usr/lib/python2.7/subprocess.py", line 185, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/local/bin/toriptables2.py", line 58, in restart_tor
stdout=fnull, stderr=fnull)
File "/usr/lib/python2.7/subprocess.py", line 185, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 172, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 394, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

sudo python2 /usr/local/bin/toriptables2.py -f
[!] Anonymizer status [OFF]

Thx

Could not find platform

toriptables2.py
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
ImportError: No module named site

What is about? 2 hours wasted for this error...

Update for Python3?

"The commands module has been removed in Python 3. Use the subprocess module instead."

Support for openSUSE (Tumbleweed)

Good evening @ruped24, thanks for developing your neat script here! I am already running torbrowser-launcher by @micahflee which sadly lacks the functionality of anonymizing all traffic. Now I would like to do just that on my Laptop running openSUSE Tumbleweed, but once I load your script I get the following error before all internet connections stop working (likely because the owner debian-tor does not exist):

SecUpwN@GLaDOS:~> sudo python /home/SecUpwN/Schreibtisch/toriptables2.py -l
root's password:
iptables v1.6.0: owner: Bad value for "--uid-owner" option: "id: „debian-tor“: Einen solchen Benutzer gibt es nicht"
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.6.0: owner: Bad value for "--uid-owner" option: "id: „debian-tor“: Einen solchen Benutzer gibt es nicht"
Try `iptables -h' or 'iptables --help' for more information.
[!] Command failed: ['service', 'tor', 'restart']

Toriptables2 not working with nmap inside Virtualbox

Expected Behavior

It was expected that nmap returned positive values which is not happening

Actual Behavior

It must be some iptables rules that is blocking the inbound or outbound communications
No errors are returned

Steps to Reproduce (including precondition)

Virtualbox in Bridge adapter
toriptables2.py -l
nmap -Pn {ip} -p {port} (-Pn since rules are blocking icmp)

Your Environment
OS: Ubuntu
toriptables2 version: last

[!] Can't get public ip address!

Hello,

Your script works good but sometimes shows an error:

root@kali:# toriptables2 -l
[+] Anonymizer status [ON]
[*] Getting public IP, please wait ...
[!] Can't get public ip address!
root@kali:
# toriptables2 -l
[+] Anonymizer status [ON]
[] Getting public IP, please wait ...
[!] Can't get public ip address!
root@kali:~# toriptables2 -l
[+] Anonymizer status [ON]
[
] Getting public IP, please wait ...
[+] Your IP is XXX.XXX.XXX.XXX
root@kali:# toriptables2 -l
[+] Anonymizer status [ON]
[*] Getting public IP, please wait ...
[!] Can't get public ip address!
root@kali:
#

The problem is that sometimes can not validate tor IP but it creates iptables rules and works.

Regards!

IP changes every minute

Thanks for a quick response. One more question:
I can see that my IP appears changing every minute or so. Looking into your script there is nothing what suggests this change. Is this Tor setup? Is there a way to stop changing IP.
Sorry if the questions is off-topic in this thread.

toriptables2 linux mint

In case of " Still waiting for IP address..." trying to launch a toriptables2 on linux mint- just turn the Gufw Firewall off, as i did, and its working now. Feel free to get in contact with me on the email: [email protected]

Activation of network connection failed.

After using toriptables2 shortly after I started getting error activation of network connection failed. Any fixes for that? I am also experiencing issues with network connections, I have issues with wired and internal wireless connections, they disconnect and reconnect and the only thing keeping me online is my external adapter. It also takes a few tries to check for updates as seen in the ss that's what I get.

Screenshot from 2020-08-25 15-36-32

Screenshot from 2020-08-25 15-29-41 Im also getting this as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.