mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-05-14 02:17:40 +02:00
etc/systemd: add tor-client.service & tor: add torrc-client
This commit is contained in:
parent
4c2b21bbfa
commit
9c8cf613cd
11
etc/systemd/system/tor-client.service
Normal file
11
etc/systemd/system/tor-client.service
Normal 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
15
etc/tor/torrc-client
Normal 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
|
Loading…
x
Reference in New Issue
Block a user