add tor config

This commit is contained in:
LordMZTE 2023-11-16 11:08:02 +01:00
parent e374327145
commit eae4b7438c
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

18
etc/tor/torrc.cgt Normal file
View file

@ -0,0 +1,18 @@
User tor
Log notice syslog
DataDirectory /var/lib/tor
ControlPort 9051
ControlSocket /var/lib/tor/control_socket
ControlSocketsGroupWritable 1
DataDirectoryGroupReadable 1
CacheDirectoryGroupReadable 1 # workaround for tor bug #26913
<! if opt.tor_pw_hash then !>
HashedControlPassword <% opt.tor_pw_hash %>
<! end !>
CookieAuthentication 1
CookieAuthFile /var/lib/tor/control_auth_cookie
CookieAuthFileGroupReadable 1