Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Automatically configure with default settings using command line

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 507 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bidyut
      last edited by

      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)?

      1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by kiokoman

        make a copy of a clean /conf/config.xml
        ...
        do stuff
        ...
        restore the original config.xml and reboot

        or

        php /etc/rc.initial.defaults
        

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        B 1 Reply Last reply Reply Quote 0
        • NogBadTheBadN
          NogBadTheBad
          last edited by NogBadTheBad

          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

          Andy

          1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

          B 1 Reply Last reply Reply Quote 0
          • B
            bidyut @NogBadTheBad
            last edited by

            @NogBadTheBad Unfortunately, AWS does not allow launching from snapshots of marketplace images.

            1 Reply Last reply Reply Quote 0
            • B
              bidyut @kiokoman
              last edited by

              @kiokoman Thanks - that should work

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.