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

    IPv6 only subnet. How to turn off logging blocked ipv4 link local?

    Scheduled Pinned Locked Moved IPv6
    8 Posts 2 Posters 821 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.
    • IsaacFLI
      IsaacFL
      last edited by

      I have setup a subnet that is ipv6 only for testing and it works pretty well (I have a separate NAT64 gateway setup also) so far.

      The issue I have encountered is that many clients are still dual stack, and my logs are filled with "Block IPv4 link-local (1000000101)" entries.
      Annotation 2019-11-11 200854.png

      I have tried setting up rules that would block but not log, but the rule that blocks ipv4 link local traffic apparently fires before the interface rules.

      Here are the firewall rules for the subject interface:

      Annotation 2019-11-11 200856.png

      As you can see I have tried just blocking all ipv4 traffic with no logging but no luck.

      Is there a setting I have overlooked?

      I was thinking of submitting this to the bug tracker but would you consider this to be a feature request or a bug?

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by johnpoz

        What is that source your using for rfc1918? Its not a alias? And shows no hits.

        And from you log you have a rule called block IPv4 link-local blocking it - do you have something on the floating tab?

        What version of pfsense is this?

        edit:
        Ah your hitting the hidden block link-local rule

        [2.4.4-RELEASE][admin@sg4860.local.lan]/root: pfctl -vvsr | grep link-local
        @3(1000000101) block drop in quick inet from 169.254.0.0/16 to any label "Block IPv4 link-local"
        @4(1000000102) block drop in quick inet from any to 169.254.0.0/16 label "Block IPv4 link-local"
        

        You can turn it off - see here.
        https://redmine.pfsense.org/issues/2073

        Another option would be to just turn off logging of default blocking, and then just create rules that log what you want logged.. Prob better option in your case.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        IsaacFLI 1 Reply Last reply Reply Quote 0
        • IsaacFLI
          IsaacFL @johnpoz
          last edited by

          @johnpoz

          It is probably the case that I still want to have a rule to block the ipv4 link-local on the other interfaces that are dual stack.

          I wonder why they didn't have this rule fire after the user defined rules? There must be a reason I am not seeing yet. We are told that everything on an interface is blocked unless a rule is written to pass.

          I will try turning off logging of default blocking tonight, and see if that works.

          Do you think I should open a feature request? It is probably acting as designed so not a bug?

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            Link local is not suppose to route so it should be blocked.. If you log default rules then you will see it when its blocked.

            If you do not want to see it, turn off logging of default blocks. It really is that simple.

            If you don't want to turn off default logging, then you would need to turn off the default block to not see it in the default block logs..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            IsaacFLI 1 Reply Last reply Reply Quote 0
            • IsaacFLI
              IsaacFL @johnpoz
              last edited by

              @johnpoz said in IPv6 only subnet. How to turn off logging blocked ipv4 link local?:

              Link local is not suppose to route so it should be blocked.. If you log default rules then you will see it when its blocked.

              If you do not want to see it, turn off logging of default blocks. It really is that simple.

              If you don't want to turn off default logging, then you would need to turn off the default block to not see it in the default block logs..

              I did confirm that turning off logging of default rules does turn it off. I will probably leave it on for now as it is just a test subnet.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                But thought you said it was too noisy? Just leave it off, and put in the block rules you want that log.. For example in your block rule that you log source is your net, then noise like link-local which is not your network would not be blocked by that, and fall through to the default and be blocked, but not logged.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                IsaacFLI 1 Reply Last reply Reply Quote 0
                • IsaacFLI
                  IsaacFL @johnpoz
                  last edited by

                  @johnpoz I like to be able to still see in the log items such as tcp:a that are captured by the default rule.

                  Right now the ip6 only subnet is a test for me. Everything else is dual stack.

                  As far as the noise it only becomes a real issue when it is the WiFi net being tested. iPhones use link local multicast constantly for bonjour.

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator
                    last edited by

                    Like I said turn off default logging and only log what you want... So you can set it up to block and log your tcp stuff, but not the multicast

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

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