Date: Sat, 24 Oct 2020 19:10:49 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 250584] security/tor: Support different fibs for multiple instances Message-ID: <bug-250584-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250584 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@freebsd.org Reporter: thomas@gibfest.dk Assignee: yuri@freebsd.org Flags: maintainer-feedback?(yuri@freebsd.org) Hello Tor friends, I am using the multi instance support introduced in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207129 to run more than= one Tor instance. I want to run some instances with a different routing table, = so: tor_instances=3D"foo bar" tor_foo_fib=3D1 tor_bar_fib=3D2 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 implemen= t it in another way :) # git diff tor /usr/local/etc/rc.d/tor=20 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=3D${tor_conf}@${inst_name} tor_pidfile=3D${tor_pidfile}@${inst_name} tor_datadir=3D${tor_datadir}/instance@${inst_name} + tor_fib=3D$(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 pa= tch. Thank you! --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250584-7788>