Download the PHP package hryha/do-cf-sync without Composer
On this page you can find all versions of the php package hryha/do-cf-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hryha/do-cf-sync
More information about hryha/do-cf-sync
Files in hryha/do-cf-sync
Download hryha/do-cf-sync
More information about hryha/do-cf-sync
Files in hryha/do-cf-sync
Vendor hryha
Package do-cf-sync
Short Description Sync Cloudflare IP ranges into a DigitalOcean Firewall (ingress rules)
License MIT
Homepage https://github.com/vaniok010/do-cf-sync
Package do-cf-sync
Short Description Sync Cloudflare IP ranges into a DigitalOcean Firewall (ingress rules)
License MIT
Homepage https://github.com/vaniok010/do-cf-sync
Keywords cloudflareDigitalOcean Firewall
Please rate this library. Is it a good library?
Informations about the package do-cf-sync
DigitalOcean Firewall sync with Cloudflare IPs
This small PHP utility syncs the current list of Cloudflare IP ranges into a specified DigitalOcean Firewall as inbound rules. It runs as a CLI script and is intended to be scheduled daily via cron.
What it does
- Fetches Cloudflare IP ranges (both IPv4 and IPv6) from the official Cloudflare API.
- Updates the target DigitalOcean Firewall to allow inbound TCP traffic on configured ports (default: 80 and 443) from those Cloudflare ranges.
- Preserves your other firewall rules. It only replaces previously-added Cloudflare rules for the same ports.
Requirements
- PHP 8.2+
- Composer
- A DigitalOcean Personal Access Token with write access to Firewalls
- An existing DigitalOcean Firewall ID you want to update
Installation
- Clone or copy this repository to your server.
-
Install dependencies:
-
Configure environment variables. Copy
.env.exampleto.envand fill values: - Add a daily cron job (every day at 02:15):
All versions of do-cf-sync with dependencies
PHP Build Version
Package Version
The package hryha/do-cf-sync contains the following files
Loading the files please wait ...