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

    [Completed] Firewall rules with color tags - like in FWBuilder [Patch inside]

    Completed Bounties
    3
    15
    6.0k
    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
      Mat187
      last edited by

      Hi,

      to have a better overview of firewall rule blocks (like administrative rules / LAN to IPsec - Rules / and so on), I need the possibilty to add to a rule a color tag. Either to have the whole rule in a color or only the description field (wich is red already). The description field should be enough, depends on wich is solution is easier. If you ever worked with FWBuilder, you should know what I mean.

      Thanks in advance
      Matt

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        You mean this way?  :D

        change_description_color_rules.png
        change_description_color_rules.png_thumb
        change_description_color.png
        change_description_color.png_thumb

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

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

          Hi,

          yes, to the setup part. :) But there are some questions that came up.

          • I had a talk to my boss about that, he would prefer the whole rule in a defined color. Is the programming effort much bigger to color the whole rule?
          • since this is not a private demand, is it possible to get a invoice with billing information? Sorry for the question, but the only thing I found is

          Funds collection
          The means and timing of funds collection will vary from one bounty to another. Some developers may require the funds be submitted to the general pfSense donation fund prior to completing the work, if those offering are willing. In that case, I act as the escrow between the originator and the developer performing the work.  If the bounty is abandoned the developer agrees that the money will be refunded in full.  Due to many issues of folks being paid in a timely manner or not being paid at all, we now require the money up front.  Using either the pfSense escrow or paying the developer directly.  We apologize for needing to make this change but a couple of bad apples have ruined it for everyone.

          Best regards

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            Can it be done via PayPal?

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

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

              I will ask and try to find a way.

              1 Reply Last reply Reply Quote 0
              • marcellocM
                marcelloc
                last edited by

                I can request payment via paypal. This works like an invoice.

                If it's ok for your company, send me the email via private message .

                request_payments.png
                request_payments.png_thumb

                Treinamentos de Elite: http://sys-squad.com

                Help a community developer! ;D

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  Is the programming effort much bigger to color the whole rule?

                  Here is the screenshot with whole rule changed

                  change_color_rules.png
                  change_color_rules.png_thumb

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

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

                    Looks great :)

                    1 Reply Last reply Reply Quote 0
                    • marcellocM
                      marcelloc
                      last edited by

                      I'll send you the patches to apply  using system patches package.

                      Do you  need it to pfSense 2.2 only or 2.1 too?

                      Treinamentos de Elite: http://sys-squad.com

                      Help a community developer! ;D

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

                        For both would be great.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jjstecchino
                          last edited by

                          Color tagged rules is a nice touch for the GUI. Is this ever going to be made available in the mainstream version?

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

                            Yes, it is really nice :-) Works like a charm and you have a better overview, if you have a lot of rules to handle. I asked marcelloc if it is possible to make it available through the package manager, he is trying.

                            Big thanks to marcelloc for the good and fast work

                            1 Reply Last reply Reply Quote 0
                            • J
                              jjstecchino
                              last edited by

                              Would you be able to share the patch in the meantime?

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

                                Sure … Sorry for the late reply.

                                Here the diff - files:

                                Firewall Rules Color: https://www.dropbox.com/s/lvij6vy0xn6ps3r/firewall_rules_color_pfsense_22.diff?dl=0
                                Firewall Rules Edit Color: https://www.dropbox.com/s/5903b1yvlfwbq6x/firewall_rules_edit_color_pfsense_22.diff?dl=0

                                How to install:
                                After installing systempatches package on pfsense 2.2, create a patch for each .diff file
                                Do not forget to add the Base Directory option to patch.

                                After creating and saving the patches, click on test and then apply.

                                Test it on lab before applying to production box.

                                If you need to revert to original files, you can fetch it via console/ssh
                                fetch https://raw.githubusercontent.com/pfsense/pfsense/master/usr/local/www/firewall_rules.php
                                fetch https://raw.githubusercontent.com/pfsense/pfsense/master/usr/local/www/firewall_rules_edit.php

                                and then copy or move to /usr/local/www

                                Some pics:



                                I can't give any support on the code and I take no responsibility for any damage on systems. On my systems (production) it works without any problems, but test it before installing on your production enviroment!!!

                                If you change something on the code, please upload it. Thanks

                                Have fun.

                                system_patches.png
                                system_patches.png_thumb
                                firewall_rules_color.png
                                firewall_rules_color.png_thumb
                                firewall_rules_edit_color.png
                                firewall_rules_edit_color.png_thumb

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jjstecchino
                                  last edited by

                                  Thank you Mat, no disclaimer necessary. Your help is appreciated and if I trash my box it is indeed is my fault.

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