Restoring Original Visitor IP in NginX

What is the name of the domain?

exevior [dot] com

What is the issue you’re encountering

Restoring the visitor ip in nginx access logs

What steps have you taken to resolve the issue?

created a solution for the community

Automated solution in my public github repo

Script automatically uses the published cf list of ipv4 and creates an nginx conf include.
Instructions in README file and in bash script.

###########################################

Developed by G4L1L3O

<< Instructions >>

- change the nginxpath below in configurations if your path is different.

- add a cronjob to run this bash script @daily or @weekly /path_to_bash_script/cfips_nginx.sh

- make sure bash script can be executed by running this: chmod +x cfips-nginx.sh

- run the script once to create the include files

- add this line in your nginx.conf file, within the http block

“include cfips.txt;”

- restart nginx

- you should now have the real ip in your access logs

###########################################

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.