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

    PfBlocker Alias log problems

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 1.2k 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.
    • S Offline
      splmachine
      last edited by

      Can anyone using pfBlocker who has it setup with Alias only and using rules (with logging packets checked in the rule) tell me if they see the Alias name in their logs when something is blocked with pfblocker? I found an IP in the block list, pinged it and it was blocked however looking in the logs I see things like this without the actual alias name that is associated with it.

      Can anyone verify that they DO see the Alias name that caused the blocked attempt? I have a few lists and it'd be hard to figure out what list is blocking something without a name (I do see "rule" numbers though). I've asked in the long pfBlocker thread and was directed here. I redid the rules, reinstalled pfblocker and am on the latest version.

      Wed May 07 17:32:33 2014: <134>May  7 17:33:14 pf:    192.168.1.10 > X.X.X.X: ICMP echo request, id 82934, seq 2, length 64
      Wed May 07 17:32:34 2014: <134>May  7 17:33:15 pf: 00:00:00.997994 rule 95/0(match): block in on em1: (tos 0x0, ttl 64, id 46074, offset 0, flags [DF], proto ICMP (1), length 84)

      Thanks

      1 Reply Last reply Reply Quote 0
      • BBcan177B Offline
        BBcan177 Moderator
        last edited by

        The firewall logs include Block/Reject/Pass alerts from pfBlocker and all of the other alerts by rules defined by pfSense default rules. All of the rules can be seen by using the following command:

        pfctl -s rules -vv

        This can be run from a Shell or Diagnostics:Command Prompt

        In system logs settings you can configure what get displayed in the firewall logs.

        Log packets blocked by the default rule
        Log packets blocked by 'Block Bogon Networks' rules
        Log packets blocked by 'Block Private Networks' rules

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        1 Reply Last reply Reply Quote 0
        • S Offline
          splmachine
          last edited by

          That rule was exactly what I needed, Thanks. Now I can match up rule number with the actual rule. One last thing though, looking in the log settings I have raw logging enabled, and most of the options enabled. Is there a way to have the logging show pfBlockerAliasName vs something like "Rule 50"? Or is that it?

          1 Reply Last reply Reply Quote 0
          • BBcan177B Offline
            BBcan177 Moderator
            last edited by

            @splmachine:

            That rule was exactly what I needed, Thanks. Now I can match up rule number with the actual rule. One last thing though, looking in the log settings I have raw logging enabled, and most of the options enabled. Is there a way to have the logging show pfBlockerAliasName vs something like "Rule 50"? Or is that it?

            Is Rule 50 one of the Default rules or a pfBlocker Rule?

            If its a Default rule it will just show the Rule Number.

            You would most likely leave these three off. Especially the first one as you will get a lot of noise.

            Log packets blocked by the default rule
              Log packets blocked by 'Block Bogon Networks' rules
              Log packets blocked by 'Block Private Networks' rules

            One thing to remember is that if you modify a Rule, it will change the Rule Names in the Firewall log (all will be mismatched).

            This will hopefully be fixed in 2.2

            "Experience is something you don't get until just after you need it."

            Website: http://pfBlockerNG.com
            Twitter: @BBcan177  #pfBlockerNG
            Reddit: https://www.reddit.com/r/pfBlockerNG/new/

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