Skip to content

ansible module for managing pfsense firewalls

License

Notifications You must be signed in to change notification settings

f-bor/ansible-pfsense

 
 

Repository files navigation

ansible-pfsense

Ansible modules for managing pfsense firewalls.

This is a set of modules to allow you to configure pfsense firewalls with ansible.

installation

Just checkout the repository and run your playbooks from the ansible-pfsense directory.

configuration

The python interpreter is in a non-standard location on pfSense, so you will need to set:

ansible_python_interpreter: /usr/local/bin/python2.7

modules

There are currently the following modules:

bulk modules

These modules allow you to make important changes at once and, using the purge parameters, to keep the targets configuration strictly synchronized with your playbooks:

operation

It works by editing /cf/conf/config.xml using xml.etree.ElementTree, then calling the appropriate php update function via the pfsense php developer shell.

Some formatting is lost, and CDATA items are converted to normal entries, but so far no problems with that have been noted.

license

GPLv3.0 or later

About

ansible module for managing pfsense firewalls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.5%
  • Shell 0.5%