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

    PfBlocker

    Scheduled Pinned Locked Moved pfSense Packages
    896 Posts 143 Posters 1.4m 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.
    • marcellocM
      marcelloc
      last edited by

      slarg,

      I think your are not on latest version, it should be

      2.0-RELEASE
      built on Tue Sep 13 17:05:32 EDT 2011

      update it to release version, then test again.

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

      Help a community developer! ;D

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

        LinuxTracker,

        Port alias must be applied on port field, not in host field.  ;)

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

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • L
          LinuxTracker
          last edited by

          @marcelloc:

          LinuxTracker,
          Port alias must be applied on port field, not in host field.  ;)

          Edited for block-headedness.

          Yep.  You is right on, you are.

          I sho nuff stepped into that one.

          1 Reply Last reply Reply Quote 0
          • A
            andrew0401
            last edited by

            Why does pfBlock create duplicate rules (or at least they look like duplicates to me) and where does it log to?  The dashboard widget is showing an increase in packet count but I seem unable to find out what is causing it.

            Andrew

            1 Reply Last reply Reply Quote 0
            • RonpfSR
              RonpfS
              last edited by

              @andrew0401:

              Why does pfBlock create duplicate rules (or at least they look like duplicates to me) and where does it log to?  The dashboard widget is showing an increase in packet count but I seem unable to find out what is causing it.

              Andrew

              pfBlocker package log to Status: System logs: System
              Just click Enable Logging under Firewall: pfBlocker for list action that are NOT Alias only.
              The pfBlocker auto generated rules will log events under Status: System logs: Firewal.

              When you use a pfBlocker Alias in your custom Firewall rules, select Log packets that are handled by this rule

              You can see more details in the firewall logs when you enable Show raw filter logs under Status: System logs: Settings

              2.4.5-RELEASE-p1 (amd64)
              Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
              Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

              1 Reply Last reply Reply Quote 0
              • A
                andrew0401
                last edited by

                pfBlocker package log to Status: System logs: System

                ***  Thanks for the info

                Just click Enable Logging under Firewall: pfBlocker for list action that are NOT Alias only.

                ***  Already set

                The pfBlocker auto generated rules will log events under Status: System logs: Firewal.

                ***  Not found them

                When you use a pfBlocker Alias in your custom Firewall rules, select Log packets that are handled by this rule

                ***  Already set

                You can see more details in the firewall logs when you enable Show raw filter logs under Status: System logs: Settings

                ***  Still no sign of anything that matchs

                Also why are all the rules duplicated?

                Andrew

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

                  Also why are all the rules duplicated?

                  Can you take a screenshot of this duplicates?

                  ***  Still no sign of anything that matchs

                  It will log as firewall rules, no extra info about pfBlocker package.

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

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • S
                    slagr
                    last edited by

                    @marcelloc:

                    slarg,

                    I think your are not on latest version, it should be

                    2.0-RELEASE
                    built on Tue Sep 13 17:05:32 EDT 2011

                    update it to release version, then test again.

                    marcelloc, thank you. That was the problem. It works just fine now.
                    Thanks again for the excellent package.

                    1 Reply Last reply Reply Quote 0
                    • A
                      andrew0401
                      last edited by

                      Duplicate rules on the WAN - if I delete one set then everything still works - but as soon as I open the pfblocker screen they reappear.

                      Also - when causes the count in the dashboard widget reset to zero?

                      Andrew

                      ![New Picture.jpg](/public/imported_attachments/1/New Picture.jpg)
                      ![New Picture.jpg_thumb](/public/imported_attachments/1/New Picture.jpg_thumb)

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

                        Do you have modified description rules? try to delete all pfblocker rules and then reaply config.

                        also check what version of pfBlocker you are using. Current version is 1.0

                        Everytime you apply rules, pfSense reset counters.

                        Just for suggestion, spyware and Adverts works better with action deny outbound, so while browsing pfsense reject connections to these sites/links.

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

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • A
                          andrew0401
                          last edited by

                          Deleted all rules.

                          Checked I am using version 1.0

                          Changed spyware & ads to deny outbound

                          Now have duplicate rule on WAN for TopSpammers but the new deny oubounds rules appear only once on the LAN tab

                          So partially fixed!

                          Thanks

                          Andrew

                          1 Reply Last reply Reply Quote 0
                          • D
                            darklogic
                            last edited by

                            Something I have noticed on my pulsemaps wordpress plugin. I have pfblocker enabled and I only allow US IP's. I been seeing on the pulsemaps data that I am getting alot of web activity from Japan in the areas of Nagano, Okaya, Suwa, Mt Kyogatake, and Ina. I also noticed some activity from Dubai which is in Saudi Arabia next toUnited Arab Emirates, and some activity from Australia from New South Wales near Narellan, Richmond, and Sydney.

                            I have no IP's to go by. I can only see locations that have access my website. I am currently blocking eveything but the US.

                            Any ideas?

                            Thanks

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

                              Change the way you apply rules.

                              Unselect everything but USA and choose action alias only.

                              After this, apply this alias on your wan rules.

                              Example:

                              Allow src pfBlockerAmerica dst wan_subnet port 80

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

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • K
                                kilthro
                                last edited by

                                I wanted to let you know that i finally upgraded to the latest release of pfsense (been on a rc release of 2.0 forever since its been solid for me) which also forced me to go ahead and move away from countryblock and upgrade to this package. I want to say thanks and let you know that I was able to install this package, block everything except for United states, and all is going great so far. The inbound was blocked with no issue. The only thing is the outbound. It would never add the rules to the table to block those no matter what i selected in the package. I just created my own rules with the alias of the countries from pfblocker and all is working great. The counter on the widget works on both inbound and outbound :-).

                                Thanks so much for putting this together!!!!!
                                Donation incoming too. :-)

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

                                  @kilthro:

                                  I was able to install this package, block everything except for United states

                                  take a look on post above yours.
                                  If your are blocking everything except United states, It`s better changing the way you apply rules.

                                  @kilthro:

                                  Thanks so much for putting this together!!!!!
                                  Donation incoming too. :-)

                                  Thank you  ;D

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

                                  Help a community developer! ;D

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    kilthro
                                    last edited by

                                    @marcelloc:

                                    @kilthro:

                                    I was able to install this package, block everything except for United states

                                    take a look on post above yours.
                                    If your are blocking everything except United states, It`s better changing the way you apply rules.

                                    [
                                    [/quote]

                                    Thank you  ;D

                                    Sorry let me rephrase. I am successfully blocking everything but the US as I planned. So it is working just fine. There is no issue. All networks appear to be blocked except for US and thats good!!!

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

                                      Yes, I understood that.

                                      The suggestion was just to use less resources from firewall.

                                      Allow access to 40.000 network and block anything else is less work then block all countries CIDRs and allow what is not matched.

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

                                      Help a community developer! ;D

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        kilthro
                                        last edited by

                                        Oh i c. That makes sense. Right now seems to be ok but if I see performance issues, I will take that in mind and change it up.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          trafficking
                                          last edited by

                                          Firstly, thank you for the excellent package.  I greatly enjoy using 3rd party lists to do IP blocking and have pfblocker configured and running the way I like it.  That said, I do have a couple questions.

                                          1. I prefer to block inbound and outbound connections on all interfaces and use pfblocker aliases with 2 floating rules to do this.  Is this the preferred method or is there another way I am missing?

                                          2. Not directly a pfblocker question, but in what order are floating rules applied?  Do they come before or after the individual interface rules?

                                          Thank you very much for all your hard work!

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

                                            1. I prefer to block inbound and outbound connections on all interfaces and use pfblocker aliases with 2 floating rules to do this.  Is this the preferred method or is there another way I am missing?

                                            Define action as alias only and create your rules. That's the best way.

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

                                            Help a community developer! ;D

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