Opened 14 years ago

Last modified 7 years ago

#181 closed defect (Implemented)

please use X-Forwarded-For in directory log entries

Reported by: weasel Owned by: nickm
Priority: Low Milestone:
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: weasel Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Hi,

I use apache to redirect http://...:80/tor/ to the dirport of my tor server.

So any time there is something noteworthy going on, Tor's log entry claims that the request came from localhost:

[notice] directory_handle_command_post(): Rejected descriptor published by '127.0.0.1'.

Apache sets the http header X-Forwarded-For like "X-Forwarded-For: 1.2.3.4".

It would be nice if that information could be made available in the log entires. For instance like this:

[notice] directory_handle_command_post(): Rejected descriptor published by 127.0.0.1, 1.2.3.4.

Where the contents of the X-Forwarded-For header(s) are simply appended to the entry after the ip address.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (2)

comment:1 Changed 14 years ago by nickm

flyspray2trac: bug closed.
Implemented in CVS. Wants testing. Was this what you had in mind?

comment:2 Changed 7 years ago by nickm

Component: Tor RelayTor
Note: See TracTickets for help on using tickets.