Opened 4 weeks ago

Last modified 12 days ago

#31792 new defect

nyx "amount outbound connection" calculated wrong for 2 relays runnign at sema ip address

Reported by: toralf Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Nyx Version: Tor: 0.4.1.5
Severity: Minor Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I do run 2 relays at the same ip address at different ports
The stem example shows (corrrect):

mr-fox ~ # for p in 9051 29051 ; do python /usr/share/doc/stem-1.7.1/_static/example/relay_connections.py --ctrlport $p; done
 0.4.1.6   uptime: 02:15:02   flags: Fast, Running, Stable, V2Dir, Valid

+------------------------------+------+------+
| Type                         | IPv4 | IPv6 |
+------------------------------+------+------+
| Inbound to our ORPort        | 3119 |    3 |
| Inbound to our ControlPort   |    1 |    0 |
| Outbound to a relay          | 3758 |    0 |
| Outbound uncategorized       |   16 |    0 |
+------------------------------+------+------+
| Total                        | 6894 |    3 |
+------------------------------+------+------+

 0.4.1.6   uptime: 02:02:58   flags: Fast, Running, Stable, V2Dir, Valid

+------------------------------+------+------+
| Type                         | IPv4 | IPv6 |
+------------------------------+------+------+
| Inbound to our ORPort        | 2117 |    3 |
| Inbound to our ControlPort   |    1 |    0 |
| Outbound to a relay          | 3702 |    0 |
| Outbound uncategorized       |   16 |    0 |
+------------------------------+------+------+
| Total                        | 5836 |    3 |
+------------------------------+------+------+

A call of nyx, eg.:

sudo -u tor /bin/bash -c "/usr/bin/nyx -i 9051"

however shows about 7500 connections (Alt+S -> Connections) which seems to be the sum of boths.
Netstat etc how that the command line values are right, Nyx is wrong.

Child Tickets

Change History (1)

comment:1 Changed 12 days ago by toralf

Yep, whilst Nyx shows the # if inbound connections correctly, the # of outbound is the sum of both relays.

Note: See TracTickets for help on using tickets.