Projet

Général

Profil

SnowFlake » Historique » Version 1

Matthieu Herrb, 03/03/2022 21:07
infos VM snowflake

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 1 Matthieu Herrb
Compilation depuis les sources (apt install golang) dans le compte snowflake 
10 1 Matthieu Herrb
11 1 Matthieu Herrb
<pre>
12 1 Matthieu Herrb
root@snowflake:~/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
snowflake@snowflake:~/snowflake/proxy$ tmux
20 1 Matthieu Herrb
snowflake@snowflake:~$ cd snowflake/proxy/
21 1 Matthieu Herrb
snowflake@snowflake:~/snowflake/proxy$ ./proxy 
22 1 Matthieu Herrb
</pre>
23 1 Matthieu Herrb
24 1 Matthieu Herrb
Lancement via systemd: /etc/systemd/system/snowflake.service :
25 1 Matthieu Herrb
26 1 Matthieu Herrb
<pre>
27 1 Matthieu Herrb
[Unit]
28 1 Matthieu Herrb
Description=snowflake proxy
29 1 Matthieu Herrb
After=network.tarkget
30 1 Matthieu Herrb
31 1 Matthieu Herrb
[Service]
32 1 Matthieu Herrb
Type=simple
33 1 Matthieu Herrb
User=proxy
34 1 Matthieu Herrb
WorkingDirectory=/home/snowflake
35 1 Matthieu Herrb
ExecStart=/home/snowflake/snowflake/proxy/proxy
36 1 Matthieu Herrb
TimeoutSec=15
37 1 Matthieu Herrb
Restart=always
38 1 Matthieu Herrb
39 1 Matthieu Herrb
[Install]
40 1 Matthieu Herrb
WantedBy=multi-user.target
41 1 Matthieu Herrb
<pre>