1.Upgrading the server
Код:Скопировать
[CODE]
apt update
apt upgrade
2. Install apt-transport-https (needed to download packages over HTTPS)
Код:Скопировать
apt install dirmngr apt-transport-https
3. Adding keys to verify the authenticity of Tor repository packages
Код:Скопировать
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
4 We find out the code name of our distribution, put it in the source and add it to the Tor repository sources
Код:Скопировать
nano /etc/apt/sources.list
________________________________________________________________
Код:Скопировать
deb https://deb.torproject.org/torproject.org buster main
deb-src https://deb.torproject.org/torproject.org buster main
________________________________________________________________
5. Install tor from the verified repository you just added
Код:Скопировать
apt update
apt install tor deb.torproject.org-keyring
6. Installing obfs4proxy
7. Edit torrc (Tor configuration file)
________________________________________________________________
# ORPort any
# ContactInfo optional contacts for contacting you, just in case.
# ServerTransportListenAddr should be specified as mine, instead of port 4443 it can be any other port.
# Log file is not necessary to specify, but it is easier with it than without it, only notifications are saved in it.
# Don't touch the rest and leave it as it is.
____________________________________________________________
Код:Скопировать
BridgeRelay 1
ORPort 443
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
ServerTransportListenAddr obfs4 0.0.0.0:4443
ExtORPort auto
ContactInfo alextokarev125@gmail.com
Nickname TorZireael
Log notice file /var/log/tor/notices.log
________________________________________________________________
8. Restart Tor
9. For monitoring, download nyx and run it, copy the fingerprint of our bridge from there, check if Tor is up to date.
10. Getting the necessary data to connect to your own bridge
Код:Скопировать
nano /var/lib/tor/pt_state/obfs4_bridgeline.txt
11. Enter your ip (46.148.26.148), port (4443), fingerprint ().
12. Specify your obfs4 bridge in Tor browser, Whonix, Tor Expert Bundle ...
Source :