OK. My nginx IP is 172.20.19.18. I need to add 'set_real_ip_from 172.16.0.0/12' and now it can replace remote_addr with proxy_protocol. Thanks a lot. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276542,277033#msg-277033