Automatically configure with default settings using command line
-
I'm creating a training environment using pfSense on AWS. I need to launch the AWS Marketplace AMI and then configure it automatically before student gets to it. I'm planning on running a shell script over SSH.
I would like to automatically configure pfSense using default settings as one would through the webconfigurator without any changes. How could I accomplish this over the command line (through SSH shell)?
-
make a copy of a clean /conf/config.xml
...
do stuff
...
restore the original config.xml and rebootor
php /etc/rc.initial.defaults
-
Can't you do snapshots in AWS, just do a roll back once the students are done.
I've never used AWS BTW.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html
-
@NogBadTheBad Unfortunately, AWS does not allow launching from snapshots of marketplace images.
-
@kiokoman Thanks - that should work