Skip to main content

A CLI for managing pfSense configurations

Project description

PfCLI

License: MPL 2.0 Build PyPI security: bandit

:warning: This is a work in progress, only a few features are implemented, and none of them are under automated testing

Allows you to access PfSense machines through CLI, which should make headless management easier. The application uses the XML-RPC interface provided natively by PfSense.

Requirements

  • Python >= 3.12 - older versions might work, but are not supported

Installation

pipx install pfcli

Examples

List all domain overrides

pfcli unbound list-host-overrides --output json

Example output:

[
  {
    "domain": "yourdomain.tld",
    "host": "yourhost",
    "ip": "x.x.x.x",
    "aliases": [
      {
        "host": "youraliashost",
        "domain": "somedomain.tld",
        "description": "your host override alias description"
      }
    ],
    "description": "your host override description"
  }
]

Print version information

pfcli firmware version --output text

Example output:

config:
 version: 23.3

kernel:
 version: 14.0

platform: Netgate pfSense Plus

version: 23.09-RELEASE

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Code of Conduct

Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

MPL-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pfcli-0.1.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

pfcli-0.1.1-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file pfcli-0.1.1.tar.gz.

File metadata

  • Download URL: pfcli-0.1.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for pfcli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2121a1e5c8c4f0af0cb09d0489aff8a8e9806aefddc6f24c2b0ff7f0dbffa57a
MD5 808399cab6d102a9f6c974ad8a7300fb
BLAKE2b-256 d6c08955eb5e2a420589afa96be304f5263a91def6b08a2b48849b0c387b4a58

See more details on using hashes here.

File details

Details for the file pfcli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pfcli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for pfcli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea8a08f249775a4d68149373aefaa068c8cdb2e242dc3d4eae1e9b660115ebf4
MD5 692ec79fa5477c3d35e77cb14371d9fb
BLAKE2b-256 ed9aa46e5026edefb0e4b2157baaec5a16565c193de532b5b094b9274b0948d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page