Hello,
I need this to run from a script connecting to pfSense box through ssh via sshkeys, so yes :) I need it unattended!
My config is currently:
<aliases><alias><name>mx1</name>
<address>192.168.241.21</address>
<type>host</type>
<detail></detail></alias>
<alias><name>mx2</name>
<address>192.168.241.22</address>
<type>host</type>
<detail></detail></alias></aliases>
I thought to try a search and replace / regular expression solution:
<address>192.168.241.21</address>
becomes
<address>192.168.241.28</address>
Would a modification be promptly applied?
Or keep several copies of config.xml files to be substituted to the operative one. Will exchanging files trigger the system to read and act accordingly to the new settings?
Cumbersome I guess, but could do for my scenario.
Definitely I hope that pfSense will have a full CLI interface. It's greatness, the web gui, can't be a weakness too :)
At the moment the only important cli feature I can think of is the one of aliases, since I read that pass and block are already active
http://doc.pfsense.org/index.php/Adding_Rules_With_easyrule
http://www.linuxnet.ch/pfsense-important-cli-commands/
Also,
what if i have CARP? (not the case but it is in program), would config.xml editing via regular expressions or if overwritten by other file trigger a sync to the other boxes?
Thanks!