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

    Firewall Change log

    General pfSense Questions
    5
    7
    5.5k
    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.
    • C
      CyClore
      last edited by

      Is there a file, or a way that will show what changes have been made to the firewall?  Say for example I make a config change to NAT or portforwarding.  Is there a file that shows that I made the change?

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

        Not specifically as far as I know, although you can take a backup of your config prior to any change and run a diff against the new config.

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          Each rule has a Rule Information section at the bottom of the rule that shows when it was created and updated, but not the actual details of each change.

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

            I am looking for something to send to a syslog.  We have many of these in production and now auditors want all these logs coming to a central location.  I can see vpn users logging in and out and what pfblocker is doing, but nothing for actual firewall changes.  I am really going to have to switch to something else.  I bought all the pfsense devices from this site!  Really hoping there is an easy solution.  I have about 10 of these in the field and need another but if they can't syslog the firewall rules / port forewarding changes my boss may force me to change…

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              Since you have all this purchased hardware, they probably come with support,  Why not contact ESF directly and get an official response?

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

                Diagnostics > Backup/Restore, Config History tab

                There isn't currently a way to send that info over syslog, though.

                You could probably hack a log entry into write_config() that would log the revision description when it happens.

                Quick one-line patch you can apply with the System Patches package: http://files.atx.pfsense.org/jimp/patches/log_config_write.patch

                Sample output on save:

                Mar 18 13:13:46 	php-fpm[54677]: /firewall_rules_edit.php: write_config: admin@198.51.100.6: /firewall_rules_edit.php made unknown change
                

                Then you can filter your logs on "write_config" for example and it would find the changes and who made them (but not usually specifics about the change).

                There are probably better ways to pull that off, so it's not something I'd commit as-is, but it may be good enough for what you need.

                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 1
                • N
                  ntqpublic
                  last edited by

                  @jimp Any update now ? I would like to us this feature as Official

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