SnowFlake » Historique » Version 6
Matthieu Herrb, 18/06/2023 23:03
upgrade bookworm
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 | 6 | Matthieu Herrb | h3. juin 2023 : mise à jour en Debian 12 bookworm |
10 | 6 | Matthieu Herrb | |
11 | 6 | Matthieu Herrb | Le paquet @snowflake-proxy@ est inclus dans le système, La compilation manuelle décrite ci-dessous n'est plus néessaire. |
12 | 6 | Matthieu Herrb | |
13 | 6 | Matthieu Herrb | Désactivation de l'ancien service @snowflake@ au profit de @snowflake-proxy@ fournit par bookworm. |
14 | 6 | Matthieu Herrb | |
15 | 2 | Matthieu Herrb | h3. Compilation depuis les sources golang dans le compte snowflake |
16 | 1 | Matthieu Herrb | |
17 | 1 | Matthieu Herrb | <pre> |
18 | 3 | Matthieu Herrb | root@snowflake:~# apt install golang tmux |
19 | 1 | Matthieu Herrb | root@snowflake:~# useradd -c "Snowflake user" -s /bin/bash -m snowflake |
20 | 1 | Matthieu Herrb | root@snowflake:~# passwd -l snowflake |
21 | 1 | Matthieu Herrb | root@snowflake:~# su - snowflake |
22 | 1 | Matthieu Herrb | snowflake@snowflake:~$ git clone https://git.torproject.org/pluggable-transports/snowflake.git |
23 | 1 | Matthieu Herrb | snowflake@snowflake:~$ cd snowflake/proxy |
24 | 1 | Matthieu Herrb | snowflake@snowflake:~/snowflake/proxy$ go build |
25 | 1 | Matthieu Herrb | </pre> |
26 | 1 | Matthieu Herrb | |
27 | 2 | Matthieu Herrb | h3. Lancement via systemd: /etc/systemd/system/snowflake.service : |
28 | 1 | Matthieu Herrb | |
29 | 1 | Matthieu Herrb | <pre> |
30 | 1 | Matthieu Herrb | [Unit] |
31 | 1 | Matthieu Herrb | Description=snowflake proxy |
32 | 2 | Matthieu Herrb | After=network.target |
33 | 1 | Matthieu Herrb | |
34 | 1 | Matthieu Herrb | [Service] |
35 | 1 | Matthieu Herrb | Type=simple |
36 | 1 | Matthieu Herrb | User=proxy |
37 | 1 | Matthieu Herrb | WorkingDirectory=/home/snowflake |
38 | 1 | Matthieu Herrb | ExecStart=/home/snowflake/snowflake/proxy/proxy |
39 | 1 | Matthieu Herrb | TimeoutSec=15 |
40 | 1 | Matthieu Herrb | Restart=always |
41 | 1 | Matthieu Herrb | |
42 | 1 | Matthieu Herrb | [Install] |
43 | 1 | Matthieu Herrb | WantedBy=multi-user.target |
44 | 2 | Matthieu Herrb | </pre> |
45 | 2 | Matthieu Herrb | |
46 | 2 | Matthieu Herrb | Activation: |
47 | 1 | Matthieu Herrb | <pre> |
48 | 4 | Matthieu Herrb | root@snowflake:~# systemctl daemon-reload |
49 | 4 | Matthieu Herrb | root@snowflake:~# systemctl enable snowflake.service |
50 | 4 | Matthieu Herrb | root@snowflake:~# systemctl start snowflake.service |
51 | 2 | Matthieu Herrb | </pre> |
52 | 2 | Matthieu Herrb | |
53 | 2 | Matthieu Herrb | h3. Logs /stats |
54 | 2 | Matthieu Herrb | |
55 | 2 | Matthieu Herrb | <pre> |
56 | 5 | Matthieu Herrb | root@snowflake:~# journalctl -u snowflake.service |
57 | 5 | Matthieu Herrb | Mar 03 07:36:37 snowflake systemd[1]: Started snowflake proxy. |
58 | 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. |
59 | 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. |
60 | 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. |
61 | 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. |
62 | 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. |
63 | 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. |
64 | 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. |
65 | 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. |
66 | 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. |
67 | 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. |
68 | 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. |
69 | 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. |
70 | 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. |
71 | 2 | Matthieu Herrb | </pre> |