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

    IPtv multicast

    Scheduled Pinned Locked Moved Russian
    270 Posts 50 Posters 360.0k 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.
    • F
      filosoff96
      last edited by

      Установил 1.2.2 Developers

      вот логи
      Aug 20 17:52:38 php: /pkg_edit.php: Started Igmpproxy service sucsesfully.
      Aug 20 17:52:38 igmpproxy: Note: RECV Membership query from 192.168.0.1 to 224.0.0.1 (ip_hl 20, data 8)
      Aug 20 17:52:57 igmpproxy: Warn: select() failure; Errno(4): Interrupted system call
      Aug 20 17:52:57 igmpproxy: Note: Got a interupt signal. Exiting.
      Aug 20 17:52:57 igmpproxy: Note: All routes removed. Routing table is empty.
      Aug 20 17:52:59 igmpproxy: Note: adding VIF, Ix 0 Fl 0x0 IP 0x0100a8c0 rl0, Threshold: 1, Ratelimit: 0
      Aug 20 17:52:59 igmpproxy: Note: adding VIF, Ix 1 Fl 0x0 IP 0xc3bdff0a rl1, Threshold: 1, Ratelimit: 0
      Aug 20 17:52:59 igmpproxy: Note: joinMcGroup: 224.0.0.2 on rl0
      Aug 20 17:52:59 igmpproxy: Note: RECV Membership query from 192.168.0.1 to 224.0.0.1 (ip_hl 20, data 8)
      Aug 20 17:53:12 igmpproxy: Note: RECV Membership query from 10.255.189.193 to 224.0.0.1 (ip_hl 20, data 8)
      Aug 20 17:53:30 igmpproxy: Note: RECV Membership query from 192.168.0.1 to 224.0.0.1 (ip_hl 20, data 8)
      Aug 20 17:53:53 igmpproxy: Warn: select() failure; Errno(4): Interrupted system call
      Aug 20 17:53:53 igmpproxy: Note: Got a interupt signal. Exiting.
      Aug 20 17:53:53 igmpproxy: Note: All routes removed. Routing table is empty.
      Aug 20 17:54:01 igmpproxy: Note: adding VIF, Ix 0 Fl 0x0 IP 0x0100a8c0 rl0, Threshold: 1, Ratelimit: 0
      Aug 20 17:54:01 igmpproxy: Note: adding VIF, Ix 1 Fl 0x0 IP 0xc3bdff0a rl1, Threshold: 1, Ratelimit: 0
      Aug 20 17:54:01 igmpproxy: Note: joinMcGroup: 224.0.0.2 on rl0
      Aug 20 17:54:01 igmpproxy: Note: RECV Membership query from 192.168.0.1 to 224.0.0.1 (ip_hl 20, data 8)
      Aug 20 17:54:12 igmpproxy: Note: RECV Membership query from 10.255.189.193 to 224.0.0.1 (ip_hl 20, data 8)
      Aug 20 17:54:32 igmpproxy: Note: RECV Membership query from 192.168.0.1 to 224.0.0.1 (ip_hl 20, data 8)

      1 Reply Last reply Reply Quote 0
      • F
        filosoff96
        last edited by

        пакеты IGMP на внешнем и внутреннем интерфейсах есть

        1 Reply Last reply Reply Quote 0
        • F
          filosoff96
          last edited by

          igmpproxy.conf

          ##–----------------------------------------------------

          Enable Quickleave mode (Sends Leave instantly)

          ##------------------------------------------------------
          quickleave
          phyint rl1 upstream ratelimit 0 threshold 1
          altnet 212.49.127.0/24

          phyint rl0 downstream ratelimit 0 threshold 1
          altnet 192.168.0.0/24

          1 Reply Last reply Reply Quote 0
          • E
            Eugene
            last edited by

            Ну вот и отлично! в чём теперь проблема?
            По идее то устройство, что генерит multicast (на upstream интерфейсе) должно увидеть IGMP и понять, что на данном сегменте сети есть желающие получть этот трафик. После того, как данное устройство осознало столь значительный факт, ты должен незамедлительно получать multicast на upstream интерфейсе, который уже ядром будет доставлен на downstream интерфейс.

            http://ru.doc.pfsense.org

            1 Reply Last reply Reply Quote 0
            • E
              Eugene
              last edited by

              Кстати, всем интересующимся. Можете uninstall/install igmpproxy package и попробовать. Патч наконец-то стал доступен.

              http://ru.doc.pfsense.org

              1 Reply Last reply Reply Quote 0
              • F
                filosoff96
                last edited by

                Я невнимательно посмотрел на внешнем интерфейсе есть IGMP но он от удаленного устройства а не от моего шлюза
                IGMP запросы ходят только по внутреннему интерфейсу

                PS версию igmpproxy обновил через пакеты

                1 Reply Last reply Reply Quote 0
                • F
                  filosoff96
                  last edited by

                  Это внутри

                  18:56:04.464254 IP 192.168.0.97 > 224.0.0.252: igmp v2 report 224.0.0.252
                  18:56:04.464674 IP 192.168.0.97 > 239.255.0.147: igmp v2 report 239.255.0.147
                  18:58:07.967229 IP 192.168.0.1 > 224.0.0.1: igmp query v2

                  Это снаружи

                  19:02:56.110616 IP 10.255.189.193 > 224.0.0.1: igmp query v2
                  19:03:56.363288 IP 10.255.189.193 > 224.0.0.1: igmp query v2
                  19:04:57.298533 IP 10.255.189.193 > 224.0.0.1: igmp query v2

                  1 Reply Last reply Reply Quote 0
                  • E
                    Eugene
                    last edited by

                    Не уверен, что это корректно, на сколько я помню моя тестовая программулина (какой-то плэйер) слал membership report на 224.0.0.2, а внутри уже был адрес типа 239.255.0.147. Я гляну в RFC, как должно быть.
                    @filosoff96:

                    18:56:04.464674 IP 192.168.0.97 > 239.255.0.147: igmp v2 report 239.255.0.147

                    Что у тебя с маршрутизацией покажи пожалуйста
                    netstat -rn

                    http://ru.doc.pfsense.org

                    1 Reply Last reply Reply Quote 0
                    • F
                      filosoff96
                      last edited by

                      Internet:
                      Destination        Gateway            Flags    Refs      Use  Netif Expire
                      default            10.255.189.193    UGS        0  202232    rl1
                      10.255.189.192/27  link#2            UC          0        0    rl1
                      10.255.189.193    00:0c:31:65:7d:00  UHLW        2      105    rl1  1074
                      10.255.189.195    127.0.0.1          UGHS        0        0    lo0
                      127.0.0.1          127.0.0.1          UH          1        0    lo0
                      192.168.0.0/24    link#1            UC          0        0    rl0
                      192.168.0.97      00:11:d8:d7:72:18  UHLW        1    49921    rl0  1007

                      1 Reply Last reply Reply Quote 0
                      • E
                        Eugene
                        last edited by

                        Попробуй добавить следующее
                        route add host 239.255.0.147 10.255.189.193

                        http://ru.doc.pfsense.org

                        1 Reply Last reply Reply Quote 0
                        • F
                          filosoff96
                          last edited by

                          ##–----------------------------------------------------

                          Enable Quickleave mode (Sends Leave instantly)

                          ##------------------------------------------------------
                          quickleave
                          phyint rl1 upstream ratelimit 0 threshold 1
                          altnet 212.49.127.0/24

                          phyint rl0 downstream ratelimit 0 threshold 1
                          altnet 192.168.0.0/24

                          Это конфиг

                          1 Reply Last reply Reply Quote 0
                          • F
                            filosoff96
                            last edited by

                            @Eugene:

                            Попробуй добавить следующее
                            route add host 239.255.0.147 10.255.189.193

                            route: bad address: host

                            1 Reply Last reply Reply Quote 0
                            • E
                              Eugene
                              last edited by

                              Пардон
                              route add -host 239.255.0.147 10.255.189.193

                              http://ru.doc.pfsense.org

                              1 Reply Last reply Reply Quote 0
                              • F
                                filosoff96
                                last edited by

                                нет тишина на внешнем …

                                1 Reply Last reply Reply Quote 0
                                • E
                                  Eugene
                                  last edited by

                                  так не бывает -)
                                  netstat -rn опять пожалуйста и что говорит igmpproxy если запустить с debug?

                                  http://ru.doc.pfsense.org

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    filosoff96
                                    last edited by

                                    Internet:
                                    Destination        Gateway            Flags    Refs      Use  Netif Expire
                                    default            10.255.189.193    UGS        0  242955    rl1
                                    10.255.189.192/27  link#2            UC          0        0    rl1
                                    10.255.189.193    00:0c:31:65:7d:00  UHLW        3      190    rl1    39
                                    10.255.189.195    127.0.0.1          UGHS        0        0    lo0
                                    127.0.0.1          127.0.0.1          UH          1        0    lo0
                                    192.168.0.0/24    link#1            UC          0        0    rl0
                                    192.168.0.97      00:11:d8:d7:72:18  UHLW        1  122870    rl0  1198
                                    239.255.0.147      10.255.189.193    UGHS        0        0    rl1

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      filosoff96
                                      last edited by

                                      Debu: SENT Membership query  from 10.255.189.195  to 224.0.0.1
                                      Debu: Sent membership query from 10.255.189.195 to 224.0.0.1. Delay: 10
                                      Debu: Created timeout 3 (#0) - delay 10 secs
                                      Debu: (Id:3, Time:10)
                                      Debu: Created timeout 4 (#1) - delay 21 secs
                                      Debu: (Id:3, Time:10)
                                      Debu: (Id:4, Time:21)
                                      Debu: Packet from 10.255.189.195: proto: 2 hdrlen: 20 iplen: 8 or 2048
                                      Note: RECV Membership query  from 10.255.189.195  to 224.0.0.1 (ip_hl 20, data 8)
                                      Debu: About to call timeout 3 (#0)
                                      Debu: Aging routes in table.
                                      Debu:
                                      Current routing table (Age active routes);
                                      –---------------------------------------------------

                                      Debu: No routes in table...
                                      Debu:

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        Eugene
                                        last edited by

                                        Фикня какая-то, а где 239.255.0.147 в debug логе?

                                        http://ru.doc.pfsense.org

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          filosoff96
                                          last edited by

                                          А нету …

                                          внутри есть

                                          19:36:59.593338 IP 192.168.0.97 > 239.255.0.147: igmp v2 report 239.255.0.147
                                          19:37:00.046835 IP 192.168.0.97 > 239.255.0.147: igmp v2 report 239.255.0.147

                                          1 Reply Last reply Reply Quote 0
                                          • F
                                            filosoff96
                                            last edited by

                                            Это при запуске

                                            igmpproxy -d /tmp/igmpproxy.conf

                                            igmpproxy, Version 0.1 beta2, Build 090427
                                            Copyright 2005 by Johnny Egeland johnny@rlo.orgDistributed under the GNU GENERAL PUBLIC LICENSE, Version 2 - check GPL.txt

                                            Debu: Searching for config file at '/usr/local/etc/igmpproxy.conf'
                                            Debu: Config: Quick leave mode enabled.
                                            Debu: Config: Got a phyint token.
                                            Debu: Config: IF: Config for interface rl0.
                                            Debu: Config: IF: Got upstream token.
                                            Debu: Config: IF: Got ratelimit token '0'.
                                            Debu: Config: IF: Got threshold token '1'.
                                            Debu: Config: IF: Got altnet token 239.255.1.0/24.
                                            Debu: Config: IF: Altnet: Parsed altnet to 239.255.1/24.
                                            Debu: Config: IF: Got altnet token 239.255.0.0/24.
                                            Debu: Config: IF: Altnet: Parsed altnet to 239.255.0/24.
                                            Debu: Config: IF: Got altnet token 212.48.127.0/24.
                                            Debu: Config: IF: Altnet: Parsed altnet to 212.48.127/24.
                                            Debu: Config: IF: Got altnet token 212.49.127.0/24.
                                            Debu: Config: IF: Altnet: Parsed altnet to 212.49.127/24.
                                            Debu: IF name : rl0
                                            Debu: Next ptr : 0
                                            Debu: Ratelimit : 0
                                            Debu: Threshold : 1
                                            Debu: State : 1
                                            Debu: Allowednet ptr : 2820c040
                                            Debu: Config: Got a phyint token.
                                            Debu: Config: IF: Config for interface dc0.
                                            Debu: Config: IF: Got downstream token.
                                            Debu: Config: IF: Got ratelimit token '0'.
                                            Debu: Config: IF: Got threshold token '1'.
                                            Debu: IF name : dc0
                                            Debu: Next ptr : 0
                                            Debu: Ratelimit : 0
                                            Debu: Threshold : 1
                                            Debu: State : 2
                                            Debu: Allowednet ptr : 0
                                            Debu: Config: Got a phyint token.
                                            Debu: Config: IF: Config for interface lo.
                                            Debu: Config: IF: Got disabled token.
                                            Debu: IF name : lo
                                            Debu: Next ptr : 0
                                            Debu: Ratelimit : 0
                                            Debu: Threshold : 1
                                            Debu: State : 0
                                            Debu: Allowednet ptr : 0
                                            Debu: Adding Physical Index value of IF 'rl0' is 1
                                            Debu: buildIfVc: Interface rl0 Addr: 192.168.0.1, Flags: 0xffff8943, Network: 192.168.0/24
                                            Debu: Adding Physical Index value of IF 'rl1' is 2
                                            Debu: buildIfVc: Interface rl1 Addr: 10.255.189.195, Flags: 0xffff8943, Network: 10.255.189.192/27
                                            Debu: Adding Physical Index value of IF 'lo0' is 7
                                            Debu: buildIfVc: Interface lo0 Addr: 127.0.0.1, Flags: 0xffff8049, Network: 127/8
                                            Debu: Found config for rl0
                                            Note: adding VIF, Ix 0 Fl 0x0 IP 0x0100a8c0 rl0, Threshold: 1, Ratelimit: 0
                                            Debu:        Network for [rl0] : 192.168.0/24
                                            Debu:        Network for [rl0] : 239.255.1/24
                                            Debu:        Network for [rl0] : 239.255.0/24
                                            Debu:        Network for [rl0] : 212.48.127/24
                                            Debu:        Network for [rl0] : 212.49.127/24
                                            Note: adding VIF, Ix 1 Fl 0x0 IP 0xc3bdff0a rl1, Threshold: 1, Ratelimit: 0
                                            Debu:        Network for [rl1] : 10.255.189.192/27
                                            Debu: Got 262144 byte buffer size in 0 iterations
                                            Debu: Joining all-routers group 224.0.0.2 on vif 10.255.189.195
                                            Note: joinMcGroup: 224.0.0.2 on rl1
                                            Debu: SENT Membership query  from 10.255.189.195  to 224.0.0.1
                                            Debu: Sent membership query from 10.255.189.195 to 224.0.0.1. Delay: 10
                                            Debu: Created timeout 1 (#0) - delay 10 secs
                                            Debu: (Id:1, Time:10)
                                            Debu: Created timeout 2 (#1) - delay 21 secs
                                            Debu: (Id:1, Time:10)
                                            Debu: (Id:2, Time:21)
                                            Debu: Packet from 10.255.189.195: proto: 2 hdrlen: 20 iplen: 8 or 2048
                                            Note: RECV Membership query  from 10.255.189.195  to 224.0.0.1 (ip_hl 20, data 8)
                                            Debu: About to call timeout 1 (#0)
                                            Debu: Aging routes in table.
                                            Debu:
                                            Current routing table (Age active routes);
                                            –---------------------------------------------------

                                            Debu: No routes in table...
                                            Debu:
                                            -----------------------------------------------------/johnny@rlo.org

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