[SOLVED] pmgproxy behind reverse proxy nginx

Chriswiss

Well-Known Member
Mar 14, 2017
65
5
48
37
Hello,

I use a Nginx reverse proxy to reach PMGProxy for the client quarantine.

My Nginx transmits the real IP in the header.

How can I make sure that PMGProxy also logs the real IP and not the reverse IP ?

Thanks.

CG
 
That is currently not possible, since pmgproxy usually is accepting connections from arbitrary IPs - it's by design not using information provided in the request headers for the request ip.

Why would you need that - i.e. you should have the real IP in nginx' logs anyways?
 
Thank you for your answer.

I just need it to get a better look and block unauthorized connections.

CG
 
I just need it to get a better look and block unauthorized connections.
could you do that from the nginx logs as well? (you do get the pmgproxy response there as well)
 
You're welcome - glad that this could work as a workaround for you