Tor relay messages: ORPort IPv6, v1..v5 connections

I’m running a tor relay on a Raspberry Pi 3.

So far it seems to work fine, with some minor issues which I’d like to address. I also have a few questions, just out of curiosity.

Thanks for your inputs in advance!

My configuration:

SocksPort 0
RunAsDaemon 1
# this is a tmpfs:
DataDirectory /var/lib/tor
ORPort 9001
# just added, IPv4-ping, "ssh -4" and telnet to port 9001 work
Address torberry.ignorelist.com
Nickname rasptorMuc02
RelayBandwidthRate 1600 KB
RelayBandwidthBurst 3200 KB
MaxAdvertisedBandwidth 3200 KB
ExitRelay 0
AvoidDiskWrites 1
DisableDebuggerAttachment 0
ContactInfo url:schwarzmann-web.de proof:uri-rsa ciissversion:2 tor@schwarzmann-web.de

The system also gets the following settings:

sysctl -w net.ipv4.ip_local_port_range="15000 64000"
sysctl -w fs.file-max=100000
echo 4096 > /proc/sys/net/ipv4/tcp_max_orphans
ulimit -n 10000

Currently I see one issue:

Auto-discovered IPv6 address [2001:a62:1816:e601:ba27:ebff:fecf:d3f8]:9001 has not been found reachable. However, IPv4 address is reachable. Publishing server descriptor without IPv6 address. [2 similar message(s) suppressed in last 2460 seconds]

My guess would be that it’s the router, because IPv4 works. But the settings look okay. Could there be other reasons?

Review settings

How to find optimal settings for those?

RelayBandwidthRate 1600 KB
RelayBandwidthBurst 3200 KB
MaxAdvertisedBandwidth 3200 KB

They probably should depend on our connection (100MBit/s download, 40 MBit/s upload) and the performance of the system (Raspberry Pi 3). Currently the memory usage and CPU usage look fine. I ran out of memory with DirCache 1 and had to set it to 0.

I can play around and increase them until I see issues in the log.

IPv6 connections?

Heartbeat: Tor's uptime is 5 days 0:00 hours, with 1314 circuits open. I've sent 101.69 GB and received 101.10 GB. I've received 124812 connections on IPv4 and 0 on IPv6. I've made 100589 connections with IPv4 and 41575 with IPv6.

How come Tor doesn’t find the ORPort for IPv6, but reports received 124812 connections on IPv4 and 0 on IPv6. I've made 100589 connections with IPv4 and 41575 with IPv6.

My relay is not a guard, so only middle relay. A connection should always go both ways, so what’s the difference between receiving and making connections?

v1…v5 connections

I guess this should be fine:

Since startup we initiated 0 and received 0 v1 connections; initiated 0 and received 0 v2 connections; initiated 0 and received 0 v3 connections; initiated 0 and received 145 v4 connections; initiated 136695 and received 123889 v5 connections.

It probably only shows that the clients all use the latest protocol version.