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

How can I get this UDP relay package for casting across VLANs?

pfSense Packages
21
123
49.6k
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.
  • S
    shremi @Qinn
    last edited by shremi Oct 25, 2020, 12:32 AM Oct 25, 2020, 12:31 AM

    @Qinn said in How can I get this UDP relay package for casting across VLANs?:

    /usr/bin/nohup /root/udpbroadcastrelay/./udpbroadcastrelay --id 1 --port 1900 --dev igb1.10 --dev igb1.20 --multicast 239.255.255.250 -f > /dev/null

    Thanks a lot fo this @QINN i really appreciate it. Yeah i am lost when it comes to linux-freebsd :(

    So here is where i am at :

    I followed the instructions correctly as you stated. how can i verify that it is working. ???

    Im guessing i need to open some sort of connection to a command line to input the cmd commands in the firewall?

    Heres what i did :

    I went to services and then to shellcmd and created this command.

    /usr/bin/nohup /root/udpbroadcastrelay/./udpbroadcastrelay --id 1 --port 1900 --dev igb0 --dev igb0.40 --multicast 239.255.255.250 -f > /dev/null
    

    login-to-view

    I am using LAN and VLAN 40 on the same igb0 port i think that should work right?

    i created an alias for the sonos stuff and then created a rule on the IoT vlan to for the sonos alias to talk to the private network.

    login-to-view

    But still no connection via the app.

    I am sure i am missing something.

    S 1 Reply Last reply Oct 25, 2020, 1:04 AM Reply Quote 0
    • S
      shremi @shremi
      last edited by Oct 25, 2020, 1:04 AM

      @shremi said in How can I get this UDP relay package for casting across VLANs?:

      @Qinn said in How can I get this UDP relay package for casting across VLANs?:

      I am sure i am missing something.

      Yeah quoting myself hahahaha !!

      Thanks a lot i think i just needed to reboot the pfsense machine i can discover and talk to sonos devices from my private network.

      I am going to tight down the aliases instead of giving the sonos players full access to the main trusted network. i will give it to the phones and home assistant VM.

      The only thing that it seems that stopped working is the UPnP Service for pfsense i used to have it for the consoles but i dont think that they are in use .

      Next up i would like to use this for mDNS and get rid of avahi since i read that using this option has a little bit of more advantages over the avahi package.

      Q 1 Reply Last reply Oct 25, 2020, 8:12 AM Reply Quote 0
      • Q
        Qinn @shremi
        last edited by Qinn Oct 25, 2020, 10:17 AM Oct 25, 2020, 8:12 AM

        @shremi You can see it running from the command line, best is to login using putty with SSH or when you have installed WinSCP press Control T and a terminal will open. Here you enter the ps command (processes status)

        ps
        

        You will get something like

        /root/udpbroadcastrelay$ ps
          PID TT  STAT     TIME COMMAND
        28327 u0- SN   14:19.50 /bin/sh /var/db/rrd/updaterrd.sh
        73155 u0  Is    0:00.02 login [pam] (login)
        73672 u0  I     0:00.02 -sh (sh)
        90155 u0  I+    0:00.01 /bin/sh /etc/rc.initial
        71121 v0  Is    0:00.02 login [pam] (login)
        73887 v0  I     0:00.02 -sh (sh)
        75937 v0  I+    0:00.01 /bin/sh /etc/rc.initial
        71448 v1  Is+   0:00.01 /usr/libexec/getty Pc ttyv1
        71544 v2  Is+   0:00.01 /usr/libexec/getty Pc ttyv2
        71638 v3  Is+   0:00.01 /usr/libexec/getty Pc ttyv3
        71836 v4  Is+   0:00.01 /usr/libexec/getty Pc ttyv4
        72169 v5  Is+   0:00.01 /usr/libexec/getty Pc ttyv5
        72465 v6  Is+   0:00.01 /usr/libexec/getty Pc ttyv6
        72832 v7  Is+   0:00.01 /usr/libexec/getty Pc ttyv7
        50749  0  S     0:00.00 ./udpbroadcastrelay --id 1 --port 1900 --dev igb1.1005 
        82781  0  Is    0:00.01 -sh (sh)
        83059  0  I     0:00.01 /bin/sh /etc/rc.initial
        85940  0  S+    0:00.07 /bin/tcsh
        
        

        Btw Using the commandline I would always advise to install putty https://www.putty.org/

        • first enable SSH in pfSense -> System /Advanced/Admin Access
          login-to-view

        • Then install putty https://www.putty.org/ and enable SSH in pfSense and login with SSH

        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
        Firmware: Latest-stable-pfSense CE (amd64)
        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

        1 Reply Last reply Reply Quote 1
        • G
          GeorgeCZ58
          last edited by Jan 17, 2021, 5:25 PM

          Thanks, this help me to get working control of my devices between VLANs.

          1 Reply Last reply Reply Quote 0
          • L
            LamaZ @burntoc
            last edited by Jan 25, 2021, 12:01 PM

            @burntoc Thanks for all the hard work on this. I can't wait for this to get a proper pfsense package, and updates when pfsense 2.5 gets released.

            This software got the following apps to work across segmented networks:

            • Denon HEOS
            • Onkyo Remote3
            • FiOS TV Remote (plus some FW rules)
            1 Reply Last reply Reply Quote 1
            • G
              girkers
              last edited by Feb 3, 2021, 7:14 AM

              I have found this tool really handy for me so I want to help to make it happen, unfortunately I don't have the programming skills to do any of the behind the scenes nuts and bolts stuff, but what I can do is front-end stuff and help develop the logic so that a programmer can simply follow that.

              To show my genuine interest I have made a package panel and am wondering if it is worth perusing any further, i.e. developing the underlying logic etc? Here is what it looks like:

              login-to-view

              1 Reply Last reply Reply Quote 4
              • S
                sfxdude
                last edited by Feb 18, 2021, 2:32 PM

                In case this helps anyone, I built this on freeBSD 12.2 for pfsense 2.5.0:
                udpbroadcastrelay-pfsense2.5.0.zip

                ? T 2 Replies Last reply Feb 18, 2021, 3:15 PM Reply Quote 3
                • ?
                  A Former User @sfxdude
                  last edited by Feb 18, 2021, 3:15 PM

                  @sfxdude Thank you! I was just sitting down to spin up a VM to build this for 12.2. You saved me the time.

                  1 Reply Last reply Reply Quote 1
                  • T
                    tman222 @sfxdude
                    last edited by Feb 18, 2021, 5:14 PM

                    @sfxdude said in How can I get this UDP relay package for casting across VLANs?:

                    In case this helps anyone, I built this on freeBSD 12.2 for pfsense 2.5.0:
                    udpbroadcastrelay-pfsense2.5.0.zip

                    Thanks @sfxdude - I will go ahead and update my post above as well to point to yours with the new 2.5 file.

                    I upgraded to 2.5 yesterday and it looks like the udpbroadcastrelay binary I compiled under FreeBSD 11.3 still works fine under FreeBSD 12.2. Is there a need to upgrade to the latest binary if the old one works fine?

                    Thanks in advance.

                    S 1 Reply Last reply Feb 18, 2021, 5:52 PM Reply Quote 0
                    • S
                      sfxdude @tman222
                      last edited by Feb 18, 2021, 5:52 PM

                      @tman222 I'd say if it works it's probably fine, but no harm in rebuilding for the new one.

                      1 Reply Last reply Reply Quote 0
                      • J
                        josepr
                        last edited by Mar 13, 2021, 1:45 AM

                        Anyone has the binary avaliable for the sg-1100?

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by Mar 13, 2021, 4:15 PM

                          Obviously it would need to be compiled for aarch64. It might be simple enough a compile against FreeBSD 12.2 will work. You would need to be setup for cross-compiling or have am aarch64 build box.
                          Adding your comments to the feature request night be best.

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • Q
                            Qinn
                            last edited by Qinn Mar 14, 2021, 11:19 AM Mar 14, 2021, 11:10 AM

                            @tman222 said in How can I get this UDP relay package for casting across VLANs?:

                            udpbroadcastrelay

                            I think it is here https://freebsd.pkgs.org/12/freebsd-aarch64/udpbroadcastrelay-0.3.b.txz.html

                            I can't test it for aarch64, as I don't own one, but downloaded the am64 version copied it to pfSense 2.5.0 and did a

                            chmod 755 udpbroadcastrelay
                            

                            Then excuted it and it performed nicely.

                            Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                            Firmware: Latest-stable-pfSense CE (amd64)
                            Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by stephenw10 Mar 14, 2021, 11:45 AM Mar 14, 2021, 11:42 AM

                              Oh that's interesting, I didn't realise it had been included upstream. Makes things a lot easier.

                              Though I had to upload it rather than fetch it directly:

                              [21.02-RELEASE][admin@2100-2.stevew.lan]/tmp: pkg add udpbroadcastrelay-0.3.b.txz 
                              Installing udpbroadcastrelay-0.3.b...
                              Extracting udpbroadcastrelay-0.3.b: 100%
                              [21.02-RELEASE][admin@2100-2.stevew.lan]/tmp: rehash
                              [21.02-RELEASE][admin@2100-2.stevew.lan]/tmp: udpbroadcastrelay 
                              usage: udpbroadcastrelay [--id ID] [--port udp-port]
                                     [--dev dev1] [--dev dev2] [--dev devX]
                                     [-s IP] [--multicast ip1] [--multicast ipX]
                                     [-t|--ttl-id] [-d] [-f]
                                     [-h|--help]
                              

                              Edit: Looks like it was only added last week.

                              Steve

                              T 2 Replies Last reply Mar 14, 2021, 10:31 PM Reply Quote 1
                              • T
                                tman222 @stephenw10
                                last edited by Mar 14, 2021, 10:31 PM

                                Cool, this is great news! I assume this link is for the amd64 version of the package?

                                https://pkgs.org/download/udpbroadcastrelay
                                https://freebsd.pkgs.org/12/freebsd-amd64/udpbroadcastrelay-0.3.b.txz.html

                                I actually just recently recompiled the udpbroadcastrelay source for pfSense 2.5.0 (FreeBSD 12.2 Stable) but will keep this link in mind for future versions. I'll also update my initial post in the thread above.

                                Q 1 Reply Last reply Mar 15, 2021, 8:39 AM Reply Quote 0
                                • T
                                  tman222 @stephenw10
                                  last edited by Mar 14, 2021, 10:42 PM

                                  @stephenw10 - when installing the udpbroadcastrelay as a FreeBSD package, where on the file system is the binary located (will be needed for ShellCmd)? Thanks in advance.

                                  bmeeksB 1 Reply Last reply Mar 14, 2021, 11:32 PM Reply Quote 0
                                  • bmeeksB
                                    bmeeks @tman222
                                    last edited by bmeeks Mar 14, 2021, 11:33 PM Mar 14, 2021, 11:32 PM

                                    @tman222 said in How can I get this UDP relay package for casting across VLANs?:

                                    @stephenw10 - when installing the udpbroadcastrelay as a FreeBSD package, where on the file system is the binary located (will be needed for ShellCmd)? Thanks in advance.

                                    Usually binary executables from packages go in /usr/local/bin and configuration files in /usr/local/etc. Any shell script provided with the package typically winds up in /usr/local/etc/rc.d. But these are not hard and fast rules - a package creator might deviate from the standard practice.

                                    1 Reply Last reply Reply Quote 0
                                    • Q
                                      Qinn @tman222
                                      last edited by Mar 15, 2021, 8:39 AM

                                      @tman222 Do a

                                      find / -name 'udpbroadcastrelay'
                                      

                                      and you will find it's location.

                                      Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                                      Firmware: Latest-stable-pfSense CE (amd64)
                                      Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                                      1 Reply Last reply Reply Quote 0
                                      • Q
                                        Qinn
                                        last edited by Qinn Mar 17, 2021, 12:05 PM Mar 17, 2021, 11:58 AM

                                        btw if you don't have the repository, then do a

                                         pkg add https://pkg.freebsd.org/FreeBSD:12:amd64/quarterly/All/udpbroadcastrelay-0.3.b.txz
                                        

                                        for an AMD64 and then a

                                        rehash
                                        

                                        and a

                                         pkg info udpbroadcastrelay
                                        

                                        shows it is nicely installed

                                        [2.5.0-RELEASE][root@pfSense.localdomain]/: pkg info udpbroadcastrelay
                                        udpbroadcastrelay-0.3.b
                                        Name           : udpbroadcastrelay
                                        Version        : 0.3.b
                                        Installed on   : Wed Mar 17 11:54:50 2021 CET
                                        Origin         : net/udpbroadcastrelay
                                        Architecture   : FreeBSD:12:amd64
                                        Prefix         : /usr/local
                                        Categories     : net
                                        Licenses       : GPLv2
                                        Maintainer     : m.muenz@gmail.com
                                        WWW            : https://github.com/marjohn56/udpbroadcastrelay
                                        Comment        : UDP multicast/unicast relayer
                                        Annotations    :
                                                FreeBSD_version: 1202000
                                        Flat size      : 39.2KiB
                                        Description    :
                                        udpbroadcastrelay is a UDP multicast relayer. Its intended use is to
                                        rebroadbcast udp packets on a specific port across interfaces, be those
                                        interfaces physical or VLAN.
                                        
                                        It is used where devices such as Sonos or Sky are spread accross
                                        different subnets and are not able to detect the servers or devices.
                                        
                                        WWW: https://github.com/marjohn56/udpbroadcastrelay
                                        
                                        

                                        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                                        Firmware: Latest-stable-pfSense CE (amd64)
                                        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                                        1 Reply Last reply Reply Quote 2
                                        • I
                                          Itar
                                          last edited by Itar Mar 17, 2021, 4:51 PM Mar 17, 2021, 4:50 PM

                                          Hi,

                                          can someone give me a hint how the command looks like for Shellcmd/command prompt (pfsense 2.5.0 / APU2C4)?
                                          With "find / -name 'udpbroadcastrelay'" I could find udpbroadcastrelay in "/usr/local/sbin/".
                                          With Putty and "/usr/local/sbin/udpbroadcastrelay --id 1 --port 5353 --dev igb1 --dev igb1.12 --multicast 224.0.0.251 -s 1.1.1.1 -f > /dev/null" everything works perfectly but not in pfSene (command prompt) itself.

                                          T 1 Reply Last reply Mar 17, 2021, 5:06 PM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.