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

VLAN an Firewall rule not matching

L2/Switching/VLANs
3
68
11.0k
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.
  • B
    Bob.Dig LAYER 8 @johnpoz
    last edited by Bob.Dig Dec 17, 2021, 2:14 PM Dec 17, 2021, 2:14 PM

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

    J 1 Reply Last reply Dec 17, 2021, 2:20 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @Bob.Dig
      last edited by johnpoz Dec 17, 2021, 2:22 PM Dec 17, 2021, 2:20 PM

      @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.7.2, 24.11

      I 1 Reply Last reply Dec 17, 2021, 2:24 PM Reply Quote 0
      • I
        interessierter @johnpoz
        last edited by Dec 17, 2021, 2:24 PM

        @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%.
        login-to-view

        J 1 Reply Last reply Dec 17, 2021, 2:25 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @interessierter
          last edited by johnpoz Dec 17, 2021, 2:28 PM Dec 17, 2021, 2:25 PM

          @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.7.2, 24.11

          I 1 Reply Last reply Dec 17, 2021, 2:28 PM Reply Quote 0
          • I
            interessierter @johnpoz
            last edited by Dec 17, 2021, 2:28 PM

            @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

            J 1 Reply Last reply Dec 17, 2021, 2:29 PM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @interessierter
              last edited by Dec 17, 2021, 2:29 PM

              @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.7.2, 24.11

              I 1 Reply Last reply Dec 17, 2021, 2:33 PM Reply Quote 0
              • I
                interessierter @johnpoz
                last edited by Dec 17, 2021, 2:33 PM

                @johnpoz this here?
                login-to-view

                I J 2 Replies Last reply Dec 17, 2021, 2:41 PM Reply Quote 0
                • I
                  interessierter @interessierter
                  last edited by Dec 17, 2021, 2:41 PM

                  @interessierter Is this my problem?

                  login-to-view

                  J 1 Reply Last reply Dec 17, 2021, 2:42 PM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @interessierter
                    last edited by Dec 17, 2021, 2:41 PM

                    @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.7.2, 24.11

                    I 1 Reply Last reply Dec 17, 2021, 2:57 PM Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator @interessierter
                      last edited by johnpoz Dec 17, 2021, 2:43 PM Dec 17, 2021, 2:42 PM

                      @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.7.2, 24.11

                      1 Reply Last reply Reply Quote 0
                      • I
                        interessierter @johnpoz
                        last edited by Dec 17, 2021, 2:57 PM

                        @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?

                        J 1 Reply Last reply Dec 17, 2021, 3:04 PM Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator @interessierter
                          last edited by johnpoz Dec 17, 2021, 3:05 PM Dec 17, 2021, 3:04 PM

                          @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?

                          login-to-view

                          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.7.2, 24.11

                          I 1 Reply Last reply Dec 17, 2021, 3:28 PM Reply Quote 0
                          • I
                            interessierter @johnpoz
                            last edited by Dec 17, 2021, 3:28 PM

                            @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?

                            login-to-view

                            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

                            J 1 Reply Last reply Dec 17, 2021, 3:36 PM Reply Quote 0
                            • J
                              johnpoz LAYER 8 Global Moderator @interessierter
                              last edited by Dec 17, 2021, 3:36 PM

                              @interessierter said in VLAN an Firewall rule not matching:

                              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

                              Oh and the plot thickens..

                              What specific rule is that?

                              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.7.2, 24.11

                              I 1 Reply Last reply Dec 17, 2021, 3:42 PM Reply Quote 0
                              • I
                                interessierter @johnpoz
                                last edited by Dec 17, 2021, 3:42 PM

                                @johnpoz said in VLAN an Firewall rule not matching:

                                @interessierter said in VLAN an Firewall rule not matching:

                                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

                                Oh and the plot thickens..

                                What specific rule is that?

                                I guess we coming close. Today my Internet was working fine, after I removed and re-enabled the pfnblocker, my Internet was not working anymore. It seems like I deleted the DNS port rule from my lan last weekend, but it took now effect. Crazy

                                How to find out? I have no rule with 8081, and the normal Port 80 rule looks normal

                                J 1 Reply Last reply Dec 17, 2021, 3:49 PM Reply Quote 0
                                • J
                                  johnpoz LAYER 8 Global Moderator @interessierter
                                  last edited by Dec 17, 2021, 3:49 PM

                                  @interessierter do you have your webgui on port 8081? I think there is a redirect for 80 to whatever the port is set too.

                                  I have mine disabled.. But this was thing that came to mind that would redirect 80 like that.

                                  login-to-view

                                  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.7.2, 24.11

                                  I 1 Reply Last reply Dec 17, 2021, 3:57 PM Reply Quote 0
                                  • I
                                    interessierter @johnpoz
                                    last edited by Dec 17, 2021, 3:57 PM

                                    @johnpoz said in VLAN an Firewall rule not matching:

                                    @interessierter do you have your webgui on port 8081? I think there is a redirect for 80 to whatever the port is set too.

                                    I have mine disabled.. But this was thing that came to mind that would redirect 80 like that.

                                    login-to-view

                                    no on 81, but that is maybe reason for 8081? I wonder about 41MB in this rule:

                                    login-to-view

                                    J 1 Reply Last reply Dec 17, 2021, 4:06 PM Reply Quote 0
                                    • J
                                      johnpoz LAYER 8 Global Moderator @interessierter
                                      last edited by johnpoz Dec 17, 2021, 4:10 PM Dec 17, 2021, 4:06 PM

                                      @interessierter hmmm.. No your antilock out is what would allow you to talk to the gui, that should always show traffic ;) if your accessing the gui

                                      login-to-view

                                      I can not find any rule like that in my setup..

                                      But I did find this
                                      https://forum.netgate.com/topic/165000/error-loading-firewall-rules

                                      and this
                                      https://redmine.pfsense.org/issues/12330

                                      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.7.2, 24.11

                                      I 1 Reply Last reply Dec 18, 2021, 9:18 AM Reply Quote 0
                                      • I
                                        interessierter @johnpoz
                                        last edited by Dec 18, 2021, 9:18 AM

                                        @johnpoz said in VLAN an Firewall rule not matching:

                                        @interessierter hmmm.. No your antilock out is what would allow you to talk to the gui, that should always show traffic ;) if your accessing the gui

                                        login-to-view

                                        I can not find any rule like that in my setup..

                                        But I did find this
                                        https://forum.netgate.com/topic/165000/error-loading-firewall-rules

                                        and this
                                        https://redmine.pfsense.org/issues/12330

                                        I have now disabled the IPv6 in DNSBL Blocker, and the error message in the reload filter is away but: There are still no Firewall alias listed, not a single one :)

                                        I 1 Reply Last reply Dec 19, 2021, 5:44 PM Reply Quote 0
                                        • I
                                          interessierter @interessierter
                                          last edited by Dec 19, 2021, 5:44 PM

                                          The firewall rules are now working and matching.

                                          The alias is still not listed, but it's working as expected. Thanks for your help

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