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

    Import pf config to pfsense

    Installation and Upgrades
    3
    3
    2409
    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.
    • A
      acrane
      last edited by

      Hey,
      I have a pf firewall that is being used in a production environment, that has a few hundred IPs configured and a lot of rules. The box needs replacing and I thought I would switch to pfsense s I've been using it at home and love it. I was wondering if there was any way to convert/import the pf.conf file so that pfsense could use it.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        There aren't any import tools or automated conversions for that scenario.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • R
          rjcrowder
          last edited by

          @acrane:

          Hey,
          I have a pf firewall that is being used in a production environment, that has a few hundred IPs configured and a lot of rules. The box needs replacing and I thought I would switch to pfsense s I've been using it at home and love it. I was wondering if there was any way to convert/import the pf.conf file so that pfsense could use it.

          You could do this yourself with a text editor and some macros (or vi). Just create a rule in the UI so that you can look at how it gets saved in the config.xml file (see /conf/config.xml). From there you can figure out how to take your list and manually create the additional entries in the config.xml file. Depending on what you've got and how good you are with macros it might be easier than entering all of them in the UI.

          Once you put the new config.xml in place, reboot and pfSense will pickup the changes.

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