通过sshconfigurationPfsense

我想知道我可以通过ssh完全configuration和添加表到pfsense。 我的目标是有一个networking安装程序,configuration多个系统,并根据输出将configurationpfsense防火墙。

通过ssh,configurationwan,lan会根据conf.txtconfiguration文件自动启用端口80,22等。

谢谢

也许,当你看看可靠的和剧本的时候会更容易一些。 有一些pfsense剧本,我想你会发现更多。 在那里你可以制作模板,并通过sshconfiguration你的防火墙。

https://github.com/amatas/ansible-pfsense
http://docs.ansible.com/playbooks.html

pfSense php shell可能会帮助你。 文档位于https://doc.pfsense.org/index.php/Using_the_PHP_pfSense_Shell

它似乎允许您编辑和查看sshshell的configuration。

AutoConfigBackup模块可能适合您的使用情况。

它将pfSense的完整configuration存储在一个XML文件中。

您可以抓取,修改并将此文件推送到任意数量的pfSense实例。

<?xml version="1.0"?> <pfsense> <version>11.9</version> <lastchange/> <theme>pfsense_ng</theme> <sysctl> <item> <descr><![CDATA[Disable the pf ftp proxy handler.]]></descr> <tunable>debug.pfftpproxy</tunable> <value>default</value> </item> ...