The pfSense Store

Author Topic: [Completed] Firewall rules with color tags - like in FWBuilder [Patch inside]  (Read 4421 times)

0 Members and 1 Guest are viewing this topic.

Offline Mat187

  • Newbie
  • *
  • Posts: 13
  • Karma: +6/-0
    • View Profile
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

« Last Edit: April 23, 2015, 07:44:16 pm by cmb »

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 13398
  • Karma: +589/-7
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #1 on: January 26, 2015, 09:15:00 pm »
You mean this way?  :D


Offline Mat187

  • Newbie
  • *
  • Posts: 13
  • Karma: +6/-0
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #2 on: January 27, 2015, 03:54:59 am »
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

Quote
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

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 13398
  • Karma: +589/-7
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #3 on: January 27, 2015, 06:23:02 pm »
Can it be done via PayPal?

Offline Mat187

  • Newbie
  • *
  • Posts: 13
  • Karma: +6/-0
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #4 on: January 28, 2015, 12:32:16 am »
I will ask and try to find a way.

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 13398
  • Karma: +589/-7
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #5 on: January 28, 2015, 09:52:34 am »
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 .

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 13398
  • Karma: +589/-7
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #6 on: January 29, 2015, 09:36:09 am »
Quote
Is the programming effort much bigger to color the whole rule?

Here is the screenshot with whole rule changed

Offline Mat187

  • Newbie
  • *
  • Posts: 13
  • Karma: +6/-0
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #7 on: January 29, 2015, 03:50:22 pm »
Looks great :)

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 13398
  • Karma: +589/-7
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #8 on: January 29, 2015, 05:02:46 pm »
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?

Offline Mat187

  • Newbie
  • *
  • Posts: 13
  • Karma: +6/-0
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #9 on: January 30, 2015, 01:55:46 am »
For both would be great.

Offline jjstecchino

  • Full Member
  • ***
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #10 on: February 02, 2015, 10:18:00 am »
Color tagged rules is a nice touch for the GUI. Is this ever going to be made available in the mainstream version?

Offline Mat187

  • Newbie
  • *
  • Posts: 13
  • Karma: +6/-0
    • View Profile
Re: Firewall rules with color tags - like in FWBuilder $100
« Reply #11 on: February 03, 2015, 01:29:03 am »
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
« Last Edit: February 06, 2015, 02:56:56 am by Mat187 »

Offline jjstecchino

  • Full Member
  • ***
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: [Completed] Firewall rules with color tags - like in FWBuilder $100
« Reply #12 on: February 28, 2015, 07:41:54 pm »
Would you be able to share the patch in the meantime?

Offline Mat187

  • Newbie
  • *
  • Posts: 13
  • Karma: +6/-0
    • View Profile
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.
« Last Edit: March 10, 2015, 03:14:16 am by Mat187 »

Offline jjstecchino

  • Full Member
  • ***
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: [Completed] Firewall rules with color tags - like in FWBuilder $100
« Reply #14 on: March 10, 2015, 03:28:52 pm »
Thank you Mat, no disclaimer necessary. Your help is appreciated and if I trash my box it is indeed is my fault.