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
1 changed files with 18 additions and 0 deletions

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