From 21146cc4030461f7f81a858e015b28cbbe431c3d Mon Sep 17 00:00:00 2001 From: norrist Date: Fri, 19 Feb 2016 15:17:28 -0600 Subject: [PATCH 1/2] missing slash --- fbsd-relays.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbsd-relays.md b/fbsd-relays.md index 375101d..1cfffc5 100644 --- a/fbsd-relays.md +++ b/fbsd-relays.md @@ -77,7 +77,7 @@ Edit */usr/local/etc/tor/torrc* appropriately. The torrc file is well-commented Create the appropriate log file with the correct permissions: ->% touch /var/log tor && chown _tor:_tor /var/log/tor && chmod 600 /var/log/tor +>% touch /var/log/tor && chown _tor:_tor /var/log/tor && chmod 600 /var/log/tor Add "tor_enable=YES" in the /etc/rc.conf file From 87295f81ac9f2329329eccdce4f26ed98ca3f4cd Mon Sep 17 00:00:00 2001 From: Todd Norris Date: Mon, 2 Jan 2017 15:38:32 -0600 Subject: [PATCH 2/2] OpenBSD now uses rcctl to manage services --- obsd-relays.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/obsd-relays.md b/obsd-relays.md index ddeb7ef..d0ee351 100644 --- a/obsd-relays.md +++ b/obsd-relays.md @@ -66,9 +66,9 @@ These are the basic steps to configure a Tor relay with OpenBSD, based on the de 7. Edit */etc/tor/torrc* appropriately -8. Add the line tor_flags="-f /etc/tor/torrc" in the /etc/rc.conf.local file +8. Enable tor with rcctl enable tor -9. Start Tor with /etc/rc.d/tor start +9. Start Tor with rcctl start tor 10. Watch the Tor log with "tail -f /var/log/tor/notices.log" @@ -92,13 +92,13 @@ Log ### Tor on Startup ### -$ cat /etc/rc.conf.local +$ rcctl get tor +> tor_class=tor +> tor_flags= +> tor_rtable=0 +> tor_timeout=60 +> tor_user=root ->tor_flags="-f /etc/tor/torrc" - ->ntpd_flags="-s" - ->sndiod_flags=NO /etc/sysctl.conf