Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/banksio/node-pfsensescripts


https://github.com/banksio/node-pfsensescripts

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# node-pfSenseScripts
![GitHub last commit](https://img.shields.io/github/last-commit/banksio/node-pfSenseScripts)
![Docker Build Status](https://img.shields.io/docker/build/banksio/pfsensescripts)
[![Docker Pulls](https://img.shields.io/docker/pulls/banksio/pfsensescripts)](https://hub.docker.com/r/banksio/pfsensescripts)

A node.js app to perform various actions on a pfSense web GUI.

Currently in alpha: There may still be some rough edges, but please feel free to test it and report any bugs found, or new features that may be beneficial!
## Features
* Change the gateway of a Firewall Rule.

## Usage
### Environment Variables
There are a selection of environment variables that are required to be set for this script to work. These are documented below.

You can use a `pfsensescripts.env` file with the docker-compose included in this repository, or just pass them into `docker run` manually.
Variable | Content
------------ | -------------
pfSense_IP | The IP address of the pfSense instance to perform the task on.
pfSense_user | The username to authenticate with the pfSense instance.
pfSense_pass | The password to authenticate with the pfSense instance.
task | The task for the script to perform. 1 for reboot and 2 for rule gateway change.
gatewayText | The text to match to the gateway to switch the Firewall Rule to.
pfSense_if | The interface for which to check the Firewall rules of.
pfSense_RuleDesc | The rule description of the rule to modify.

*Further documentation coming soon.*