r/PFSENSE•
stompro

Efficient way of setting up multiple firewalls

Hello, I just received a batch of 14 new SG-* devices from Netgate, and I'm wondering how others handle setting up multiple devices efficiently?

I've been using the approach of using search and replace in notepad++ to edit the config for each one based off a common setup. This still takes a fair bit of work and a checklist, and some monitoring of each change to make sure a change isn't made in the middle of an encryption key or other binary data.

I also have to go through the initial work of moving the config from something that works on our current Alix/APU1 boards running <=2.2.3 to the SG-2220 and SG-2440. It doesn't work to just upload the config in my experience.

I've been considering writing a script to walk through the search and replace steps, with more targeted patterns to only match the specific areas that need to be changed. Has anyone else done this?

Does anyone use the PHP pfSense shell to config their firewalls? I've seen it mentioned that development is moving away from php so maybe this isn't a good long term solution? https://doc.pfsense.org/index.php/Using_the_PHP_pfSense_Shell

Thanks

Posted Jul 12, 2016, 2:45 PM UTC

14
Loading comments…