forked from torproject/community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gus
committed
Feb 5, 2024
1 parent
1264bf3
commit 8679f4e
Showing
7 changed files
with
275 additions
and
220 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
content/relay/setup/snowflake/standalone/debian/contents.lr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
_model: page | ||
--- | ||
color: primary | ||
--- | ||
title: Debian | ||
--- | ||
key: 4 | ||
--- | ||
html: two-columns-page.html | ||
--- | ||
subtitle: How to run a standalone Snowflake proxy on Debian | ||
--- | ||
section_id: snowflake-operations | ||
--- | ||
section: Snowflake operations | ||
--- | ||
body: | ||
|
||
This guide will walk you through the installation, operation, and maintenance of [Snowflake](https://snowflake.torproject.org) proxy to contribute to the Tor Project's anti-censorship efforts. | ||
Snowflake proxy can be easily installed as a package on Debian-based systems (Debian 12 - bookworm). | ||
|
||
### 1. Installation | ||
|
||
Open your terminal and execute the following command: | ||
|
||
``` | ||
sudo apt install snowflake-proxy | ||
``` | ||
|
||
### 2. Operating snowflake proxy | ||
|
||
The snowflake proxy service should start automatically after installation. | ||
You can manage the service with systemd commands: | ||
|
||
``` | ||
sudo systemctl start snowflake-proxy | ||
``` | ||
|
||
To enable snowflake proxy to automatically start on on boot: | ||
``` | ||
sudo systemctl enable snowflake-proxy | ||
``` | ||
|
||
To check the current status of your snowflake proxy: | ||
``` | ||
sudo systemctl status snowflake-proxy | ||
``` | ||
|
||
### 3. Monitoring logs | ||
|
||
Keeping an eye on the operation logs can help troubleshoot issues or confirm the proxy's activity: | ||
``` | ||
sudo journalctl -u snowflake-proxy | ||
``` | ||
|
||
### 4. Enable Automatic Software Updates | ||
|
||
One of the most important things to keep your snowflake proxy secure is to install security updates timely and ideally automatically so you can not forget about it. Follow the instructions to enable [automatic software updates](relay/setup/guard/debian-ubuntu/updates/) for your operating system. | ||
|
68 changes: 68 additions & 0 deletions
68
content/relay/setup/snowflake/standalone/docker/contents.lr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
_model: page | ||
--- | ||
color: primary | ||
--- | ||
title: Docker setup | ||
--- | ||
key: 2 | ||
--- | ||
html: two-columns-page.html | ||
--- | ||
subtitle: How to run a standalone Snowflake proxy with Docker | ||
--- | ||
section_id: snowflake-operations | ||
--- | ||
section: Snowflake operations | ||
--- | ||
body: | ||
|
||
This guide will help you set up a standalone [Snowflake](https://snowflake.torproject.org) proxy using Docker to help censored users connect to the Tor network. | ||
We have a [Docker image](https://hub.docker.com/r/thetorproject/snowflake-proxy) to ease the setup of a Snowflake proxy. | ||
|
||
### 1. Install Docker | ||
|
||
The instructions in this step are for Debian-based systems, but you can find [Docker instructions](https://docs.docker.com/get-docker/) for other supported platforms. | ||
|
||
Open a terminal and run these commands: | ||
``` | ||
$ sudo apt install curl sudo | ||
$ curl -fsSL https://get.docker.com -o get-docker.sh | ||
$ sudo sh ./get-docker.sh | ||
``` | ||
|
||
### 2. Download the docker compose file | ||
|
||
Download the [docker-compose.yml](https://gitlab.torproject.org/tpo/anti-censorship/docker-snowflake-proxy/raw/main/docker-compose.yml) configuration file. | ||
Run the command to download it: | ||
``` | ||
$ wget https://gitlab.torproject.org/tpo/anti-censorship/docker-snowflake-proxy/raw/main/docker-compose.yml | ||
``` | ||
Then, deploy the proxy by running: | ||
``` | ||
docker compose up -d snowflake-proxy | ||
``` | ||
This command starts the Snowflake proxy in detached mode. | ||
You should now see the output: | ||
``` | ||
Creating snowflake-proxy ... done | ||
``` | ||
and your proxy is up and running! | ||
|
||
### 3. Checking your Docker logs | ||
|
||
To access your Snowflake proxy logs, first find the container ID number. | ||
Run the command: | ||
``` | ||
$ docker ps | ||
``` | ||
Your Snowflake container ID is on the same line of `thetorproject/snowflake-proxy:latest`. | ||
Replace the container ID below with yours and run the command: | ||
``` | ||
$ docker logs -f 42fb82372340 | ||
``` | ||
|
||
### 4. Automatic updates with Watchtower | ||
|
||
The [docker-compose.yml](https://gitlab.torproject.org/tpo/anti-censorship/docker-snowflake-proxy/raw/main/docker-compose.yml) file contains a `watchtower` container, configured to automatically check for updates to the snowflake docker container every day, download them and run them. | ||
So if you are using that, your snowflake proxy will stay updated automatically! | ||
Otherwise, you will need to periodically pull the latest container and restart it manually. |
Oops, something went wrong.