etc: systemd & tor: add tor-onehoponion (and torrc-relay)

This commit is contained in:
Aminda Suomalainen 2019-05-04 17:26:57 +03:00
parent c726daa62c
commit 8e01a42c62
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
3 changed files with 35 additions and 0 deletions

View File

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

11
etc/tor/torrc-onehoponion Normal file
View File

@ -0,0 +1,11 @@
DataDirectory /var/lib/tor-onehoponion
Log notice syslog
SyslogIdentityTag onehoponion
SocksPort 0
HiddenServiceSingleHopMode 1
HiddenServiceNonAnonymousMode 1
ControlPort 9053
CookieAuthentication 1

13
etc/tor/torrc-relay Normal file
View File

@ -0,0 +1,13 @@
# From the torrc's on this directory, this is the only one not in use
# anywhere, mostly I have the main tor.service as OneHopOnion SSH access
# and client for my Tor traffic (+ Tor Browser), OneHopOnion is just for
# an instance that was already running a relay.
SocksPort 0
ORPort 443
#Nickname
RelayBandwidthRate 2 MByte
#ContactInfo
DirPort 80 # what port to advertise for directory connections
#MyFamily
ExitPolicy reject *:* # no exits allowed