Skip to content

Instantly share code, notes, and snippets.

View Yamaha32088's full-sized avatar

Brandon Brown Yamaha32088

View GitHub Profile
@Yamaha32088
Yamaha32088 / addAuthorizedIPs.php
Last active October 14, 2021 11:15
FreePBX cron job script for requesting a list of authorized ip's from a remote server and adding them to a zone
<?php
/**
* Script for dynamically adding firewall rules to FreePBX from a remote host.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,