etc/systemd: add tor-client.service & tor: add torrc-client
This commit is contained in:
parent
4c2b21bbfa
commit
9c8cf613cd
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue