LinuxForum.Fans
Тема

Помогите настроить iptv (multicast)

Автор: OverLocker 1 сообщений 3690 просмотров
06.11.2014 20:40 · отредактировано #400033

Доброго дня,
Пытаюсь настроить iptv через роутер на gentoo. Ядро 3.12.13-gentoo

Пока ничего не выходит. Напрямую приставка показывает, через роутер - нет.
Провайдер - Нетбайнет Москва.

text

cat /usr/src/linux/.config | grep MULTICAST CONFIG_IP_MULTICAST=y

cat /usr/src/linux/.config | grep MROUTE CONFIG_IP_MROUTE=y # CONFIG_IP_MROUTE_MULTIPLE_TABLES is not set

text

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.151.10  netmask 255.255.255.0  broadcast 192.168.151.255
        ether 20:cf:30:af:a4:31  txqueuelen 1000  (Ethernet)
        RX packets 5709236  bytes 3624970754 (3.3 GiB)
        RX errors 0  dropped 10185  overruns 0  frame 0
        TX packets 7782808  bytes 9205357733 (8.5 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 95.220.50.235 netmask 255.255.192.0 broadcast 95.220.63.255 ether 1c:7e:e5:46:17:f2 txqueuelen 1000 (Ethernet) RX packets 8401769 bytes 9617975952 (8.9 GiB) RX errors 0 dropped 10128 overruns 1748 frame 0 TX packets 5767523 bytes 3716626527 (3.4 GiB) TX errors 0 dropped 0 overruns 0 carrier 1 collisions 0 device interrupt 17 base 0xec00

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 0 (Local Loopback) RX packets 11378 bytes 1487755 (1.4 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 11378 bytes 1487755 (1.4 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1492 inet 176.193.218.100 netmask 255.255.255.255 destination 212.1.254.122 ppp txqueuelen 3 (Point-to-Point Protocol) RX packets 116564 bytes 136253831 (129.9 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 66927 bytes 9191449 (8.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

text

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         msk-b12-m40.ti. 0.0.0.0         UG    0      0        0 ppp0
default         192.168.151.1   0.0.0.0         UG    1      0        0 eth0
ip-95-220-0-0.b *               255.255.192.0   U     0      0        0 eth1
ip-95-220-0-0.b *               255.255.192.0   U     5      0        0 eth1
loopback        localhost       255.0.0.0       UG    0      0        0 lo
192.168.151.0   *               255.255.255.0   U     0      0        0 eth0
msk-b12-m40.ti. *               255.255.255.255 UH    0      0        0 ppp0
base-address.mc *               240.0.0.0       U     5      0        0 eth1
text

##------------------------------------------------------
## Enable Quickleave mode (Sends Leave instantly)
##------------------------------------------------------
quickleave

##------------------------------------------------------ ## Configuration for eth0 (Upstream Interface) ##------------------------------------------------------ phyint eth1 upstream ratelimit 0 threshold 1 altnet 192.168.151.0/24

##------------------------------------------------------ ## Configuration for eth1 (Downstream Interface) ##------------------------------------------------------ phyint eth0 downstream ratelimit 0 threshold 1

##------------------------------------------------------ ## Configuration for eth2 (Disabled Interface) ##------------------------------------------------------ phyint eth2 disabled

text

 sysctl -p
vm.laptop_mode = 5
vm.dirty_writeback_centisecs = 6000
net.ipv4.conf.all.force_igmp_version = 2
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.all.rp_filter = 0
text

Nov 6 20:34:46 HRouter igmpproxy[22437]: RECV Membership query from 192.168.151.10 to 224.0.0.1 Nov 6 20:34:46 HRouter igmpproxy[22437]: RECV Membership query from 176.193.218.100 to 224.0.0.1 Nov 6 20:34:47 HRouter igmpproxy[22437]: RECV V2 member report from 176.193.218.100 to 224.0.0.2 Nov 6 20:34:47 HRouter igmpproxy[22437]: The IGMP message was from myself. Ignoring. Nov 6 20:34:47 HRouter igmpproxy[22437]: RECV V2 member report from 192.168.151.148 to 229.111.112.12 Nov 6 20:34:47 HRouter igmpproxy[22437]: Updated route entry for 229.111.112.12 on VIF #0 Nov 6 20:34:47 HRouter igmpproxy[22437]: Adding MFC: 192.168.151.148 -> 229.111.112.12, InpVIf: 1 Nov 6 20:34:51 HRouter igmpproxy[22437]: RECV V2 member report from 192.168.151.181 to 239.255.255.250 Nov 6 20:34:51 HRouter igmpproxy[22437]: Updated route entry for 239.255.255.250 on VIF #0 Nov 6 20:34:51 HRouter igmpproxy[22437]: Adding MFC: 192.168.151.148 -> 239.255.255.250, InpVIf: 1 Nov 6 20:34:51 HRouter igmpproxy[22437]: RECV V2 member report from 192.168.151.148 to 233.49.170.68 Nov 6 20:34:51 HRouter igmpproxy[22437]: Updated route entry for 233.49.170.68 on VIF #0 Nov 6 20:34:52 HRouter igmpproxy[22437]: RECV V2 member report from 192.168.151.10 to 224.0.0.2 Nov 6 20:34:52 HRouter igmpproxy[22437]: The IGMP message was from myself. Ignoring. Nov 6 20:34:52 HRouter igmpproxy[22437]: RECV V2 member report from 192.168.151.181 to 239.0.0.250 Nov 6 20:34:52 HRouter igmpproxy[22437]: Updated route entry for 239.0.0.250 on VIF #0 Nov 6 20:34:55 HRouter igmpproxy[22437]: RECV V2 member report from 192.168.151.181 to 239.192.152.143 Nov 6 20:34:55 HRouter igmpproxy[22437]: Updated route entry for 239.192.152.143 on VIF #0

text

tcpdump -s 1500 -vvv -lni eth1 igmp or port 5510
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 1500 bytes
20:43:19.804845 IP (tos 0xc0, ttl 1, id 57018, offset 0, flags [none], proto IGMP (2), length 32, options (RA))
    212.1.254.2 > 224.0.0.1: igmp query v2
text

 tcpdump -s 1500 -vvv -lni eth1 igmp or port 5510
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 1500 bytes
20:50:02.976692 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 233.49.170.68: igmp v2 report 233.49.170.68
20:50:03.168685 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 233.49.170.68: igmp v2 report 233.49.170.68
20:50:04.668711 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 239.0.0.250: igmp v2 report 239.0.0.250
20:50:04.977708 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 229.111.112.12: igmp v2 report 229.111.112.12
20:50:05.701685 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 239.255.255.250: igmp v2 report 239.255.255.250
20:50:07.477679 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 239.192.152.143: igmp v2 report 239.192.152.143
20:50:09.845672 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 239.192.152.143: igmp v2 report 239.192.152.143
20:50:10.197678 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 229.111.112.12: igmp v2 report 229.111.112.12
20:50:11.253678 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 239.0.0.250: igmp v2 report 239.0.0.250
20:50:11.605673 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 233.49.170.68: igmp v2 report 233.49.170.68
20:50:12.573675 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 239.0.0.250: igmp v2 report 239.0.0.250
20:50:12.917673 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 229.111.112.12: igmp v2 report 229.111.112.12
20:50:15.477675 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))
    95.220.50.235 > 239.255.255.250: igmp v2 report 239.255.255.250
20:51:39.879920 IP (tos 0xc0, ttl 1, id 53085, offset 0, flags [none], proto IGMP (2), length 32, options (RA))
    212.1.254.2 > 224.0.0.1: igmp query v2
Войдите или зарегистрируйтесь, чтобы ответить.