Skip to content

k0a1a/tor-router.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

#tor-router.sh Transparent Tor router capable of serving a subnet.

Requirements (Debian, Ubuntu and variants):

sudo apt-get install tor torsock redsocks geoip-bin geoip-database

Edit /etc/redsocks.conf:

 redsocks {
  local_ip = 0.0.0.0;
  local_port = 12345;
  ip = 127.0.0.1;
  port = 9050;
 } 

To have your connection exit in a particular countr(yi|ies) add the following line to /etc/tor/torrc:

ExitNodes {se},{br}
StrictNodes 1

Invocation: tor-router.sh [start|start_router|stop]

start - start system-wide gateway to the Internet (via Tor)
start_router - start router, acting as a default network gateway to the Internet (via Tor)
stop - stop tor-router

Danja Vasiliev | http://k0a1a.net | 2015 | Artistic License 2.0

About

Transparent Tor router capable of serving a subnet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages