Skip to content

Instantly share code, notes, and snippets.

@huertanix
Last active December 13, 2015 03:50
Show Gist options
  • Save huertanix/411f628868bf9422b0e0 to your computer and use it in GitHub Desktop.
Save huertanix/411f628868bf9422b0e0 to your computer and use it in GitHub Desktop.
Example Tor Non-Exit Relay Configuration for a DigitalOcean Droplet
# 9001 is the port Tor will use for relaying traffic through.
# 9030 is the port used for the global Tor directory.
ORPort 9001
DirPort 9030
# These basically determine how much to throttle traffic.
# 770 Kilobytes per second should keep us from burning through our
# 2 TB per month cap too quickly.
RelayBandwidthRate 770 KB
RelayBandwidthBurst 1540 KB
# Note: leave out the square brackets from the Nickname unless you
# want them as part of the name.
Nickname [whatever your cool and unique relay name is]
# e.g. David Huerta <huertanix@nycresistor.com>
ContactInfo YourNameOrNym <whatevs at whatevs.com>
# 2 TB (2000 GB) is the max amount of bandwidth we can use since
# that’s the cap DigitalOcean has per month for this plan.
# We’re leaving 1GB out for things like software updates, etc.
AccountingMax 1999 GB
# This defines the start of the bandwidth check to 1st of each month
# at noon.
AccountingStart month 1 12:00
# This means your relay will WON'T be an exit relay. Running an exit
# relay is the most hardcore of relay operation and will get you
# lots of high fives from hackers but also legal threats from the
# RIAA/MPAA/FBI/DEA/KFC/Interpol/Scientology/Everyone.
# Running a non-exit relay shouldn’t get you much attention.
ExitPolicy reject *:*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment