Add IP PROXY/CDN
If you use CloudFlare, Incapsula or Sucuri Service or any Reverse Proxy in front of vDDoS Proxy Protection, you will need to set the set_real_ip_from
and real_ip_header
to properly allow vDDoS to see the visiting user’s real IP address and not the IP address of the Reverse proxy (like IP Address of CloudFlare, Incapsula, Sucuri… system).
Add IP PROXY/CDN:
To Add IP PROXY/CDN Please edit cdn-ip.conf
file:
nano /vddos/conf.d/cdn-ip.conf # CloudFlare IPv4 set_real_ip_from ...; # Incapsula Ipv4 set_real_ip_from ...; # Google IPs IPv4 set_real_ip_from ...; # Use Custom Proxy (Typical Reverse Proxy ie. HaProxy Load Balancer) set_real_ip_from your.reverse.proxy.ip; # Add Header X-Forwarded-For: real_ip_header X-Forwarded-For;
NOTE: Remember to leave "real_ip_header X-Forwarded-For;" at the end of the file as above