Navigation

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

    Automate PFsense

    General pfSense Questions
    3
    5
    705
    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.
    • M
      mattman0123 last edited by

      Hi All,

      I have a virtualized pfsense firewall in front of a vcenter server with almost 100 new servers being added a day.

      We program the new VM's MAC Address in the pfsense to get a static IP and then port forward to the new Static IP.

      Is there any way to bluck add rules or do we have to add each rule manually...

      Any help would be appreciated.

      1 Reply Last reply Reply Quote 0
      • C
        coreybrett last edited by

        I think you would have to modify the config.xml file, then restore it back to the running system via SSH script.

        You might want to checkout TNSR.
        https://www.netgate.com/applications/high-performance-vrouter.html

        1 Reply Last reply Reply Quote 1
        • NogBadTheBad
          NogBadTheBad last edited by

          @mattman0123 said in Automate PFsense:

          Hi All,
          I have a virtualized pfsense firewall in front of a vcenter server with almost 100 new servers being added a day.
          We program the new VM's MAC Address in the pfsense to get a static IP and then port forward to the new Static IP.
          Is there any way to bluck add rules or do we have to add each rule manually...
          Any help would be appreciated.

          Maybe you can automate it via the php shell:-

          https://www.netgate.com/docs/pfsense/development/using-the-php-pfsense-shell.html?highlight=automation

          Andy

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

          1 Reply Last reply Reply Quote 0
          • M
            mattman0123 last edited by

            Would any one give me an example of what the php would look like to add a static map?

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

              Maybe not.

              https://forum.netgate.com/topic/109030/upload-a-dhcp-static-mappings-table-to-a-pfsense-device

              Andy

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post