Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Update Firewall Alias from Cloudflare API
« previous
next »
Print
Pages: [
1
]
Author
Topic: Update Firewall Alias from Cloudflare API (Read 1840 times)
bunchofreeds
Full Member
Posts: 203
Karma: 11
Update Firewall Alias from Cloudflare API
«
on:
July 25, 2023, 10:35:54 pm »
Hi,
Is it possible to update an OPNsense Firewall Alias that holds all Cloudflare IP addresses using their API?
https://developers.cloudflare.com/fundamentals/get-started/setup/allow-cloudflare-ip-addresses/
https://www.cloudflare.com/ips/
https://developers.cloudflare.com/api/#cloudflare-ips-properties
Thanks for any help with this
Logged
sorano
Full Member
Posts: 153
Karma: 21
Re: Update Firewall Alias from Cloudflare API
«
Reply #1 on:
July 25, 2023, 11:29:10 pm »
Haven't used the API so cannot comment on that but the txt lists from here works great:
https://www.cloudflare.com/ips/
Logged
2x 23.7 VMs & CARP, 4x 2.1GHz, 8GB
Cisco L3 switch, ESXi, VDS, vmxnet3
DoT, Chrony, HAProxy + NAXSI, Suricata
VPN: IPSec, OpenVPN, Wireguard
MultiWAN: Fiber 500/500Mbit dual stack + 4G failover
--
Available for private support.
Did my answer help you? Feel free to click [applaud] to the left
isaacthekind
Jr. Member
Posts: 60
Karma: 0
Re: Update Firewall Alias from Cloudflare API
«
Reply #2 on:
October 27, 2023, 08:55:07 pm »
I used an IP table in the alias options, this checks if they have changed at an interval that I set.
Logged
bunchofreeds
Full Member
Posts: 203
Karma: 11
Re: Update Firewall Alias from Cloudflare API
«
Reply #3 on:
December 13, 2023, 10:49:55 pm »
Late reply - sorry
I followed your advice and configured an Alias using URL Table (IP's)
Pasted in the Cloudflare IP list URL and set to check every 7 days
Works really well!
Thanks
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Update Firewall Alias from Cloudflare API