Dear all,
I run an exit node on debian strech, fingerprint 13E75F70220903A68BAF1F80B3DA9AB913961841
I would like to use more bandwidth, but I'm unsure how to do that with systemd.
So, Lets say I want two exit nodes, each at 20MB/s.
As per https://www.torservers.net/wiki/setup/server#high_bandwidth_tweaks_100_mbps, I am supposed to use
tor-instance-create tor{1,2} [1]
systemctl enable tor@tor1
etc.
but what goes in the individual tor@tor1 torrc in /etc/tor/instances/tor1/torrc and what goes in the main instance in /etc/tor/torrc?
Looking at the status for the new instance
systemctl status tor@tor1
Process: 22722 ExecStartPre=/usr/bin/tor --defaults-torrc /var/run/tor-instances/tor1.defaults -f /etc/tor/instances/tor1/torrc --verify-config
it seems the main torrc is not read, so maybe this is just an fancy way of doing the "old"
/usr/sbin/tor -f /usr/local/etc/torrc1
/usr/sbin/tor -f /usr/local/etc/torrc2
...
with separate configurationfiles and datadir?
I have a few extra ipv4 addresses. Should I allow each instance it's own IP or is sharing fine with one having (80,443) and the other (9091,9030) as (QR,DIR)port?
I am aware that one IP can only be shared between two instances.
Another question:
Should I set the NumCPUs option to 2 or just leave it at 0(default)?
The processor is a bit old:
Model name: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
pidstat 5 -p `pidof tor`
Linux 4.9.0-3-amd64 (tiger) 2017-07-01 _x86_64_ (4 CPU)
23:38:33 UID PID %usr %system %guest %CPU CPU Command
23:38:38 127 10706 38,60 16,80 0,00 55,40 2 tor
23:38:43 127 10706 37,20 14,20 0,00 51,40 3 tor
23:38:48 127 10706 33,20 12,20 0,00 45,40 3 tor
23:38:53 127 10706 41,00 11,80 0,00 52,80 3 tor
23:38:58 127 10706 46,40 14,80 0,00 61,20 2 tor
And finally:
Do you change the number of maximum file descriptors? As of now,
cat /proc/sys/fs/file-nr
9248 0 163085
where
ls -l /proc/`echo $(pidof tor)`/fd | wc -l
5866
Best,
Paw
[1]