Projet

Général

Profil

SnowFlake » Historique » Version 3

Version 2 (Matthieu Herrb, 03/03/2022 21:20) → Version 3/6 (Matthieu Herrb, 04/03/2022 21:03)

h1. SnowFlake

* https://community.torproject.org/relay/setup/snowflake/standalone
* https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/wikis/home
* https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/wikis/Technical%20Overview

h2. VM snowflake.tetaneutral.net



h3. Compilation depuis les sources golang dans le compte snowflake

<pre>
root@snowflake:~# root@snowflake:~/snowflake# apt install golang tmux
root@snowflake:~# useradd -c "Snowflake user" -s /bin/bash -m snowflake
root@snowflake:~# passwd -l snowflake
root@snowflake:~# su - snowflake
snowflake@snowflake:~$ git clone https://git.torproject.org/pluggable-transports/snowflake.git
snowflake@snowflake:~$ cd snowflake/proxy
snowflake@snowflake:~/snowflake/proxy$ go build
</pre>



h3. Lancement via systemd: /etc/systemd/system/snowflake.service :

<pre>
[Unit]
Description=snowflake proxy
After=network.target

[Service]
Type=simple
User=proxy
WorkingDirectory=/home/snowflake
ExecStart=/home/snowflake/snowflake/proxy/proxy
TimeoutSec=15
Restart=always

[Install]
WantedBy=multi-user.target
</pre>

Activation:
<pre>
systemctl daemon-reload
systemctl enable snowflake.service
systemctl start snowflake.service
</pre>

h3. Logs /stats

<pre>
journalctl -u snowflake.service
Mar 03 07:36:37 snowflake systemd[1]: Started snowflake proxy.
Mar 03 07:36:37 snowflake proxy[10295]: 2022/03/03 06:36:37 In the last 1h0m0s, there are 0 connections. Traffic Relayed ↑ 0 B, ↓ 0 B.
Mar 03 08:36:37 snowflake proxy[10295]: 2022/03/03 07:36:37 In the last 1h0m0s, there are 9 connections. Traffic Relayed ↑ 4 MB, ↓ 4 MB.
Mar 03 09:36:37 snowflake proxy[10295]: 2022/03/03 08:36:37 In the last 1h0m0s, there are 12 connections. Traffic Relayed ↑ 19 MB, ↓ 19 MB.
Mar 03 10:36:37 snowflake proxy[10295]: 2022/03/03 09:36:37 In the last 1h0m0s, there are 6 connections. Traffic Relayed ↑ 1 MB, ↓ 1 MB.
Mar 03 11:36:37 snowflake proxy[10295]: 2022/03/03 10:36:37 In the last 1h0m0s, there are 19 connections. Traffic Relayed ↑ 17 MB, ↓ 17 MB.
Mar 03 12:36:37 snowflake proxy[10295]: 2022/03/03 11:36:37 In the last 1h0m0s, there are 11 connections. Traffic Relayed ↑ 11 MB, ↓ 11 MB.
Mar 03 13:36:37 snowflake proxy[10295]: 2022/03/03 12:36:37 In the last 1h0m0s, there are 20 connections. Traffic Relayed ↑ 12 MB, ↓ 12 MB.
Mar 03 14:36:37 snowflake proxy[10295]: 2022/03/03 13:36:37 In the last 1h0m0s, there are 15 connections. Traffic Relayed ↑ 26 MB, ↓ 26 MB.
Mar 03 15:36:37 snowflake proxy[10295]: 2022/03/03 14:36:37 In the last 1h0m0s, there are 16 connections. Traffic Relayed ↑ 46 MB, ↓ 46 MB.
Mar 03 16:36:37 snowflake proxy[10295]: 2022/03/03 15:36:37 In the last 1h0m0s, there are 20 connections. Traffic Relayed ↑ 32 MB, ↓ 32 MB.
Mar 03 17:36:37 snowflake proxy[10295]: 2022/03/03 16:36:37 In the last 1h0m0s, there are 11 connections. Traffic Relayed ↑ 8 MB, ↓ 8 MB.
Mar 03 18:36:37 snowflake proxy[10295]: 2022/03/03 17:36:37 In the last 1h0m0s, there are 12 connections. Traffic Relayed ↑ 40 MB, ↓ 40 MB.
Mar 03 19:36:37 snowflake proxy[10295]: 2022/03/03 18:36:37 In the last 1h0m0s, there are 11 connections. Traffic Relayed ↑ 12 MB, ↓ 12 MB.
</pre>