mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-16 16:29:23 +01:00
etc: systemd & tor: add tor-onehoponion (and torrc-relay)
This commit is contained in:
parent
c726daa62c
commit
8e01a42c62
11
etc/systemd/system/tor-onehoponion.service
Normal file
11
etc/systemd/system/tor-onehoponion.service
Normal 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
11
etc/tor/torrc-onehoponion
Normal 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
13
etc/tor/torrc-relay
Normal 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
|
Loading…
Reference in New Issue
Block a user