Skip to content

Instantly share code, notes, and snippets.

@palewire
Last active December 18, 2022 10:39
Show Gist options
  • Save palewire/52504f4a52d8173935d5f0cf638d0280 to your computer and use it in GitHub Desktop.
Save palewire/52504f4a52d8173935d5f0cf638d0280 to your computer and use it in GitHub Desktop.
Install The Tor Project's snowflake-proxy on a Raspberry Pi

Your Raspberry Pi can join The Tor Project network that helps Russians read censored news sites, including Twitter.

These are all the commands necessary to spin up a Snowflake proxy that gives Tor users a way around government attempts to block access.

You can also run a Snowflake proxy from your web browser with Firefox or Chrome. Standing it up on your Raspberry Pi is a way to support the system 24 hours a day. And, unlike other Tor server setups, it doesn't require a static IP address.

# Install the Go programming language
sudo apt update
sudo apt install -y golang-go
# Download the Snowflake proxy code
git clone https://git.torproject.org/pluggable-transports/snowflake.git
# Move into the proxy code directory
cd snowflake/proxy
# Set a location for the log
LOG="$(pwd)/snowflake.log"
# Start up the proxy to run silently in the background while outputting its activity to the log
nohup ./proxy >"$LOG" 2>&1 &
@alpha14
Copy link

alpha14 commented Apr 25, 2022

@sidawson There is also a docker alternative that you can run on your raspberry Pi: https://gist.github.com/palewire/52504f4a52d8173935d5f0cf638d0280

@MOTSM-HD
Copy link

i've run this shell script several times now (always rm-ing the created files and folders) on my RPi 3.
cat snwoflake.log
always prompts
nohup: failed to run command './proxy': No such file or directory
what am i missing?

@90N45-d3v
Copy link

@MOTSM-HD You first have to build the Snowflake proxy with the following commands in the /snowflake/proxy path:
go get
go build

Run every command in the script yourself and run these two commands after cd snowflake/proxy

Or use my fixed version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment