
F5XFFHttpModule.dll and F5XFFHttpModule.ini in the x86\\Release or x64\\Release directory based on your server operating system version to a certain directory (such as C:\\F5XForwardedFor in this document), and make sure that the IIS process has read permission to this directory.wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gztar zxvf mod_rpaf-0.6.tar.gzcd mod_rpaf-0.6/usr/bin/apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c
/etc/httpd/conf/httpd.conf by adding the following to the end of the file:LoadModule rpaf_module modules/mod_rpaf-2.0.soRPAFenable OnRPAFsethostname OnRPAFproxy_ips IP address //The IP address is the forwarding IP of the connectionRPAFheader X-Forwarded-For
/usr/sbin/apachectl restart
http_realip_module to get the real client IP when Nginx is used as the server. However, this module is not installed in Nginx by default, and you need to recompile Nginx to add --with-http_realip_module. The code is as follows:wget http://nginx.org/download/nginx-1.14.0.tar.gztar zxvf nginx-1.14.0.tar.gzcd nginx-1.14.0./configure --user=www --group=www --with-http_stub_status_module --without-http-cache --with-http_ssl_module --with-http_realip_modulemakemake install
nginx.conf file.vi /etc/nginx/nginx.confModify the configuration fields in red as follows:fastcgi connect_timeout 300;fastcgi send_timeout 300;fastcgi read_timeout 300;fastcgi buffer_size 64k;fastcgi buffers 4 64k;fastcgi busy_buffers_size 128k;fastcgi temp_file_write_size 128k;set_real_ip_from IP address; //The IP address is the forwarding IP of the connectionreal_ip_header X-Forwarded-For;
service nginx restart
Feedback