Hi,
we use nginx reverse proxy before proxmox, now in the daemon log there is always 127.0.0.1(localhost) as user. I need the real ip there for fail2ban to work properly. Have looked in the Code but couldnt manage to fix it on my own, it needs to look for the "X-Real-IP" in the header and use this IP as the client ip. Could someone please help me integrate this? I tracked it down to /usr/share/perl5/PVE/HTTPServer.pm Line #1234:
$auth = PVE::REST::auth_handler($self->{rpcenv}, $reqstate->{peer_host}, $method,
$rel_uri, $ticket, $token);
The "$reqstate->{peer_host}" is used as client-ip, which variable do I need to insert there to get the X-Real-IP?
thanks alot beforehand for any help!
kind regards,
freemind
we use nginx reverse proxy before proxmox, now in the daemon log there is always 127.0.0.1(localhost) as user. I need the real ip there for fail2ban to work properly. Have looked in the Code but couldnt manage to fix it on my own, it needs to look for the "X-Real-IP" in the header and use this IP as the client ip. Could someone please help me integrate this? I tracked it down to /usr/share/perl5/PVE/HTTPServer.pm Line #1234:
$auth = PVE::REST::auth_handler($self->{rpcenv}, $reqstate->{peer_host}, $method,
$rel_uri, $ticket, $token);
The "$reqstate->{peer_host}" is used as client-ip, which variable do I need to insert there to get the X-Real-IP?
thanks alot beforehand for any help!
kind regards,
freemind