This project is a tool for synchronizing firewall rules with the latest Cloudflare IP addresses.
It adds rules to firewalld allowing traffic coming from Cloudflare IP addresses on port 443.
This project requires Python 3.10 or higher.
To install the project, follow these steps:
- Clone the repository:
git clone https://github.com/robertripoll/cloudflare-firewall-rules.git
- Install the dependencies:
pip install -r requirements.txt
To use the script, run the following command:
sudo python main.py
The command has to be run with sudo because firewall-cmd requires root privileges.
This will synchronize the firewall rules with the latest Cloudflare IP addresses.
This project is licensed under the MIT License.