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

    VLAN an Firewall rule not matching

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    68 Posts 3 Posters 13.1k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @interessierter
      last edited by johnpoz

      @interessierter dude that is not the actual TABLE that is created from the alias..

      Go to the diagnostic menu, pick tables then select your 192_netz table.. Does it list this network, do you see the table in the table drop down?

      See my above example showing my rfc1918 table created from my rfc1918 alias.

      What I am trying to verify is this

      verify.jpg

      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

      I 1 Reply Last reply Reply Quote 0
      • I
        interessierter @johnpoz
        last edited by

        @johnpoz said in VLAN an Firewall rule not matching:

        @interessierter dude that is not the actual TABLE that is created from the alias..

        Go to the diagnostic menu, pick tables then select your 192_netz table.. Does it list this network, do you see the table in the table drop down?

        See my above example showing my rfc1918 table created from my rfc1918 alias.

        What I am trying to verify is this

        verify.jpg

        Sorry do you mean here? If yes, the 192_Netz is not here:
        79112fab-f15f-4383-bac2-73354be3a301-image.png

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

          @interessierter well if you do not see your table populated, then that would explain why that rule is not working.

          As I highlighted, tables that you create with an alias are not populated until they are put into a rule, and the rule is loaded.

          If your not seeing the table listed under diagnostics. Then no it wouldn't work..

          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

          I 1 Reply Last reply Reply Quote 0
          • I
            interessierter @johnpoz
            last edited by

            @johnpoz said in VLAN an Firewall rule not matching:

            @interessierter well if you do not see your table populated, then that would explain why that rule is not working.

            As I highlighted, tables that you create with an alias are not populated until they are put into a rule, and the rule is loaded.

            If your not seeing the table listed under diagnostics. Then no it wouldn't work..

            But what did I wrong? I have saved and applied the rule after creating, and I m sure that the firewall was also rebooted in the time between (what should be anyway not required).

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

              @interessierter You sure your not seeing a error about memory? You sure look to have a lot of aliases..

              And none of your rules show any hits at all - they all show 0/0 for states.

              When you have lots entries in your tables - it can cause a memory issue.

              There are many a thread related to this about. Here for example

              https://forum.netgate.com/topic/154266/error-s-loading-the-rules-tmp-rules-debug-28-cannot-define-table-pfb_pri2_alienvault_v4-cannot-allocate-memory

              Have you increased your table entries?

              maxtable.jpg

              This setting is system / advanced / firewall & nat

              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
              • Bob.DigB
                Bob.Dig LAYER 8
                last edited by Bob.Dig

                This post is deleted!
                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @Bob.Dig
                  last edited by

                  @bob-dig said in VLAN an Firewall rule not matching:

                  It looks like an alias can't start with a number

                  Looks to be working here..

                  test.jpg

                  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

                  Bob.DigB 1 Reply Last reply Reply Quote 1
                  • Bob.DigB
                    Bob.Dig LAYER 8 @johnpoz
                    last edited by Bob.Dig

                    @johnpoz You are right, I had no rule using it. Working here too.

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

                      @bob-dig no problem - it was a good check to be sure.

                      if I had to "GUESS" from how many aliases he has setup, and I see some there labeled IPv6, etc..

                      He needs to adjust his max table entries.. Maybe his not seeing the error that should show up when rules don't load because of allocation of memory.. I would assume that TOP_v6 rule would be quite large..

                      I also don't like that none of his rules showing any hits at all 0/0 there for states..

                      His any any IPv4 rule he shows for sure should show something vs 0/0.. That is if anything is hitting that interface at all for traffic. But tables in rules don't actually have to trigger to populate - they just need to be used in a rule. And the rules reloaded, which would happen when you hit apply.

                      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

                      I 1 Reply Last reply Reply Quote 0
                      • I
                        interessierter @johnpoz
                        last edited by

                        @johnpoz said in VLAN an Firewall rule not matching:

                        @bob-dig no problem - it was a good check to be sure.

                        if I had to "GUESS" from how many aliases he has setup, and I see some there labeled IPv6, etc..

                        He needs to adjust his max table entries.. Maybe his not seeing the error that should show up when rules don't load because of allocation of memory.. I would assume that TOP_v6 rule would be quite large..

                        I also don't like that none of his rules showing any hits at all 0/0 there for states..

                        His any any IPv4 rule he shows for sure should show something vs 0/0.. That is if anything is hitting that interface at all for traffic. But tables in rules don't actually have to trigger to populate - they just need to be used in a rule. And the rules reloaded, which would happen when you hit apply.

                        I can change the name of the alias. This appliance have 16GB memory, and the utilization show 9%.
                        e4c2f98a-96a2-468e-802d-96ba5f08a7bb-image.png

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

                          @interessierter said in VLAN an Firewall rule not matching:

                          This appliance have 16GB memory, and the utilization show 9%.

                          that has nothing to do with the max entries that can be put into a table.. Well almost nothing ;) Check the max table entries I showed.. Increase it!! To something quite large.. Or turn off all your other pfblocker aliases, etc.. See mine is set to 1.6Million ;)

                          What I can tell you for sure - is if the table does not show populated in the diagnostic menu - its never going to be able to do anything in a rule with that table.

                          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

                          I 1 Reply Last reply Reply Quote 0
                          • I
                            interessierter @johnpoz
                            last edited by

                            @johnpoz said in VLAN an Firewall rule not matching:

                            @interessierter said in VLAN an Firewall rule not matching:

                            This appliance have 16GB memory, and the utilization show 9%.

                            that has nothing to do with the max entries that can be put into a table..

                            I have changed the Name, it still does not show in the table. By the way I don t see ANY of the Alias and IP section in the table under Diagnostics. The only lists that I see if from snort, and all that is added under Alias / URL

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

                              @interessierter If you do not see any table populated - that also points to a problem - most likely related to your max table size.

                              What is it set to currently? Increase it to something very large!!

                              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

                              I 1 Reply Last reply Reply Quote 0
                              • I
                                interessierter @johnpoz
                                last edited by

                                @johnpoz this here?
                                bd22af28-c3ba-4f93-8809-c63bbc9850f2-image.png

                                I johnpozJ 2 Replies Last reply Reply Quote 0
                                • I
                                  interessierter @interessierter
                                  last edited by

                                  @interessierter Is this my problem?

                                  6ae46348-57d8-4f69-a41c-d887ad40cdf2-image.png

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

                                    @interessierter yeah that there.. Well 2mil should be quite large, unless you have more aliases not showing?

                                    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

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

                                      @interessierter why would you have that set? That would only ever be used if you were running multiple layer 3 on the same layer 2..

                                      And that sure shouldn't have anything to do with the tables loading.

                                      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
                                      • I
                                        interessierter @johnpoz
                                        last edited by

                                        @johnpoz said in VLAN an Firewall rule not matching:

                                        @interessierter yeah that there.. Well 2mil should be quite large, unless you have more aliases not showing?

                                        non of my custom alias is showing. What should I set?

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

                                          @interessierter what I would suggest is for testing turn off all your pfblocker aliases, since they can be large.. I would also turn off bogonV6 if you have that enabled. Also another one that can just be freaking huge.

                                          I doubt that bypass firewall rules has anything to do with it.. Because I just set it, and still see my tables populated.. Even after filter reload. But unless you have specific use case for that - it shouldn't be enabled. It sure isn't enabled by default.. Not sure why you would of turned that on?

                                          I would then do a filter reload - under status.. Do you see any errors on loading anything?

                                          filterreload.jpg

                                          If your tables are not populated there is no way they could be used in rules..

                                          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

                                          I 1 Reply Last reply Reply Quote 0
                                          • I
                                            interessierter @johnpoz
                                            last edited by

                                            @johnpoz said in VLAN an Firewall rule not matching:

                                            @interessierter what I would suggest is for testing turn off all your pfblocker aliases, since they can be large.. I would also turn off bogonV6 if you have that enabled. Also another one that can just be freaking huge.

                                            I doubt that bypass firewall rules has anything to do with it.. Because I just set it, and still see my tables populated.. Even after filter reload. But unless you have specific use case for that - it shouldn't be enabled. It sure isn't enabled by default.. Not sure why you would of turned that on?

                                            I would then do a filter reload - under status.. Do you see any errors on loading anything?

                                            filterreload.jpg

                                            If your tables are not populated there is no way they could be used in rules..

                                            I get this one at the end:

                                            Loading filter rules
                                            Setting up logging information
                                            Setting up SCRUB information
                                            There were error(s) loading the rules: /tmp/rules.debug:135: could not parse host specification - The line in question reads [135]: rdr pass on igb2 inet6 proto tcp from any to ::1010101 port 80 -> ::1 port 8081

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