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

    PIMD loosing multicast sources

    Scheduled Pinned Locked Moved General pfSense Questions
    pimdmulticast
    34 Posts 3 Posters 2.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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Nothing logged?

      Are you actually using the wireguard interfaces?

      M 1 Reply Last reply Reply Quote 0
      • M
        maximushugus @stephenw10
        last edited by

        @stephenw10
        With official PIMD v2.3.2 and with manually build 3.0beta (from sources) with the config I showed above, in the logs I don't have a lot of info :

        pimd version 3.0-beta1 starting. and  exitning
        

        and

         Timeout waiting for reply from routing socket for 169.254.0.1 
        

        I tried manually running PIMD from the CLI, with run in foreground and every debug options, and I see a lot of multicast forwarding cache misses, as expected with the results of netstats -gs above. But I don't really understand if this is normal

        If you are running PIMD without problem, do you have the same results as me in netstats -gs ?

        @stephenw10 said in PIMD loosing multicast sources:

        Are you actually using the wireguard interfaces?

        Yes I'm using it, without any problem, with OSPF on FRR on it.

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by stephenw10

          So you see that timeout for the APIPA address at the 3min mark when it stops forwarding?

          Can you test it without the WG interfaces in play?

          I don't actually have PIMD running on anything currently. It just always has worked when I've tested it. I'll try to get something setup again.

          M 2 Replies Last reply Reply Quote 0
          • M
            maximushugus @stephenw10
            last edited by

            @stephenw10 said in PIMD loosing multicast sources:

            So you see that timeout for the APIPA address at the 3min mark when it stops forwarding?

            No I get the "Timeout waiting for reply from routing socket for 169.254.0.1" at the same time the PIMD program is lauching.
            When PIMD looses multicast groups, there is nothing on the logs.

            1 Reply Last reply Reply Quote 1
            • M
              maximushugus @stephenw10
              last edited by

              @stephenw10 said in PIMD loosing multicast sources:

              Can you test it without the WG interfaces in play?

              I tried removing WG interfaces from PIMD interfaces : I only have 3 VLANs interfaces on PIMD, with the same results

              1 Reply Last reply Reply Quote 1
              • M
                maximushugus
                last edited by

                Here are the logs of manually running PIMD in foreground in CLI with this command : log.txt

                The problem happen at 13:34:47.
                I do not see any errors at this moment, but you can see before 13:34:47 there are reports of all multicast groups and after, only 8 of them.
                I can see a lot of "cache miss" entries, but I don't know if this is normal

                if someone can help, I tried a lot of things but have no idea why I have this problem. Thanks

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  I don't think the cache misses are a problem. Certainly shouldn't prevent connectivity.

                  Did you have this working in 2.7.2?

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    maximushugus @stephenw10
                    last edited by

                    @stephenw10 said in PIMD loosing multicast sources:

                    Did you have this working in 2.7.2?

                    Unfortunately I have an intel X710 NIC which had a bug in pfSense 2.7.2 which prevented it from using multicast

                    I'm going to reinstall a VM with pfsense 2.7.2 on another server (without intel X710) to see if the problem still occurs

                    1 Reply Last reply Reply Quote 1
                    • M
                      maximushugus
                      last edited by maximushugus

                      @stephenw10
                      Ok. I just reinstalled pfSense 2.7.2 on a proxmox VM, giving access to my LAN.
                      I installed official package PIMD 2.3.2 on it.
                      I disabled pf (with pfctl disable).

                      I have the exact same behavior !

                      Could it be a problem on my network ? On my switch ?
                      But if so, I would not receive multicast packet on tcpdump on pfSense (for groups PIMD is not seeing anymore after 3min20 sec, but still receiving with packet captures).

                      I have a Ubiquiti EdgeSwitch 16XG. IGMP snooping is enabled on interfaces, and enable on corresponding VLANs.
                      Also I can see through CLI on this switch that when starting PIMD, pfSens's port is enable as a multicast router port, and I can see every multicast groups forwarded to this port.
                      I can also see on my switch when starting PIMD that pfSense is the multicast querier.

                      Weird

                      L 1 Reply Last reply Reply Quote 0
                      • M
                        maximushugus
                        last edited by

                        I built PIMD from sources (to have the latest version) on a Debian VM : it looks like the problem is not present on Debian. So it looks like it is a pfSense / FreeBSD specific problem

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Do you see any blocked traffic when this happens? The timing involved could be a state timeout. And I imagine you didn't have a firewall running in Debian.

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            maximushugus @stephenw10
                            last edited by

                            @stephenw10 No I do not see any traffic blocked.
                            I don't have a firewall on this test Debian VM but, I also tried disabling pf on pfSense with pfctl -d while runing PIMD, without any change in this problem.
                            Also my multicast sources are on my LAN, with "Allow all" rule.

                            1 Reply Last reply Reply Quote 0
                            • M
                              maximushugus
                              last edited by

                              Just to add information while I have the bug with PIMD not seeing sources, pfSense seem to still see it : in the state summary those IP are still here.

                              1 Reply Last reply Reply Quote 0
                              • M
                                maximushugus
                                last edited by

                                I built PIMD from sources on a FreeBSD 15 VM, and following this guide I launched PIMD :
                                On FreeBSD I have the exact same problem so it must be either a FreeBSD kernel bug or a bug with the way PIMD works on FreeBSD.

                                If someone can confirm he has a working PIMD config (receiving sources during more than a few minutes) on pfSense 2.7.2 or 2.8.0 it would help me (I don't see a lot of people using PIMD on pfSense here). Thanks.

                                L 1 Reply Last reply Reply Quote 0
                                • L
                                  louis2 @maximushugus
                                  last edited by

                                  @maximushugus

                                  I am normally using PIMD to access my media server from multiple vlan's.

                                  To that I am using a long ago compiled version of the beta just like you. However at this moment it is not working.

                                  For unkown reasons, but recently I changed very much related to my pfSense system, To note a few:

                                  • significant hardware changes
                                  • running the pfSense plus beta now, having of course a much newer version of FreebSD
                                  • largely changes to my firewall rules

                                  However I surely like to see it running again. I need it to access my media server!

                                  However .... I am busy at the moment and I have guests. So bad moment to recompile the beta (I never do that, so have to find out a lot again) and to do testing.

                                  However keep me/us updated !!

                                  L 1 Reply Last reply Reply Quote 0
                                  • L
                                    louis2 @louis2
                                    last edited by

                                    @louis2

                                    Some more info.

                                    I still had pimd installed however dispite started it was not running. So I wondered what whould happen if I installed the packages as compiled long ago again.

                                    So:

                                    • I accessed pf sense via SSH and copied pimd-3.0.b1.txz and pfSense-pkg-pimd-3.0.1.txz to the root its home directory
                                    • removed the old / same packages
                                      pkg remove pfSense-pkg-pimd-3.0.1
                                      pkg remove pimd-3.0.b1
                                    • installed them again from the roots home
                                      pkg install pfSense-pkg-pimd-3.0.1
                                      pkg install pimd-3.0.b1
                                    • installed pimd from the pfsense package manager
                                      I did not remove my pimd config so that config is still there
                                    • start pimd from the pimd service menu now present option pimd
                                    • pimd starts and status shows info but the output is not showing pimd clients as expected. (see picture below)
                                    • looking in the system logs System LogsSystemGeneral
                                      I see that pimd has problems with the config
                                      Jun 13 08:01:49 pfSense pimd[3561]: /var/etc/pimd/pimd.conf:14 - Invalid phyint address 'mlxen0.26'
                                      Jun 13 08:01:49 pfSense pimd[3561]: /var/etc/pimd/pimd.conf:13 - Invalid phyint address 'lagg0.130'
                                      Jun 13 08:01:49 pfSense pimd[3561]: /var/etc/pimd/pimd.conf:12 - Invalid phyint address 'bridge0'
                                      Jun 13 08:01:49 pfSense pimd[3561]: Recommended querier timeout = Robustness x query-interval + response-time / 2 = 3 x 12 + 10 / 2 = 41
                                      Jun 13 08:01:45 pfSense check_reload_status[678]: Syncing firewall
                                      Jun 13 08:01:44 pfSense php-fpm[68271]: /pkg_edit.php: Configuration Change:
                                      Jun 13 08:01:37 pfSense pimd[90461]: /var/etc/pimd/pimd.conf:14 - Invalid phyint address 'mlxen0.26'
                                      Jun 13 08:01:37 pfSense pimd[90461]: /var/etc/pimd/pimd.conf:13 - Invalid phyint address 'lagg0.130'
                                      Jun 13 08:01:37 pfSense pimd[90461]: /var/etc/pimd/pimd.conf:12 - Invalid phyint address 'bridge0'
                                      Jun 13 08:01:37 pfSense pimd[90461]: Recommended querier timeout = Robustness x query-interval + response-time / 2 = 3 x 12 + 10 / 2 = 41

                                    So on my machine PIMD (as said the version as compiled long ago) is running but not the way it should. I still have to find out why.

                                    0e46062f-d2b7-4456-893c-50b9e39d1dc1-image.png

                                    1 Reply Last reply Reply Quote 0
                                    • L
                                      louis2 @maximushugus
                                      last edited by

                                      @maximushugus

                                      I forgot to say forget PIMD 2.3.2 it absolutely NOT working together with an actual OS.

                                      In the past I tried to convince the pimd developer that he should formally release the beta ... In short he was too busy for that. That does not take away that the beta has been running for years without issues.

                                      I will try to get the pimd beta running again. I will probably have to recompile it, since pfSense moved to the actual FreeBSD 15 current. Hopefully that is all.

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        maximushugus @louis2
                                        last edited by

                                        @louis2 If you want I build PIMD (latest version from sources) and made some modification to pfSense GUI to make it compatible :
                                        pfSense-PIMD.zip

                                        Instructions to make it "work" :

                                        • Install official PIMD from pakcages in pfSense
                                        • Download and extract the file above
                                        • put files inside the extracted folder inside corresponding folder.

                                        It should work from GUI

                                        L 1 Reply Last reply Reply Quote 0
                                        • L
                                          louis2 @maximushugus
                                          last edited by

                                          @maximushugus

                                          I could try, I assume that I have to replace my pimd and pimctl by yours. ...

                                          I would prefer to have packages like I did generate in the past. I also made some modifications especially related to the pfSense gui part (pfSense-pkg-pimd-3.0.1)

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            maximushugus
                                            last edited by

                                            And configuration from GUI :

                                            • In PIMD/General tab : enable PIMD, Defauld bind to none
                                            • In PIMD/Interfaces : select on which interfaces you want PIMD to listen / send traffic , add it and always bind inside config for thoses interfaces (I also set IGMPv2 for compatibility reason)
                                            • In PIMD/BSR candidate add an interface you want PIMD to be BSR
                                            • In RP candidate add an interface you want PIMD to be the Rendez vous" point : for me it's my LAN address, and I added "group prefix" to restrict multicast groups that are routed via PIMD to only those.

                                            If everything works you should see in PIMD/Status the output of the command :

                                            pimctl
                                            

                                            which is more advanced than the older "pimd -r", not compatible anymore

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