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

    How to export pfSense firewall rules to a .CSV file or other

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 3 Posters 5.8k 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.
    • M
      mauro.tridici
      last edited by

      Dear Users,

      do you know if there is a way to export to a .CSV file (or other) all the firewall rules defined in my pfSense instance?

      Thank you in advance,
      Mauro

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @mauro.tridici
        last edited by

        @mauro-tridici
        You can export the whole rule set as XML in Diagnostics > Backup & Restore > Backup & Restore > Backup area > Firewall Rules or you can download /tmp/rules.debug.

        R M 2 Replies Last reply Reply Quote 1
        • R
          rcoleman-netgate Netgate @viragomann
          last edited by

          @viragomann These are the only ways, yes.

          The /tmp/rules.debug file is in tab-delimited format

          Ryan
          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
          Requesting firmware for your Netgate device? https://go.netgate.com
          Switching: Mikrotik, Netgear, Extreme
          Wireless: Aruba, Ubiquiti

          M 1 Reply Last reply Reply Quote 1
          • M
            mauro.tridici @viragomann
            last edited by

            @viragomann thank you

            1 Reply Last reply Reply Quote 0
            • M
              mauro.tridici @rcoleman-netgate
              last edited by

              @rcoleman-netgate thank you

              1 Reply Last reply Reply Quote 1
              • N nasheayahu referenced this topic on
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.