Untangle report email for Google Script based on backed-up content. This came about as an alternative to the very generic and non-pretty reports that are generated by Untangle. Using Google scripts allows minimal intrusion on the firewall itself to gather data, is cloud based for high availability and is all in a nice looking easy-to-understand HTML format.
- Set up your Untangle Firewall to upload backup logs and configurations to a Google account
- Create a Google script project (at
script.google.com
) that contains the two files in this repo. - Configure the following environment variables at the top of the
.gs
file, the key ones being:
const NETWORK_NAME = '<Your network name>';
const REPORT_RECIPIENTS = "<Your list of email recipients>";
- Setup a scheduled job to run the
sendReport
function every 15 minutes - Enjoy your beautiful Untangle report! It contains an executive summary in the email body and an excel file with all of the important details to boot.