Projet

Général

Profil

SnowFlake » Historique » Version 5

Matthieu Herrb, 04/03/2022 21:04

1 1 Matthieu Herrb
h1. SnowFlake
2 1 Matthieu Herrb
3 1 Matthieu Herrb
* https://community.torproject.org/relay/setup/snowflake/standalone
4 1 Matthieu Herrb
* https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/wikis/home
5 1 Matthieu Herrb
* https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/wikis/Technical%20Overview
6 1 Matthieu Herrb
7 1 Matthieu Herrb
h2. VM snowflake.tetaneutral.net
8 1 Matthieu Herrb
9 2 Matthieu Herrb
h3. Compilation depuis les sources golang dans le compte snowflake 
10 1 Matthieu Herrb
11 1 Matthieu Herrb
<pre>
12 3 Matthieu Herrb
root@snowflake:~# apt install golang tmux
13 1 Matthieu Herrb
root@snowflake:~# useradd -c "Snowflake user" -s /bin/bash -m snowflake
14 1 Matthieu Herrb
root@snowflake:~# passwd -l snowflake
15 1 Matthieu Herrb
root@snowflake:~# su - snowflake
16 1 Matthieu Herrb
snowflake@snowflake:~$ git clone https://git.torproject.org/pluggable-transports/snowflake.git
17 1 Matthieu Herrb
snowflake@snowflake:~$ cd snowflake/proxy
18 1 Matthieu Herrb
snowflake@snowflake:~/snowflake/proxy$ go build 
19 1 Matthieu Herrb
</pre>
20 1 Matthieu Herrb
21 2 Matthieu Herrb
h3. Lancement via systemd: /etc/systemd/system/snowflake.service :
22 1 Matthieu Herrb
23 1 Matthieu Herrb
<pre>
24 1 Matthieu Herrb
[Unit]
25 1 Matthieu Herrb
Description=snowflake proxy
26 2 Matthieu Herrb
After=network.target
27 1 Matthieu Herrb
28 1 Matthieu Herrb
[Service]
29 1 Matthieu Herrb
Type=simple
30 1 Matthieu Herrb
User=proxy
31 1 Matthieu Herrb
WorkingDirectory=/home/snowflake
32 1 Matthieu Herrb
ExecStart=/home/snowflake/snowflake/proxy/proxy
33 1 Matthieu Herrb
TimeoutSec=15
34 1 Matthieu Herrb
Restart=always
35 1 Matthieu Herrb
36 1 Matthieu Herrb
[Install]
37 1 Matthieu Herrb
WantedBy=multi-user.target
38 2 Matthieu Herrb
</pre>
39 2 Matthieu Herrb
40 2 Matthieu Herrb
Activation: 
41 1 Matthieu Herrb
<pre>
42 4 Matthieu Herrb
root@snowflake:~# systemctl daemon-reload
43 4 Matthieu Herrb
root@snowflake:~# systemctl enable snowflake.service
44 4 Matthieu Herrb
root@snowflake:~# systemctl start snowflake.service
45 2 Matthieu Herrb
</pre>
46 2 Matthieu Herrb
47 2 Matthieu Herrb
h3. Logs /stats
48 2 Matthieu Herrb
49 2 Matthieu Herrb
<pre>
50 5 Matthieu Herrb
root@snowflake:~# journalctl -u snowflake.service
51 5 Matthieu Herrb
Mar 03 07:36:37 snowflake systemd[1]: Started snowflake proxy.
52 2 Matthieu Herrb
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.
53 2 Matthieu Herrb
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.
54 2 Matthieu Herrb
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.
55 2 Matthieu Herrb
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.
56 2 Matthieu Herrb
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.
57 2 Matthieu Herrb
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.
58 2 Matthieu Herrb
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.
59 2 Matthieu Herrb
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.
60 2 Matthieu Herrb
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.
61 2 Matthieu Herrb
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.
62 2 Matthieu Herrb
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.
63 2 Matthieu Herrb
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.
64 2 Matthieu Herrb
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.
65 2 Matthieu Herrb
</pre>