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

    Restoring Firewall Rules

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 1.6k 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.
    • P Offline
      philefluxx
      last edited by

      Hello,
            So while playing with static routes my co-worker accidentally created a routing loop in the middle of the work day. To quickly get traffic moving again I restored the Pfsense box to factory default. Unfortunately I have not backed up my firewall rules (I know shame on me) simply because I needed to clean them up first. I am curious if this rule file is possibly some where on the box that I can find via the shell. I have found the rules.debug and a rules.debug.old. Ive cat these files and they seem to be current rules I have recreated since restoring to default.

      If there isnt a way to restore these rules, can you please tell me what the best practice is for backing up these rules so I dont run into this problem again. Thanks in advance.

      Edit: Ah I see where you backup/restore. So Im just curious if the old rules are somewhere on this box? Thanks!

      1 Reply Last reply Reply Quote 0
      • B Offline
        blak111
        last edited by

        I'm not sure if the factory restore clears this directory, but check /conf/backup.

        1 Reply Last reply Reply Quote 0
        • P Offline
          philefluxx
          last edited by

          @blak111:

          I'm not sure if the factory restore clears this directory, but check /conf/backup.

          Looks like it does. All my config.xml files are current rule sets. Thank you anyways, Ive pretty much been piecing it back together for the past few hours watching what is blocked and tracing it to the source and determining what the traffic is. I know that I will be backing up my config this time. Thanks again for the help!

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