Skip to content

Script to bootstrap a debian server to be a set-and-forget Tor bridge

License

Notifications You must be signed in to change notification settings

NSAKEY/tor-bridge-bootstrap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tor-bridge-bootstrap

This script is a fork of https://github.com/micahflee/tor-relay-bootstrap. If you need a relay, go there. If you need a bridge, you've come to the right place.

This is a script to bootstrap a Debian server to be a set-and-forget Tor bridge. I've only tested it in Wheezy, but it should work on any modern Debian or Ubuntu version. Pull requests are welcome.

tor-bridge-bootstrap does this:

  • Upgrades all the software on the system
  • Adds the deb.torproject.org repository to apt, so Tor updates will come directly from the Tor Project
  • Installs and configures Tor to be a bridge that runs obfs3 (but still requires you to manually edit torrc to set Nickname, ContactInfo, etc. for this bridge.)
  • Configures sane default firewall rules
  • Configures automatic updates
  • Installs tlsdate to ensure time is synced
  • Helps harden the ssh server
  • Gives instructions on what the sysadmin needs to manually do at the end

UPDATE: This project now has experimental FreeBSD support. It passes the "Works on my machine" test.

To use it, set up a Debian server, SSH into it, switch to the root user, and:

git clone https://github.com/NSAKEY/tor-bridge-bootstrap.git
cd tor-bridge-bootstrap

Then edit the ORPort and ExtORPort values in tor-bridge-bootstrap/etc/tor/torrc, tor-bridge-bootstrap/etc/iptables/rules.v4 tor-bridge-bootstrap/etc/iptables/rules.v6. Once that's finished:

./deb-bootstrap.sh

NOTE TO DEBIAN WHEEZY USERS: You need to install golang from wheezy-backports before running this script.

About

Script to bootstrap a debian server to be a set-and-forget Tor bridge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%