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

    How to make multicast work within the OpenVPN tunnel network?

    Scheduled Pinned Locked Moved OpenVPN
    21 Posts 3 Posters 6.3k 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.
    • JKnottJ
      JKnott @kevindd992002
      last edited by

      @kevindd992002

      It would have been better to post the actual capture file, so that it can be examined in Wireshark. Also, I don't like having to go to a site where I'm told to turn off my ad blocker. It's very easy to attach files to this site.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      1 Reply Last reply Reply Quote 0
      • K
        kevindd992002
        last edited by kevindd992002

        I had to find alertnatives to pastebin because it is currently down. Here are the packet capture files:

        Packet capture from pfsense LAN interface: https://www.dropbox.com/s/f92vxyd6muuecas/packetcapture_server_1.cap?dl=0
        Packet capture from client LAN interface: packetcapture_client_1.pcapng

        Packet capture from pfsense OpenVPN interface: https://www.dropbox.com/s/u8mh6vg24hw77g7/packetcapture_server_2.cap?dl=0
        Packet capture from client OpenVPN interface: packetcapture_client_2.pcapng

        The .cap files are not supported for direct attachment to this site.

        JKnottJ 1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @kevindd992002
          last edited by

          @kevindd992002

          I see both IPv4 & IPv6 multicast with stuff like printers, multiDNS, some Chrome device looking for something etc.. What service are you having issues with? The things I see won't normally be passed by a router and also are not coming from your VPN interface. For example, I see at least 2 different IPv4 source addresses. I can see something from FreeBSD at 10.0.1.1, which I assume is your pfSense box and I also see an IPv6 link local address for an MDNS request, which happens to have the same MAC address as that FreeBSD box.

          So, what are you seeing on the LAN side, but not elsewhere? Please only attach the files here and not use some external site, as I won't go them.

          Also, you don't need pastebin, Dropbox or anything other than attaching the files here. I had no problem reading the files you posted here, but Dropbox wants me to download the file first etc.. When you capture a file with Packet Capture, you save it to your computer and then click on the upload file button, above at right.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          K 1 Reply Last reply Reply Quote 0
          • K
            kevindd992002 @JKnott
            last edited by kevindd992002

            @JKnott said in How to make multicast work within the OpenVPN tunnel network?:

            @kevindd992002

            I see both IPv4 & IPv6 multicast with stuff like printers, multiDNS, some Chrome device looking for something etc.. What service are you having issues with? The things I see won't normally be passed by a router and also are not coming from your VPN interface. For example, I see at least 2 different IPv4 source addresses. I can see something from FreeBSD at 10.0.1.1, which I assume is your pfSense box and I also see an IPv6 link local address for an MDNS request, which happens to have the same MAC address as that FreeBSD box.

            So, what are you seeing on the LAN side, but not elsewhere? Please only attach the files here and not use some external site, as I won't go them.

            Also, you don't need pastebin, Dropbox or anything other than attaching the files here. I had no problem reading the files you posted here, but Dropbox wants me to download the file first etc.. When you capture a file with Packet Capture, you save it to your computer and then click on the upload file button, above at right.

            Just concentrate on the IP addresses that I posted on my earlier post. Like I said, I don't have issues with my other devices in the LAN. I just showed you that there is indeed multicast traffic coming from both sides (pfsense server and client) whether they are using the VPN connection or not. Specifically, concentrate on source IP addresses 10.0.1.1 (pfsense openvpn interface) and 10.0.1.101 (client openvpn interface).

            So on the LAN side, I see packets from the client (with source IP: 192.168.10.13 and destination socket: 239.255.255.250:1900) reaching the LAN interface in pfsense. But with openvpn, I see these same "M-SEARCH" packets (src ip: 10.0.1.101 and destination socket: 239.255.255.250:1900) being generated from the client side but not reaching the openvpn interface. Did you read the github link I sent you? Thomas (author of upnp) says it there too.

            Not sure what kind of proof you want from me when I said that .cap files are not supported for direct attachment to this site and is the reason why I used dropbox. Here's a screenshot of the error:

            b1c79b63-9d9d-430b-9f00-eb2b0b11294f-image.png

            So there's no other way for me to upload those .cap files that I downloaded from pfsense other than what I have, dropbox.

            JKnottJ 1 Reply Last reply Reply Quote 0
            • K
              kevindd992002
              last edited by

              If it helps, apply this wireshark filter on packetcapture_client_1:

              (ip.src == 192.168.10.1 || ip.src == 192.168.10.13) and ip.dst == 239.255.255.250

              And this filter on packetcapture_client_2:

              (ip.src == 10.0.1.1 || ip.src == 10.0.1.101) and ip.dst == 239.255.255.250

              1 Reply Last reply Reply Quote 0
              • K
                kevindd992002
                last edited by kevindd992002

                You can also use this as a miniupnp test client: https://github.com/miniupnp/miniupnp/releases/download/miniupnpc_2_1/win32-miniupnpc-2.1.zip

                Just run upnp-static.exe -s in the cmd prompt to see if upnp is working. This test client also generates M-SEARCH method SSDP packets (which again are not reaching the openpnv server interface).

                1 Reply Last reply Reply Quote 0
                • JKnottJ
                  JKnott @kevindd992002
                  last edited by

                  @kevindd992002 said in How to make multicast work within the OpenVPN tunnel network?:

                  destination socket: 10.0.1.1:1900

                  That's not a multicast address, nor is 192.168.10.1:1900. Mulitcast destination addresses are in the 224. to 239. range on IPv4 and ffxx: on IPv6.

                  As for the file extension, this site can be fussy. A while ago we had to get the native Packet Capture PCAP files accepted. A work around is to rename the extension to pcap or pcapng.

                  PfSense running on Qotom mini PC
                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                  UniFi AC-Lite access point

                  I haven't lost my mind. It's around here...somewhere...

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    kevindd992002 @JKnott
                    last edited by kevindd992002

                    @JKnott said in How to make multicast work within the OpenVPN tunnel network?:

                    @kevindd992002 said in How to make multicast work within the OpenVPN tunnel network?:

                    destination socket: 10.0.1.1:1900

                    That's not a multicast address, nor is 192.168.10.1:1900. Mulitcast destination addresses are in the 224. to 239. range on IPv4 and ffxx: on IPv6.

                    As for the file extension, this site can be fussy. A while ago we had to get the native Packet Capture PCAP files accepted. A work around is to rename the extension to pcap or pcapng.

                    I'm sorry, it was 3AM when I posted my last reply earlier and that was a typo. I edited my last post. It's supposed to read:

                    (src IP: 192.168.10.13 and destination socket: 239.255.255.250:1900)
                    (src ip: 10.0.1.101 and destination socket: 239.255.255.250:1900)

                    And this coincides with my post regarding the Wireshark filters.

                    As for the packet capture files, here you go:

                    1. Without OpenVPN:

                    Packet capture from pfsense LAN interface: packetcapture_server_1.pcap
                    Packet capture from client LAN interface: packetcapture_client_1.pcapng

                    • Server (192.168.10.1) sends multicast packet (NOTIFY method) to 239.255.255.250 and client receives it
                    • Client (192.168.10.13) sends multicast packet (M-SEARCH method) to 239.255.255.250 and server receives it
                    1. With OpenVPN:

                    Packet capture from pfsense OpenVPN interface: packetcapture_server_2.pcap
                    Packet capture from client OpenVPN interface: packetcapture_client_2.pcapng

                    • Server (10.0.1.1) sends multicast packet (NOTIFY method) to 239.255.255.250 and client receives it
                    • Client (10.0.1.101) sends multicast packet (M-SEARCH method) to 239.255.255.250 and server DOES NOT RECEIVE it

                    If it helps, my OpenVPN remote access server settings are posted here: https://forum.netgate.com/post/911141

                    JKnottJ 1 Reply Last reply Reply Quote 0
                    • JKnottJ
                      JKnott @kevindd992002
                      last edited by

                      @kevindd992002

                      I just did a search and came across this: How to get multicast to work with OpenVPN clients?

                      See the comments about using an IGMP proxy.

                      PfSense running on Qotom mini PC
                      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                      UniFi AC-Lite access point

                      I haven't lost my mind. It's around here...somewhere...

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        kevindd992002 @JKnott
                        last edited by

                        @JKnott said in How to make multicast work within the OpenVPN tunnel network?:

                        @kevindd992002

                        I just did a search and came across this: How to get multicast to work with OpenVPN clients?

                        See the comments about using an IGMP proxy.

                        See my first post. IGMP proxies are not needed because I don't want to make the multicast traffic to LAN behind the pfsense openvpn server. I only need the multicast traffic from the client to reach the openvpn server interface which are both on the same network (the tunnel network).

                        1 Reply Last reply Reply Quote 0
                        • K
                          kevindd992002
                          last edited by

                          @JKnott any other ideas?

                          JKnottJ 1 Reply Last reply Reply Quote 0
                          • JKnottJ
                            JKnott @kevindd992002
                            last edited by

                            @kevindd992002

                            No.

                            PfSense running on Qotom mini PC
                            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                            UniFi AC-Lite access point

                            I haven't lost my mind. It's around here...somewhere...

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