[Bug 250584] security/tor: Support different fibs for multiple instances
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Oct 24 19:10:50 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250584
Bug ID: 250584
Summary: security/tor: Support different fibs for multiple
instances
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: yuri at freebsd.org
Reporter: thomas at gibfest.dk
Assignee: yuri at freebsd.org
Flags: maintainer-feedback?(yuri at freebsd.org)
Hello Tor friends,
I am using the multi instance support introduced in
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207129 to run more than one
Tor instance. I want to run some instances with a different routing table, so:
tor_instances="foo bar"
tor_foo_fib=1
tor_bar_fib=2
This currently doesn't work because tor_fib is not set for the so-called
"slave" instances (that wording should be changed btw).
The following 1-line patch makes it work, although you may wish to implement it
in another way :)
# git diff tor /usr/local/etc/rc.d/tor
diff --git a/tor b/usr/local/etc/rc.d/tor
index 57eb6c8..1ca4a70 100755
--- a/tor
+++ b/usr/local/etc/rc.d/tor
@@ -78,6 +78,7 @@ if [ -n "${instance}" ]; then
tor_conf=${tor_conf}@${inst_name}
tor_pidfile=${tor_pidfile}@${inst_name}
tor_datadir=${tor_datadir}/instance@${inst_name}
+ tor_fib=$(eval echo \$tor_${inst_name}_fib)
fi
if ! [ -r ${tor_conf} ]; then
warn "tor instance ${inst_name} config file ${tor_conf} doesn't exist or
isn't readable"
I hope we can get this into the port so I don't have to run with a local patch.
Thank you!
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list