[stunnel-users] stunnel server communicating external client IP addresses through to a TCP server for logging purposes

Bucci, David G david.g.bucci at lmco.com
Thu Oct 17 14:37:01 CEST 2013

If by "tcp connection" you mean a connection to an http listener on the phone, there is a patch to insert a standard HTTP X-Forwarded-For header containing the originating IP.  If you mean a raw TCP connection, with some app-specific protocol, then I'm not aware of any way to do that - wait for others' answers, maybe there is a way - but even if there's not, couldn't you leverage the stunnel log for that?

X-Forwarded-For patch info:  https://www.stunnel.org/pipermail/stunnel-users/2013-May/004203.html

From: stunnel-users [mailto:stunnel-users-bounces at stunnel.org] On Behalf Of Simner, John
Sent: Thursday, October 17, 2013 8:10 AM
To: stunnel-users at stunnel.org
Subject: EXTERNAL: [stunnel-users] stunnel server communicating external client IP addresses through to a TCP server for logging purposes

We have recently used stunnel on the phone as a server to encrypt the communication between an external client and a TCP server on the phone.

There is a requirement for the phone to log every external client access.
Is there any way for stunnel to include the IP address of the external client when setting up an new TCP connection to the local TCP server?

Thank you for your assistance and I look forward to your responses.


John Simner BSc(Hons) MSc CEng. MIET
Software Engineer

Unify Enterprise Communications Ltd.
Devices Development

K Block, Technology Drive, Beeston, Nottingham, NG9 1LA

Tel.: +44 (0) 19088 17378
Email: john.simner at unify.com <mailto:vorname.name at unify.com>


Follow us: [Social_media_icons] <http://www.unify.com/social-media>

Unify Enterprise Communications Limited. Registered Office: Brickhill Street, Willen Lake, Milton Keynes, MK15 0DJ
Registered No: 5903714, England.

This email contains confidential information and is for the exclusive use of the addressee.
If you are not the addressee then any distribution, copying, or use of this email is prohibited.
If received in error, please advise the sender and delete immediately. We accept no liability for
any loss or damage suffered by any person arising from use of this email.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20131017/58f258c3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5198 bytes
Desc: image001.png
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20131017/58f258c3/attachment.png>

More information about the stunnel-users mailing list