This project modifies your firewall configuration to allow Arvancloud's CDN network access to your server.
Also, The bash script can be scheduled to update firewall rules automatically.
Just run the script and select your firewall from the list
Select a firewall to add IPs:
1) UFW
2) CSF
3) firewalld
4) iptables
5) ipset+iptables
6) nftables
Firewall: [YOUR INPUT]
Also, you can pass the firewall name in arguments:
src/ar-whitelister.sh ufw
You can create a cronjob to update the rules automatically.
Examples:
- Update UFW rules every 6 hours
0 */6 * * * /path/to/ar-whitelister.sh ufw >/dev/null 2>&1
- Update CSF rules every day at 1:00
0 1 * * * /path/to/ar-whitelister.sh csf >/dev/null 2>&1
These firewalls are supported currently:
- UFW
- CSF
- firewalld
- iptables
- ipset+iptables
- nftables
If you use a firewall that is not listed here, you can:
- Create an issue
- Send a pull request