When I have used Icecast without authentication, the access.log generated includes the IP address of the client in the first field as specified in https://gitlab.xiph.org/xiph/icecast-server/-/blob/master/src/logging.h When I implement URL authentication, however, the first field is now always 127.0.0.1. Am I setting something up wrong in my configuration? -milton -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20220131/cf106d74/attachment.htm>
Philipp Schafft
2022-Feb-02 15:48 UTC
[Icecast] getting IP address with URL authentication
Good morning, On Mon, 2022-01-31 at 20:27 -0800, Milton Huang wrote:> When I have used Icecast without authentication, the access.log > generated includes the IP address of the client in the first field as > specified in > https://gitlab.xiph.org/xiph/icecast-server/-/blob/master/src/logging.h > > When I implement URL authentication, however, the first field is now > always 127.0.0.1. Am I setting something up wrong in my > configuration?this sound very strange to me as the auth system does not interact with the logging. My guess here would be that it is something unrelated such as a bad firewall, load balancer, or reverse proxy. Maybe you want to check for that. You can also use netstat or similar tools to see where the connections to Icecast originate from. With best regards, -- Philipp Schafft (CEO/Gesch?ftsf?hrer) Telephon: +49.3535 490 17 92 L?wenfelsen UG (haftungsbeschr?nkt) Registration number: Bickinger Stra?e 21 HRB 12308 CB 04916 Herzberg (Elster) VATIN/USt-ID: Germany DE305133015 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: This is a digitally signed message part URL: <http://lists.xiph.org/pipermail/icecast/attachments/20220202/9919898d/attachment.sig>