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

    Virusprot change DROP to REJECT

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 2 Posters 672 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.
    • R
      Ralz
      last edited by

      Good day,

      I need some help... It's possible modify virusprot configuration? Change DROP policies to REJECT

      Thanks in advance!
      Ralz.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Not easily, there's no config setting to do that. You could do it by patching the file that generates that rule if you really need to.

        Steve

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

          Thanks Steve.

          Do you know what file?

          Ralz.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Probably: https://github.com/pfsense/pfsense/blob/master/src/etc/inc/filter.inc#L3864

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

              Thanks Steve.

              I will check.

              Ralz.

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

                I think i have to change this:

                $ipfrules .= "block in {$log['block']} quick from <virusprot> to any ridentifier 1000000400 label \"virusprot overload table\"\n";
                

                with this:

                $ipfrules .= "block return {$log['block']} quick from <virusprot> to any ridentifier 1000000400 label \"virusprot overload table\"\n";
                

                basically adding 'return' after 'block'

                may it be correct, Stephen? would this small change have there be any further implication anywhere else?

                Thanks,

                Ralz

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  I expect it to be:
                  $ipfrules .= "block return in {$log['block']} quick from <virusprot> to any ridentifier 1000000400 label \"virusprot overload table\"\n";

                  I wouldn't expect it to make any difference to anything else but there's always a chance of typoing something when editing a file like that.

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

                    Thanks Stephen

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