IPtv multicast
-
Это внутри
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 -
Не уверен, что это корректно, на сколько я помню моя тестовая программулина (какой-то плэйер) слал 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 -
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 -
Попробуй добавить следующее
route add host 239.255.0.147 10.255.189.193 -
##–----------------------------------------------------
Enable Quickleave mode (Sends Leave instantly)
##------------------------------------------------------
quickleave
phyint rl1 upstream ratelimit 0 threshold 1
altnet 212.49.127.0/24phyint rl0 downstream ratelimit 0 threshold 1
altnet 192.168.0.0/24Это конфиг
-
Попробуй добавить следующее
route add host 239.255.0.147 10.255.189.193route: bad address: host
-
Пардон
route add -host 239.255.0.147 10.255.189.193 -
нет тишина на внешнем …
-
так не бывает -)
netstat -rn опять пожалуйста и что говорит igmpproxy если запустить с debug? -
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 -
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: -
Фикня какая-то, а где 239.255.0.147 в debug логе?
-
А нету …
внутри есть
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 -
Это при запуске
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.txtDebu: 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 -
Как я уже постил раньше, должно быть примерно так:
должно быть примерно так:
Debu: Packet from 192.168.7.185: proto: 2 hdrlen: 20 iplen: 8 or 2048
Note: RECV V2 member report from 192.168.7.185 to 224.0.0.22 (ip_hl 20, data
Debu: Should insert group 239.142.1.1 (from: 192.168.7.185) to route table. Vif Ix : 0
Debu: No existing route for 239.142.1.1. Create new.
Debu: Found existing routes. Find insert location.
Debu: Inserting at beginning, before route 224.0.1.60
Info: Inserted route table entry for 239.142.1.1 on VIF #0
Debu: Joining group 239.142.1.1 upstream on IF address 2.2.2.2
Note: joinMcGroup: 239.142.1.1 on le1Не вижу у тебя при старте
Debu: Found config for rl1… -
Смущает вот эта строка
Debu: Config: IF: Config for interface dc0.
такого интерфейса нет в системе
есть rl0, rl1, ed0
rl0 > LAN
rl1 > WAN
ed0 > ADSL - не настроен -
Вот это вот выдаётся, когда разбирается igmpproxy.conf
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'.
возможно тупой вопрос, но ты уверен, что в /tmp/igmpproxy.conf у тебя нет этого интерфейса?
-
С первой строчкой разобрался
в остальном все так же непонятно
-
с первой строчкой?
-
Копался вот что вышло
Debu: Aging Origin 192.168.0.99 Dst 239.255.255.250 PktCnt 1 -> 1
Debu: Origin 192.168.0.99 Vif bits : 0x00000000
Debu: Identified Input VIF #0 as DOWNSTREAM.
Debu: Setting TTL for UPSTREAM Vif 1 to 1
Note: Removing MFC: 192.168.0.99 -> 239.255.255.250, InpVIf: 0
Debu: Removing group 239.255.255.250. Died of old age.
Debu: Removed route entry for 239.255.255.250 from table.
Note: Route is not active. No kernel updates done.
Debu:
Current routing table (Remove route);