Zero Trust Locations IP update for DHCP connection

Hi All,

My ISP changes my IP now and then and I have at the moment no way to know that this happens. This then stops the protection that is in place within Cloudflare Zero Trust Locations and the IP is wrong now.

  1. Is there a way to be notified the IP has changed
  2. Is there a way to automatically update the IP address within Cloudflare Zero Trust Locations to keep uninterrupted protection?

Thanks All.

You can run some automated script to identify if your IP changed and then use an API call to change it. This is the endpoint you need to hit:

curl -X PUT "https://api.cloudflare.com/client/v4/accounts/699d98642c564d2e855e9661899b7252/gateway/locations/ed35569b41ce4d1facfe683550f54086" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json" \
     --data '{"name":"Austin Office Location","networks":["192.0.2.1"],"client_default":"false"}'

For more info:

https://api.cloudflare.com/#zero-trust-gateway-locations-update-zero-trust-gateway-location

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