Projet

Général

Profil

SnowFlake » Historique » Version 4

« Précédent - Version 4/6 (diff) - Suivant » - Version actuelle
Matthieu Herrb, 04/03/2022 21:04


SnowFlake

VM snowflake.tetaneutral.net

Compilation depuis les sources golang dans le compte snowflake

root@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 

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

[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

Activation:

root@snowflake:~# systemctl daemon-reload
root@snowflake:~# systemctl enable snowflake.service
root@snowflake:~# systemctl start snowflake.service

Logs /stats

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.