Restoring Visitor IP - Argo Tunnel

Hey all,

Just started using Argo Tunnel, and am having some issues restoring visitors IP addresses in my logs. Currently, all connections show as 127.0.0.1. I’m using Nginx.

I have this list, which was effective at restoring the visitors IP addresses before I switched over to Argo:

# - IPv4 Addresses
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 131.0.72.0/22;

# - IPv6 Addresses
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 2a06:98c0::/29;
set_real_ip_from 2c0f:f248::/32;

real_ip_header CF-Connecting-IP;

The tunnels documentation references Restoring original visitor IPs – Cloudflare Help Center for restoring visitors IPs, but I don’t see anything there that talks about Argo specifically.

Can anyone point me in the right direction? Cheers

I had to change my Nginx log format https://blog.centminmod.com/2021/02/09/2250/how-to-setup-cloudflare-argo-tunnel-on-centos-7/#centmin-mod-nginx-access-logs

5 Likes

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