News for hackers. Stuff that matters.
Re:Cloudflare S-1 by icebraining on Friday August 16, 2019 @02:41AM (#20712722)
Essentially you write a script in any language that:

1) checks what's your current IP (an easy way is to do a GET request to http://icanhazip.com/, available thanks to Red Hat engineer Major Hayden)

2) checks what was the last IP you sent to Cloudflare (saved in a text file on your disk or something like data)

3) if they are different, send a PUT request to the Cloudflare API with the new IP: https://api.cloudflare.com/#dns-records-for-a-zone-update-dn...

4) Then save that new IP in the text file, so you can check next time

Finally, you edit your crontab to run that script every few hours or so.

Re:Cloudflare S-1 by baud147258 on Friday August 16, 2019 @07:43AM (#20714140)
I've checked icanhazip.com and it's not returning the same ip as the one from ipconfig. What does it mean? Note I know nothing how networks work and that I'm in a corporate network
Re:Cloudflare S-1 by amdavidson on Friday August 16, 2019 @08:35AM (#20714497)
Your corporate network is using network address translation (NAT) to map an external address, shown on icanhazip.com, to a local network address, shown in ipconfig. You likely share this external address with many other users and mapping services to it will be challenging without having access to the routing/forwarding configuration.

https://en.wikipedia.org/wiki/Network_address_translation

Re:Cloudflare S-1 by baud147258 on Friday August 16, 2019 @08:55AM (#20714666)
Okay, thank you for this information.