V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
guoguobaba
V2EX  ›  OpenWrt

gd 联通 iptv udproxy 的问题

  •  
  •   guoguobaba · 22 天前 · 476 次点击

    光猫---路由器---pc

    其中光猫的 iptv 接口连接路由器的 eth1

    参考 https://www.ilovn.com/2021/09/11/guangdong-iptv-ikuai-openwrt-udpxy/ 这个帖子

    eth1 配置 dhcp ,并填入了 vendor class ,能够成功获取 ip 地址

    udpxy 已经安装,http://192.168.10.1:8888/status 能看到结果

    防火墙 eth1 单独一个 iptv zone ,允许 input/output

    在 potplayer 打开 http://192.168.10.1:8888/rtp/239.0.1.101:8004 ,看不到内容

    路由器上用 tcpdump 抓包,看到有加入 multicast group 的包

    root@OpenWrt:~# tcpdump -i eth1 igmp -n -X
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth1, link-type EN10MB (Ethernet), capture size 262144 bytes
    00:40:47.384857 IP 10.31.80.102 > 224.0.0.22: igmp v3 report, 1 group record(s)
            0x0000:  46c0 0028 0000 4000 0102 a974 0a1f 5066  F..([email protected]
            0x0010:  e000 0016 9404 0000 2200 e998 0000 0001  ........".......
            0x0020:  0400 0000 ef00 0165                      .......e
    00:40:48.145838 IP 10.31.80.102 > 224.0.0.22: igmp v3 report, 1 group record(s)
            0x0000:  46c0 0028 0000 4000 0102 a974 0a1f 5066  F..([email protected]
            0x0010:  e000 0016 9404 0000 2200 e998 0000 0001  ........".......
            0x0020:  0400 0000 ef00 0165                      .......e
    

    但是没有回包。

    排查思路 1 、防火墙设置问题,eth1 所在的 iptv zone 允许 input 数据 2 、联通还要进行其他认证? 3 、udproxy 并不需要 iptv zone 转发到 lan 4 、开启 iptv zone 的防火墙日志,但是找不到日志的位置。

    3 条回复    2024-05-27 11:18:02 +08:00
    guoguobaba
        1
    guoguobaba  
    OP
       21 天前
    ```
    ffmpeg -protocol_whitelist rtp,udp -i "rtp://239.0.1.101:8004" /tmp/save.mp4
    ```
    直接在 openwrt 上弄了个 ffmpeg ,播放 rtp ,抓包同样没有回包。说明光猫那边可能还需要其他认证
    swordsmile
        2
    swordsmile  
       21 天前
    先试试单机使用 IPTV ,我是深圳电信,单独开一个 OpenWRT 虚拟机给 IPTV 专用,没有任何问题。
    swordsmile
        3
    swordsmile  
       21 天前
    一机多用,要考虑下路由和伪装( Masquerade )的问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5361 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 08:56 · PVG 16:56 · LAX 01:56 · JFK 04:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.