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

pfSense not propagating "system aliases" (lanX net/ lanX address)

Scheduled Pinned Locked Moved Firewalling
41 Posts 5 Posters 5.5k 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.
  • T
    Tobi
    last edited by Jul 22, 2022, 7:03 PM

    Hello,

    depends on my "old" thread I think it's better to start a new one with now correct topic.

    Ols topic was here Link Text

    If I try to create a rule with source and/ or destination lanX net/ lanX address then this rule is not working and cat /tmp/rules.debug mean always:

    # destination address is empty
    

    or

    # source address is empty
    

    This kind of rules works here only for my wan interface and in /tmp directory I see only for my wan/ pppoe interface entries like:

    -rw-r--r--   1 root  wheel      19 Jul 22 11:24 pppoe0_ip
    -rw-r--r--   1 root  wheel      26 Jul 22 11:24 pppoe0_ipv6
    

    with IP addresses

    J 1 Reply Last reply Jul 22, 2022, 8:00 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @Tobi
      last edited by Jul 22, 2022, 8:00 PM

      @tobi yeah prob good idea to start a anew thread on this.

      Just to add info.. You also created just IPv4 rules and same thing was happening right, in the old thread your rules were all IPv4+6, but you specifically made just a IPv4 rule and was still happening.

      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

      T 1 Reply Last reply Jul 22, 2022, 8:07 PM Reply Quote 0
      • T
        Tobi @johnpoz
        last edited by Jul 22, 2022, 8:07 PM

        @johnpoz - yes I tried some combinations

        1. only ipv4 rule
        2. only ipv6 rufe
        3. disable ipv6 "track wan interface" on lan X interface.

        nothing of this changes changed something

        J 1 Reply Last reply Jul 22, 2022, 8:13 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @Tobi
          last edited by Jul 22, 2022, 8:13 PM

          @tobi While this might be drastic, and could prevent us from finding the root cause.

          Would you be up for redo of pfsense.. Be really curious if you backed up the config. Then did a clean install - does it work normal? Just really vanilla wan/lan and and then add another interface, etc.

          And then restore you config, and does it then fail again?

          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

          T 1 Reply Last reply Jul 22, 2022, 8:28 PM Reply Quote 0
          • T
            Tobi @johnpoz
            last edited by Tobi Jul 22, 2022, 8:29 PM Jul 22, 2022, 8:28 PM

            @johnpoz - I don't think I'm ready to take that step. As long as I have to work from home, I can't sit down offline.
            Is there a place where you can see the system aliases and the IP configuration for them?

            J 1 Reply Last reply Jul 22, 2022, 10:51 PM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @Tobi
              last edited by johnpoz Jul 22, 2022, 11:04 PM Jul 22, 2022, 10:51 PM

              @tobi said in pfSense not propagating "system aliases" (lanX net/ lanX address):

              system aliases and the IP configuration for them?

              Not that I am aware of - you can view tables that are used - but not exactly sure the address and nets are parsed or where from.. Maybe its in the xml file? And yours is corrupt, but those are not actual table values that you can view with day diag menu, tables.

              That is why I had called @stephenw10 and @Derelict into the previous thread - thought they might have some ideas on where to exactly check, and might know how that gets filled in when you use them in a rule, etc. off the top of their heads sort of thing - I would have to dig into that.

              I have never seen such an issue before. Been on the forums long long time, and I don't recall ever seeing anything like this or even close to it before.

              My thought was something with the IPv6 and IPv4 thing might be cause - but clearly that is not the case because you have the same issue with just IPv4 rule - and clearly from the actual rules looking at, for whatever reason pfsense is not parsing these values like it should.

              edit:
              I looked in the config, and really the only thing that jumps out at me at where that info is stored is in the interfaces section.. like so

              <lan>
              			<enable></enable>
              			<if>igb0</if>
              			<descr><![CDATA[LAN]]></descr>
              			<spoofmac></spoofmac>
              			<ipaddr>192.168.9.253</ipaddr>
              			<subnet>24</subnet>
              			<ipaddrv6>2001:470:snipped::253</ipaddrv6>
              			<subnetv6>64</subnetv6>
              		</lan>
              

              So there is some method that parses that info when firewall rules are created - why its failing on yours is odd for sure..

              Have to look through the code for when a firewall rule is created to how it determines the address or the net..

              While you have a working work around, with your created aliases - really should get to why/how this even happening..

              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

              T 1 Reply Last reply Jul 23, 2022, 8:34 AM Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Jul 22, 2022, 11:43 PM

                Are you able to send us diag info from that firewall to investigate further?

                T 1 Reply Last reply Jul 23, 2022, 8:28 AM Reply Quote 1
                • T
                  Tobi @stephenw10
                  last edited by Jul 23, 2022, 8:28 AM

                  @stephenw10 - Sure, I can do it with pleasure. Unfortunately, I don't know exactly what you mean by that. Where/how do I find the diag info?

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tobi @johnpoz
                    last edited by Jul 23, 2022, 8:34 AM

                    @johnpoz said in pfSense not propagating "system aliases" (lanX net/ lanX address):

                    I looked in the config, a

                    I wanted to post a part from the interface section but always get a message that it is detected as spam.

                    T 1 Reply Last reply Jul 23, 2022, 12:15 PM Reply Quote 0
                    • T
                      Tobi @Tobi
                      last edited by Tobi Jul 23, 2022, 12:18 PM Jul 23, 2022, 12:15 PM

                      I looked at my old box. It was last equipped with 2.5.2. There it works.
                      However, the old box I can not put into operation, because it has much fewer ports and the configuration no longer fits. The configuration on the new box I had then taken over from the old.

                      (at the opportunity - is there a way to reload the filters via the CLI?)

                      J 1 Reply Last reply Jul 23, 2022, 12:19 PM Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @Tobi
                        last edited by Jul 23, 2022, 12:19 PM

                        @tobi said in pfSense not propagating "system aliases" (lanX net/ lanX address):

                        The configuration on the new box I had then taken over from the old.

                        So you loaded the xml from the old into the new?

                        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

                        T 1 Reply Last reply Jul 23, 2022, 1:26 PM Reply Quote 0
                        • T
                          Tobi @johnpoz
                          last edited by Jul 23, 2022, 1:26 PM

                          @johnpoz said in pfSense not propagating "system aliases" (lanX net/ lanX address):

                          So you loaded the xml from the old into the new?

                          In first part yes. Later I changed many things - because the new one has more interfaces.

                          J 1 Reply Last reply Jul 23, 2022, 1:40 PM Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator @Tobi
                            last edited by Jul 23, 2022, 1:40 PM

                            @tobi hmmm - issue could be related to that method??

                            Would be good test to do a clean install, does it work.. Then restore you backup config.. But as you mentioned your not to that stage yet.

                            But I am not sure where to go next with this, other then clean install, and then restore of config to see if creates the problem.

                            Maybe @stephenw10 has some stuff to check? I am at a loss to what could cause this.. But I am not completely sure on all the things involved on how it parses out the variables in the rules for address and net.

                            But clearly its working as far as interfaces, or your work around of your own aliases with the cidr network in them wouldn't be working either

                            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

                            T 1 Reply Last reply Jul 23, 2022, 2:20 PM Reply Quote 0
                            • T
                              Tobi @johnpoz
                              last edited by Jul 23, 2022, 2:20 PM

                              @johnpoz Thank you.
                              Do you have any idea where/how I can get the diag info that @stephenw10 is asking for?

                              J S 2 Replies Last reply Jul 23, 2022, 2:57 PM Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator @Tobi
                                last edited by Jul 23, 2022, 2:57 PM

                                @tobi not sure what he is asking for.. Sure he will chime in on specifics soon enough.. Just give him some time - it is the weekend ;)

                                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 1
                                • S
                                  SteveITS Galactic Empire @Tobi
                                  last edited by Jul 23, 2022, 4:09 PM

                                  @tobi I think he means
                                  https://docs.netgate.com/pfsense/en/latest/recipes/diagnostic-data.html

                                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                  Upvote 👍 helpful posts!

                                  J T 2 Replies Last reply Jul 23, 2022, 4:12 PM Reply Quote 2
                                  • J
                                    johnpoz LAYER 8 Global Moderator @SteveITS
                                    last edited by Jul 23, 2022, 4:12 PM

                                    @steveits yup - that would most likely be it for sure..

                                    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
                                    • T
                                      Tobi @SteveITS
                                      last edited by Jul 23, 2022, 5:14 PM

                                      @steveits said in pfSense not propagating "system aliases" (lanX net/ lanX address):

                                      I think he means

                                      Yes it makes sense. However, I will wait for his answer, because in the whole diag I think there is too much data that does not belong in a public forum.
                                      Maybe he mean "only" the Firewall-*.txt files

                                      J 1 Reply Last reply Jul 23, 2022, 5:28 PM Reply Quote 0
                                      • J
                                        johnpoz LAYER 8 Global Moderator @Tobi
                                        last edited by Jul 23, 2022, 5:28 PM

                                        @tobi you can for sure that file just to @stephenw10

                                        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
                                        • S
                                          stephenw10 Netgate Administrator
                                          last edited by Jul 23, 2022, 6:10 PM

                                          Yes, exactly that. If you can gather the status output file from that page you can upload it to me here: https://nc.netgate.com/nextcloud/s/bTgFR9wa8MAcGij

                                          Steve

                                          T 1 Reply Last reply Jul 23, 2022, 7:18 PM Reply Quote 0
                                          20 out of 41
                                          • First post
                                            20/41
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received