• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Jul 20, 2022, 8:42 AM

    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 Jul 20, 2022, 5:29 PM Reply Quote 0
    • V
      viragomann @mauro.tridici
      last edited by Jul 20, 2022, 5:29 PM

      @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 Jul 20, 2022, 5:34 PM Reply Quote 1
      • R
        rcoleman-netgate Netgate @viragomann
        last edited by Jul 20, 2022, 5:34 PM

        @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 Jul 20, 2022, 5:43 PM Reply Quote 1
        • M
          mauro.tridici @viragomann
          last edited by Jul 20, 2022, 5:41 PM

          @viragomann thank you

          1 Reply Last reply Reply Quote 0
          • M
            mauro.tridici @rcoleman-netgate
            last edited by Jul 20, 2022, 5:43 PM

            @rcoleman-netgate thank you

            1 Reply Last reply Reply Quote 1
            • N nasheayahu referenced this topic on Feb 25, 2024, 6:10 PM
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received