Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreafortuna/cfpihole
Simple python script to import PiHole domain blocking lists into Cloudflare Zero-Trust Gateway configuration
https://github.com/andreafortuna/cfpihole
cloudflare pihole zero-trust
Last synced: 4 months ago
JSON representation
Simple python script to import PiHole domain blocking lists into Cloudflare Zero-Trust Gateway configuration
- Host: GitHub
- URL: https://github.com/andreafortuna/cfpihole
- Owner: andreafortuna
- Created: 2023-10-07T15:11:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-16T14:07:07.000Z (8 months ago)
- Last Synced: 2024-09-26T13:01:33.447Z (4 months ago)
- Topics: cloudflare, pihole, zero-trust
- Language: Python
- Homepage:
- Size: 1.66 MB
- Stars: 6
- Watchers: 1
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CFPiHole
Simple python script, runnable from GHA, that allows importing PiHole domain blocking lists into Cloudflare Zero-Trust Gateway configuration.
(based on https://github.com/IanDesuyo/CloudflareGatewayAdBlock)
### Usage
1. Create Cloudflare API token, from https://dash.cloudflare.com/profile/api-tokens, with 3 permissions `Account.Zero Trust : Edit` `Account.Account Firewall Access Rules : Edit` `Account.Access: Apps and Policies : Edit`
2. Get your Account ID from : https://dash.cloudflare.com/?to=/:account/workers
3. Clone this repository.
4. Configure action secrets:
* `CF_IDENTIFIER` with Account ID
* `CF_API_TOKEN` with API Token
5. Modify `config.ini` with your preferred blocking lists
6. Enable action