项目作者: ecnepsnai

项目描述 :
Python script to download config backups from pfSense firewalls
高级语言: Python
项目地址: git://github.com/ecnepsnai/pfbackup.git
创建时间: 2020-10-05T01:16:35Z
项目社区:https://github.com/ecnepsnai/pfbackup

开源协议:MIT License

下载


pfbackup

A python script to download config backups from running pfSense instance.

Requirements

  • Python 3
  • Requests

A Docker container is available with these requirements already installed.

Usage

  1. Usage: python3 download.py <options>
  2. Note: All options can also be passed as environment variables with PFSENSE_<ARG NAME IN CAPS>
  3. Required options:
  4. --host <value> IP Address or hostname of the PFSense device
  5. --username <value> Username for the PFSense device
  6. --password <value> Password for the user.
  7. Optional options:
  8. --allow-untrusted-certificates Disable TLS verification
  9. --encrypt-password <value> Encrypt backups using this password
  10. --out-file <value> Specify the path of the output file. Defaults to <host>_<date>.xml

Docker

  1. docker run \
  2. -v $(pwd):/backup \
  3. -e PFSENSE_HOST=192.168.1.1 \
  4. -e PFSENSE_USERNAME=admin \
  5. -e PFSENSE_PASSWORD=pfsense \
  6. --rm \
  7. pfbackup:latest