Code Monkey home page Code Monkey logo

iptables_torify's Introduction

iptables_torify: Send all traffic through Tor using iptables

This is a script that adds iptables rules that force all traffic including DNS requests through Tor. Only traffic other than DNS requests destined for local/loopback addresses is not passed through Tor.

All non-local UDP/ICMP traffic is blocked

This is a way to make a really light-weight version of Tails. If you don't need everything to be extremely secure (e.g. no javascript, no persistent storage), but do want to make sure traffic goes through Tor this is a good way to achieve this fairly simply. Tor will need to be running.

Right now the script assumes a transparent proxy port of 9051 and a dns proxy port of 9061, with the tor username of debian-tor. You'll need to change these variables in the script if you have a different configuration. An example torrc file is included, to show how to configure Tor. This was tested on Xubuntu 12.04.

There is an install script which, if you run it as root from a directory where you have the project files (torrc, torify.init), will install tor, configure it with the associated torrc file and then setup the iptables script to run on boot. Thus these rules will be enabled at system boot, and all traffic will be anonymized.

iptables_torify's People

Contributors

ericpaulbishop avatar

Watchers

 avatar

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.