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