[SOLVED] pmgproxy behind reverse proxy nginx

Chriswiss

Well-Known Member
Mar 14, 2017
65
5
48
36
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!