Дано:
Провайдер "искрателеком". Соединение pppoe (у меня eth0 и ppp0 ). Все адреса динамические. С подключение к интернет проблем нет, все работает замечательно.
Провайдер ведет вещание эфирных каналов IPTV. Адреса типа: udp://@239.*.*.*:1001. Проблема как раз таки заключается в том, что вещание ведется с 1001 порта, поэтому просмотр возможен только под рутом О_о Это как мне кажется не самый безопасный вариант просмотра телевизора.
Из вышеописанного,у меня появилась идея обхода этой проблемы, не заставля провайдера что-либо менять. И хотелось бы узнать у вас, возможно такое вообще или нет.
Вот, что я думаю:
Сделать переадресацию вида udp://@239.*.*.*:pppp на udp://@239.*.*.*:1001, так чтобы, когда пользователь открывал адрес udp://@239.*.*.*:pppp пакеты перенаправлялись с помощью iptables например на udp://@239.*.*.*:1001.
Если такое, возможно, то как это реализовывать??
вот кусок вывода tcpdump во время трансляции 2ух каналов
Код:
0:56:57.428177 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.428570 IP ice.local.58381 > 82.199.96.143.domain: 50470+ PTR? 3.28.34.233.in-addr.arpa. (42)
20:56:57.428821 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.430501 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.431101 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.432575 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.433032 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.434603 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.435266 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.436946 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.438875 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.439090 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.440995 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.443199 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.445576 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.447614 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.448737 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.449636 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.451944 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.452168 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.453599 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.454266 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.455353 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.456340 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.457554 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.458548 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.459174 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.460445 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.460872 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.461970 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.462655 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.464056 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.464909 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.467423 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.467643 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.469509 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.470625 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.471737 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.473585 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.474139 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.475881 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.477266 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.478172 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.480301 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.480505 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.482256 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.484555 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.487068 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.487290 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.488245 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.489249 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.489576 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.490139 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.491479 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.492442 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.493488 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.494289 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.495452 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.496458 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.497602 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.498607 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.499910 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.500835 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.502090 IP 192.168.90.22.37266 > 233.34.28.3.customs: UDP, length 1316
20:56:57.502675 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:57.504812 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:56:59.682407 IP ice.local > 233.34.28.3: igmp v2 report 233.34.28.3
20:57:02.426420 arp who-has 10.103.64.1 tell ice.local
20:57:02.426447 IP ice.local.58381 > 82.199.96.143.domain: 50470+ PTR? 3.28.34.233.in-addr.arpa. (42)
20:57:07.527051 IP ice.local.mdns > 224.0.0.251.mdns: 0 PTR (QM)? 3.28.34.233.in-addr.arpa. (42)
20:59:57.432586 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.434876 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.437199 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.439223 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.441287 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.443530 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.445610 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.448054 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.450245 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.452420 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.454696 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.456875 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.459111 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.460949 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.463220 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.465348 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.467416 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.469709 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.471722 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.474046 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.476209 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.478430 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.480055 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.482278 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:57.484754 IP 192.168.90.22.37266 > 233.34.28.1.customs: UDP, length 1316
20:59:58.318396 IP ice.local.56112 > 82.199.96.143.domain: 61667+ AAAA? ice. (21)
21:00:12.354606 IP ice.local.43571 > 82.199.96.143.domain: 43934+ PTR? 57.183.81.92.in-addr.arpa. (43)
21:00:27.358653 IP ice.local.42611 > 82.199.96.143.domain: 32258+ PTR? 173.120.221.85.in-addr.arpa. (45)
21:00:32.358399 IP ice.local.42611 > 82.199.96.143.domain: 32258+ PTR? 173.120.221.85.in-addr.arpa. (45)
21:00:42.362668 IP ice.local.54506 > 82.199.96.143.domain: 43971+ PTR? 251.0.0.224.in-addr.arpa. (42)
и ifconfig
Код:
rosso@ice:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:f3:6b:ab:6d
inet addr:10.103.90.156 Bcast:10.103.95.255 Mask:255.255.224.0
inet6 addr: fe80::218:f3ff:fe6b:ab6d/64 Диапазон:Ссылка
ВВЕРХ BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3621209 errors:0 dropped:0 overruns:0 frame:0
TX packets:2142153 errors:0 dropped:0 overruns:0 carrier:2
коллизии:0 txqueuelen:1000
RX bytes:2896667657 (2.6 GB) TX bytes:222042308 (211.7 MB)
lo Link encap:Локальная петля (Loopback)
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Диапазон:Узел
ВВЕРХ LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:318 errors:0 dropped:0 overruns:0 frame:0
TX packets:318 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:0
RX bytes:16104 (15.7 KB) TX bytes:16104 (15.7 KB)
ppp0 Link encap:Протокол PPP (Point-to-Point Protocol)
inet addr:79.172.94.164 P-t-P:82.199.96.10 Mask:255.255.255.255
ВВЕРХ POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:6400 errors:0 dropped:0 overruns:0 frame:0
TX packets:7233 errors:0 dropped:0 overruns:0 carrier:0
коллизии:0 txqueuelen:3
RX bytes:1377105 (1.3 MB) TX bytes:924443 (902.7 KB)
Буду очень благодарен за помощь.