Foro

Avatar de IsmaelMartin84
IsmaelMartin84
Mi vida cambió con el ADSL
29-01-2025

No veo U7D en monopuesto, el resto funciona de forma correcta

Buenas, he puesto el HGU en monopuesto con la ip 192.168.0.1 detrás un Firewalla Purple con la red 192.168.1.1 y le añado está config para que funcione la TV.

 

 

#!/bin/bash

#Configurar IP y Vlan VOIP.

sudo ip address add 192.168.0.2/24 dev eth0

#Configurar rutas estaticas para direccionar trafico IPTV

sudo ip route add 192.168.0.0/24 dev eth0 table static

sudo ip route add 10.64.0.0/10 via 192.168.0.1 dev eth0 table static

sudo ip route add 172.23.96.0/21 via 192.168.0.1 dev  eth0 table static

sudo ip route add 172.26.22.0/26 via 192.168.0.1 dev  eth0 table static

sudo ip route add 172.26.23.0/27 via 192.168.0.1 dev  eth0 table static

sudo ip route add 172.26.80.0/21 via 192.168.0.1 dev  eth0 table static

#Configurar iptables para enmascarar el trafico hacia la red IPTV.

sudo iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 192.168.0.0/24 -j MASQUERADE

sudo iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 10.64.0.0/10 -j MASQUERADE

sudo iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 172.23.96.0/21  -j MASQUERADE

sudo iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 172.26.22.0/26 -j MASQUERADE

sudo iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 172.26.23.0/27 -j MASQUERADE

sudo iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -d 172.26.80.0/21 -j MASQUERADE

#Configurar y levantar IGMP Proxy como upstream IPTV.

sudo /usr/sbin/igmpproxy -n /home/pi/.firewalla/config/post_main.d/igmpproxy_movistar.conf &

 

 La IP del deco es 192.168.1200 y el dns 

172.23.101.98

 

He hecho un tcpdump justo cuando pulso el botón de play en una grabación, pero nose interpretar bien donde está el problema o error en la traza. Alguien puede ayudarme a interpretar la traza y detectar el problema ??  Theliel  a ver si a ti te suena donde puede estar el problema

 

 

Spoiler

pi@Firewalla:~ (Firewalla2) $ sudo tcpdump -i any -vvv host 192.168.1.200

tcpdump: listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes

20:17:56.741127 IP (tos 0x0, ttl 64, id 49147, offset 0, flags [DF], proto UDP (17), length 78)

    192.168.1.200.49406 > 172.23.101.98.domain: [udp sum ok] 9950+ A? portalnc.imagenio.telefonica.net. (50)

20:17:56.741127 IP (tos 0x0, ttl 64, id 49147, offset 0, flags [DF], proto UDP (17), length 78)

    192.168.1.200.49406 > 172.23.101.98.domain: [udp sum ok] 9950+ A? portalnc.imagenio.telefonica.net. (50)

20:17:56.744901 IP (tos 0x0, ttl 249, id 38796, offset 0, flags [DF], proto UDP (17), length 94)

    172.23.101.98.domain > 192.168.1.200.49406: [udp sum ok] 9950*- q: A? portalnc.imagenio.telefonica.net. 1/0/0 portalnc.imagenio.telefonica.net. [30s] A 172.23.103.196 (66)

20:17:56.744914 IP (tos 0x0, ttl 249, id 38796, offset 0, flags [DF], proto UDP (17), length 94)

    172.23.101.98.domain > 192.168.1.200.49406: [udp sum ok] 9950*- q: A? portalnc.imagenio.telefonica.net. 1/0/0 portalnc.imagenio.telefonica.net. [30s] A 172.23.103.196 (66)

20:17:56.745573 IP (tos 0x0, ttl 64, id 35351, offset 0, flags [DF], proto TCP (6), length 60)

    192.168.1.200.35558 > 172.23.103.196.2001: Flags [S], cksum 0x225b (correct), seq 4271235802, win 29200, options [mss 1460,sackOK,TS val 5466317 ecr 0,nop,wscale 7], length 0

20:17:56.745573 IP (tos 0x0, ttl 64, id 35351, offset 0, flags [DF], proto TCP (6), length 60)

    192.168.1.200.35558 > 172.23.103.196.2001: Flags [S], cksum 0x225b (correct), seq 4271235802, win 29200, options [mss 1460,sackOK,TS val 5466317 ecr 0,nop,wscale 7], length 0

20:17:56.749263 IP (tos 0x0, ttl 248, id 49615, offset 0, flags [DF], proto TCP (6), length 56)

    172.23.103.196.2001 > 192.168.1.200.35558: Flags [S.], cksum 0xd32d (correct), seq 2256198856, ack 4271235803, win 4356, options [mss 1452,sackOK,TS val 3011489147 ecr 5466317], length 0

20:17:56.749275 IP (tos 0x0, ttl 248, id 49615, offset 0, flags [DF], proto TCP (6), length 56)

    172.23.103.196.2001 > 192.168.1.200.35558: Flags [S.], cksum 0xd32d (correct), seq 2256198856, ack 4271235803, win 4356, options [mss 1452,sackOK,TS val 3011489147 ecr 5466317], length 0

20:17:56.754063 IP (tos 0x0, ttl 248, id 49626, offset 0, flags [DF], proto TCP (6), length 52)

    172.23.103.196.2001 > 192.168.1.200.35558: Flags [.], cksum 0xea98 (correct), seq 1, ack 418, win 4773, options [nop,nop,TS val 3011489152 ecr 5466321], length 0

20:17:56.754072 IP (tos 0x0, ttl 248, id 49626, offset 0, flags [DF], proto TCP (6), length 52)

    172.23.103.196.2001 > 192.168.1.200.35558: Flags [.], cksum 0xea98 (correct), seq 1, ack 418, win 4773, options [nop,nop,TS val 3011489152 ecr 5466321], length 0

20:17:56.779369 IP (tos 0x0, ttl 248, id 49734, offset 0, flags [DF], proto TCP (6), length 1492)

    172.23.103.196.2001 > 192.168.1.200.35558: Flags [P.], cksum 0xec68 (correct), seq 1:1441, ack 418, win 4773, options [nop,nop,TS val 3011489177 ecr 5466321], length 1440

20:17:56.779383 IP (tos 0x0, ttl 248, id 49734, offset 0, flags [DF], proto TCP (6), length 1492)

    172.23.103.196.2001 > 192.168.1.200.35558: Flags [P.], cksum 0xec68 (correct), seq 1:1441, ack 418, win 4773, options [nop,nop,TS val 3011489177 ecr 5466321], length 1440

20:17:56.779455 IP (tos 0x0, ttl 248, id 49738, offset 0, flags [DF], proto TCP (6), length 264)

    172.23.103.196.2001 > 192.168.1.200.35558: Flags [P.], cksum 0xb0a4 (correct), seq 1441:1653, ack 418, win 4773, options [nop,nop,TS val 3011489178 ecr 5466321], length 212

20:17:56.779464 IP (tos 0x0, ttl 248, id 49738, offset 0, flags [DF], proto TCP (6), length 264)

    172.23.103.196.2001 > 192.168.1.200.35558: Flags [P.], cksum 0xb0a4 (correct), seq 1441:1653, ack 418, win 4773, options [nop,nop,TS val 3011489178 ecr 5466321], length 212

20:17:56.779781 IP (tos 0x0, ttl 64, id 35354, offset 0, flags [DF], proto TCP (6), length 52)

    192.168.1.200.35558 > 172.23.103.196.2001: Flags [.], cksum 0x7ba6 (correct), seq 418, ack 1441, win 31680, options [nop,nop,TS val 5466351 ecr 3011489177], length 0

20:17:56.779781 IP (tos 0x0, ttl 64, id 35354, offset 0, flags [DF], proto TCP (6), length 52)

    192.168.1.200.35558 > 172.23.103.196.2001: Flags [.], cksum 0x7ba6 (correct), seq 418, ack 1441, win 31680, options [nop,nop,TS val 5466351 ecr 3011489177], length 0

20:17:56.779784 IP (tos 0x0, ttl 64, id 35355, offset 0, flags [DF], proto TCP (6), length 52)

    192.168.1.200.35558 > 172.23.103.196.2001: Flags [.], cksum 0x6f91 (correct), seq 418, ack 1653, win 34560, options [nop,nop,TS val 5466351 ecr 3011489178], length 0

20:17:56.779784 IP (tos 0x0, ttl 64, id 35355, offset 0, flags [DF], proto TCP (6), length 52)

    192.168.1.200.35558 > 172.23.103.196.2001: Flags [.], cksum 0x6f91 (correct), seq 418, ack 1653, win 34560, options [nop,nop,TS val 5466351 ecr 3011489178], length 0

20:17:57.252691 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > all-routers.mcast.net: igmp leave 239.0.5.111

20:17:57.252691 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > all-routers.mcast.net: igmp leave 239.0.5.111

20:17:57.256122 IP (tos 0x0, ttl 64, id 49359, offset 0, flags [DF], proto UDP (17), length 85)

    192.168.1.200.53580 > 172.23.101.98.domain: [udp sum ok] 30519+ A? cdvr1.wp7.npvr1.imagenio.telefonica.net. (57)

20:17:57.256122 IP (tos 0x0, ttl 64, id 49359, offset 0, flags [DF], proto UDP (17), length 85)

    192.168.1.200.53580 > 172.23.101.98.domain: [udp sum ok] 30519+ A? cdvr1.wp7.npvr1.imagenio.telefonica.net. (57)

20:17:57.263092 IP (tos 0x0, ttl 247, id 24503, offset 0, flags [DF], proto UDP (17), length 161)

    172.23.101.98.domain > 192.168.1.200.53580: [udp sum ok] 30519 q: A? cdvr1.wp7.npvr1.imagenio.telefonica.net. 3/0/0 cdvr1.wp7.npvr1.imagenio.telefonica.net. [3h30m55s] CNAME rp-5200000000000000.id.vdnott.imagenio.telefonica.net., rp-5200000000000000.id.vdnott.imagenio.telefonica.net. [10s] A 172.26.84.24, rp-5200000000000000.id.vdnott.imagenio.telefonica.net. [10s] A 172.26.84.14 (133)

20:17:57.263103 IP (tos 0x0, ttl 247, id 24503, offset 0, flags [DF], proto UDP (17), length 161)

    172.23.101.98.domain > 192.168.1.200.53580: [udp sum ok] 30519 q: A? cdvr1.wp7.npvr1.imagenio.telefonica.net. 3/0/0 cdvr1.wp7.npvr1.imagenio.telefonica.net. [3h30m55s] CNAME rp-5200000000000000.id.vdnott.imagenio.telefonica.net., rp-5200000000000000.id.vdnott.imagenio.telefonica.net. [10s] A 172.26.84.24, rp-5200000000000000.id.vdnott.imagenio.telefonica.net. [10s] A 172.26.84.14 (133)

20:17:57.271926 IP (tos 0x0, ttl 64, id 38934, offset 0, flags [DF], proto TCP (6), length 60)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [S], cksum 0x9f43 (correct), seq 2129785549, win 29200, options [mss 1460,sackOK,TS val 5466843 ecr 0,nop,wscale 7], length 0

20:17:57.271926 IP (tos 0x0, ttl 64, id 38934, offset 0, flags [DF], proto TCP (6), length 60)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [S], cksum 0x9f43 (correct), seq 2129785549, win 29200, options [mss 1460,sackOK,TS val 5466843 ecr 0,nop,wscale 7], length 0

20:17:57.574048 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.255.255.250: igmp v2 report 239.255.255.250

20:17:57.574048 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.255.255.250: igmp v2 report 239.255.255.250

20:17:57.966421 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.0.2.29: igmp v2 report 239.0.2.29

20:17:57.966421 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.0.2.29: igmp v2 report 239.0.2.29

20:17:59.630408 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.0.2.129: igmp v2 report 239.0.2.129

20:17:59.630408 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.0.2.129: igmp v2 report 239.0.2.129

20:18:01.166665 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.0.2.155: igmp v2 report 239.0.2.155

20:18:01.166665 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.0.2.155: igmp v2 report 239.0.2.155

20:18:03.726467 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.0.2.2: igmp v2 report 239.0.2.2

20:18:03.726467 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto IGMP (2), length 32, options (RA))

    192.168.1.200 > 239.0.2.2: igmp v2 report 239.0.2.2

20:18:07.258677 IP (tos 0x0, ttl 64, id 38942, offset 0, flags [DF], proto TCP (6), length 508)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [P.], cksum 0x19a9 (correct), seq 2129787001:2129787457, ack 2574594613, win 246, options [nop,nop,TS val 5476829 ecr 3787690984], length 456: RTSP, length: 456

TEARDOWN rtsp://cdvr1.wp7.npvr1.imagenio.telefonica.net:554/rolling_buffer/2543/2025-01-29T17:34:00Z/2025-01-29T19:35:00Z/vxttoken_cGF0aFVSST0vcm9sbGluZ19idWZmZXIvMjU0My8yMDI1LTAxLTI5VDE3OjM0OjAwWi8yMDI1LTAxLTI5VDE5OjM1OjAwWiZleHBpcnk9MTczODI2NDY3NiZjLWlwPTEwLjgwLjg0LjIxOSw0MjRkNWNmNjU4ZjEyNGMyZDhiMTk4NTMwMTVjYjZjOWJlNmUxODU5NzI0MWQxMDVkNWM1YWIzMzIzMGQxMDQw RTSP/1.0

CSeq: 5

Session: IXawT75VlFiHU439608

User-Agent: MICA-IP-STB

x-reason: released

 

20:18:07.258677 IP (tos 0x0, ttl 64, id 38942, offset 0, flags [DF], proto TCP (6), length 508)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [P.], cksum 0x19a9 (correct), seq 0:456, ack 1, win 246, options [nop,nop,TS val 5476829 ecr 3787690984], length 456: RTSP, length: 456

TEARDOWN rtsp://cdvr1.wp7.npvr1.imagenio.telefonica.net:554/rolling_buffer/2543/2025-01-29T17:34:00Z/2025-01-29T19:35:00Z/vxttoken_cGF0aFVSST0vcm9sbGluZ19idWZmZXIvMjU0My8yMDI1LTAxLTI5VDE3OjM0OjAwWi8yMDI1LTAxLTI5VDE5OjM1OjAwWiZleHBpcnk9MTczODI2NDY3NiZjLWlwPTEwLjgwLjg0LjIxOSw0MjRkNWNmNjU4ZjEyNGMyZDhiMTk4NTMwMTVjYjZjOWJlNmUxODU5NzI0MWQxMDVkNWM1YWIzMzIzMGQxMDQw RTSP/1.0

CSeq: 5

Session: IXawT75VlFiHU439608

User-Agent: MICA-IP-STB

x-reason: released

 

20:18:07.258681 IP (tos 0x0, ttl 64, id 38943, offset 0, flags [DF], proto TCP (6), length 52)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [F.], cksum 0xcf4b (correct), seq 456, ack 1, win 246, options [nop,nop,TS val 5476830 ecr 3787690984], length 0

20:18:07.258681 IP (tos 0x0, ttl 64, id 38943, offset 0, flags [DF], proto TCP (6), length 52)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [F.], cksum 0xcf4b (correct), seq 456, ack 1, win 246, options [nop,nop,TS val 5476830 ecr 3787690984], length 0

20:18:07.266018 IP (tos 0x40, ttl 58, id 48406, offset 0, flags [DF], proto TCP (6), length 110)

    172.26.84.24.rtsp > 192.168.1.200.38129: Flags [P.], cksum 0x4beb (correct), seq 1:59, ack 457, win 2078, options [nop,nop,TS val 3787700889 ecr 5476829], length 58: RTSP, length: 58

RTSP/1.0 200 OK

Session: IXawT75VlFiHU439608

CSeq: 5

 

20:18:07.266033 IP (tos 0x40, ttl 58, id 48406, offset 0, flags [DF], proto TCP (6), length 110)

    172.26.84.24.rtsp > 192.168.1.200.38129: Flags [P.], cksum 0x4beb (correct), seq 1:59, ack 457, win 2078, options [nop,nop,TS val 3787700889 ecr 5476829], length 58: RTSP, length: 58

RTSP/1.0 200 OK

Session: IXawT75VlFiHU439608

CSeq: 5

 

20:18:07.266282 IP (tos 0x40, ttl 64, id 54, offset 0, flags [DF], proto TCP (6), length 40)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [R], cksum 0xdced (correct), seq 2129787458, win 0, length 0

20:18:07.266282 IP (tos 0x40, ttl 64, id 54, offset 0, flags [DF], proto TCP (6), length 40)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [R], cksum 0xdced (correct), seq 2129787458, win 0, length 0

20:18:07.267383 IP (tos 0x40, ttl 58, id 48407, offset 0, flags [DF], proto TCP (6), length 52)

    172.26.84.24.rtsp > 192.168.1.200.38129: Flags [F.], cksum 0xa136 (correct), seq 59, ack 457, win 2078, options [nop,nop,TS val 3787700891 ecr 5476829], length 0

20:18:07.267395 IP (tos 0x40, ttl 58, id 48407, offset 0, flags [DF], proto TCP (6), length 52)

    172.26.84.24.rtsp > 192.168.1.200.38129: Flags [F.], cksum 0xa136 (correct), seq 59, ack 457, win 2078, options [nop,nop,TS val 3787700891 ecr 5476829], length 0

20:18:07.267617 IP (tos 0x40, ttl 64, id 55, offset 0, flags [DF], proto TCP (6), length 40)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [R], cksum 0xdced (correct), seq 2129787458, win 0, length 0

20:18:07.267617 IP (tos 0x40, ttl 64, id 55, offset 0, flags [DF], proto TCP (6), length 40)

    192.168.1.200.38129 > 172.26.84.24.rtsp: Flags [R], cksum 0xdced (correct), seq 2129787458, win 0, length 0

 

48 packets captured

96 packets received by filter

37 packets dropped by kernel

 

11 Respuestas

  • Avatar de Theliel
    Theliel
    Yo probé el VDSL
    30-01-2025

    Buenas IsmaelMartin84 

     

    Pues a ver... por un lado el enmascaramiento es tan solo una línea, y además esta mal, sería simplemente:

     

    iptables -t nat -A POSTROUTING -d 192.168.0.0/24 -j MASQUERADE

     

    El resto sobra.

     

    Por otro lado, el Router/Firewall debería de asignar de forma específica tanto la DNS como el Option240, no asignarlo de forma estática, aunque realmente no sé como estarás asignando ambos.

     

    Por otro lado, tendrás que asegurarte que el Router/Firewall está haciendo uso de un "ayudante" RTSP (rtps passthroug, rtps ALG... como lo quieras llamar)

     

    Las rutas no puedo saber como es lógico si son o no correctas o si falta alguna más, así como la configuración IGMP.

     

    Asumo que la visualización de directos se ve bien?