From 8e01a42c6200d2345f186ef7a5fdf887a3a4da90 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sat, 4 May 2019 17:26:57 +0300 Subject: [PATCH] etc: systemd & tor: add tor-onehoponion (and torrc-relay) --- etc/systemd/system/tor-onehoponion.service | 11 +++++++++++ etc/tor/torrc-onehoponion | 11 +++++++++++ etc/tor/torrc-relay | 13 +++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 etc/systemd/system/tor-onehoponion.service create mode 100644 etc/tor/torrc-onehoponion create mode 100644 etc/tor/torrc-relay diff --git a/etc/systemd/system/tor-onehoponion.service b/etc/systemd/system/tor-onehoponion.service new file mode 100644 index 00000000..876b3c5f --- /dev/null +++ b/etc/systemd/system/tor-onehoponion.service @@ -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 diff --git a/etc/tor/torrc-onehoponion b/etc/tor/torrc-onehoponion new file mode 100644 index 00000000..68fa98b3 --- /dev/null +++ b/etc/tor/torrc-onehoponion @@ -0,0 +1,11 @@ +DataDirectory /var/lib/tor-onehoponion +Log notice syslog + +SyslogIdentityTag onehoponion + +SocksPort 0 +HiddenServiceSingleHopMode 1 +HiddenServiceNonAnonymousMode 1 + +ControlPort 9053 +CookieAuthentication 1 diff --git a/etc/tor/torrc-relay b/etc/tor/torrc-relay new file mode 100644 index 00000000..26e46d7a --- /dev/null +++ b/etc/tor/torrc-relay @@ -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