etc/systemd: add tor-client.service & tor: add torrc-client

This commit is contained in:
Aminda Suomalainen 2019-05-03 12:31:33 +03:00
parent 4c2b21bbfa
commit 9c8cf613cd
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=Tor client
After=network.target
[Service]
ExecStart=/usr/bin/tor -f /etc/tor/torrc-client
Restart=always
User=debian-tor
[Install]
WantedBy=default.target

15
etc/tor/torrc-client Normal file
View File

@ -0,0 +1,15 @@
DataDirectory /var/lib/tor-client
Log notice syslog
SyslogIdentityTag client
SocksPort 9050 IsolateDestAddr PreferIPv6
# Uncomment to disable IPv4
#ClientUseIPv4 0
# Enabling and preferring IPv6 over IPv4
# https://trac.torproject.org/projects/tor/wiki/org/roadmaps/Tor/IPv6#TestingclientsrunningviaIPv6
#ClientUseIPv6 1
#ClientPreferIPv6ORPort 1
#ClientPreferIPv6DirPort 1
ControlPort 9052
CookieAuthentication 1