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

    Automatically save preset settings during new install

    Problems Installing or Upgrading pfSense Software
    1
    1
    768
    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.
    • C
      css.josh
      last edited by

      I usually install 5-10 gateways per week. They all have the same basic configuration, but I can't simply copy the config.xml over because hardware names change, some have more/less nic cards, etc, etc.

      I came up with something to save time and I'm going to share!

      The idea is that I install pfSense from the LiveCD install. I then plug my computer in to the LAN port and run a PHP script from my computer. This script automatically sets all of the usual configuration for me like changing the theme, setting the timezone, changing the admin password, etc.. basically when the script is done, I know the machine is ready to be installed by one of our techs.

      Feel free to check out the Github Project @ http://foe.im/ns8dS

      I've included the PHP Class that makes it happen, and a sample file to get you started!

      All you need is the file name that the information should be sent to and the information to send! You can find this information by viewing the HTML of any form in the WebGUI.

      It's definitely a work in progress, but feel free to check it out and let me know what you think!

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