Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: ip-tv настройка udp  (Прочитано 63004 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн minorDima

  • Автор темы
  • Новичок
  • *
  • Сообщений: 7
    • Просмотр профиля
ip-tv настройка udp
« : 10 Февраля 2010, 02:38:10 »
Доброго времени суток.
Помогите пожалуйста решить небольшую проблему.

Есть сервер на ubuntu с выходом в локальную сеть и инет (через неё), ip внешний, статический (eth0)
Есть клиент на Windows (eth1)

Раздачу инета для клиента сделал следующим образом

echo "1" > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/4 -j MASQUERADE

Перенаправление портов с использованием rinet

Всё работало замечательно пока не захотелось смотреть телевидение
каналы доступны по ссылкам udp://@239.0.0.8:1234

на сервере всё работает замечательно (специально поставил nx-free), а вот на клиенте нет  :-\

Я просто не специалист по linux так что даже не представляю в какую сторону мне смотреть что бы сделать форвардинг udp  (это я так думаю что это поможет :))

Заранее благодарен за любые ответы.

Оффлайн AnrDaemon

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 28511
    • Просмотр профиля
Re: ip-tv настройка udp
« Ответ #1 : 10 Февраля 2010, 02:43:04 »
IGMP proxy
Хотите получить помощь? Потрудитесь представить запрошенную информацию в полном объёме.

Прежде чем [Отправить], нажми [Просмотр] и прочти собственное сообщение. Сам-то понял, что написал?…

Оффлайн minorDima

  • Автор темы
  • Новичок
  • *
  • Сообщений: 7
    • Просмотр профиля
Re: ip-tv настройка udp
« Ответ #2 : 10 Февраля 2010, 11:49:14 »
IGMP proxy
Спсибо, но есть маленькая проблема -  не работает  :-\

Конфиг файл igmpproxy.conf
quickleave

phyint eth0 upstream ratelimit 0 threshold 1
    altnet 192.168.0.2

phyint eth1 downstream  ratelimit 0  threshold 1
   

Пробовал запустить прокси в режиме отладки
igmproxy -d получил следующее
igmpproxy, Version 0.1 beta2, Build 100210
Copyright 2005 by Johnny Egeland <johnny@rlo.org>
Distributed under the GNU GENERAL PUBLIC LICENSE, Version 2 - check GPL.txt

Debu: Searching for config file at '/etc/igmpproxy.conf'
Debu: Config: Quick leave mode enabled.
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface eth0.
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 192.168.0.2.
Debu: Config: IF: Altnet: Parsed altnet to 192.168.0.2/32.
Debu: IF name : eth0
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 1
Debu: Allowednet ptr : 1f2c2a0
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface eth1.
Debu: Config: IF: Got downstream token.
Debu: Config: IF: Got ratelimit token '0'.
Debu: Config: IF: Got threshold token '1'.
Debu: IF name : eth1
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 2
Debu: Allowednet ptr : 0
Debu: Physical Index value of IF 'lo' is 1
Debu: buildIfVc: Interface lo Addr: 127.0.0.1, Flags: 0x0049, Network: 127/8
Debu: Physical Index value of IF 'eth0' is 2
Debu: buildIfVc: Interface eth0 Addr: 95.69.138.167, Flags: 0x1043, Network: 95.69.136/21
Debu: Physical Index value of IF 'eth1' is 3
Debu: buildIfVc: Interface eth1 Addr: 192.168.0.1, Flags: 0x1043, Network: 192.168.0/24
Debu: Found config for eth0
Debu: Found config for eth1
Note: adding VIF, Ix 0 Fl 0x0 IP 0xa78a455f eth0, Threshold: 1, Ratelimit: 0
Debu:         Network for [eth0] : 95.69.136/21
Debu:         Network for [eth0] : 192.168.0.2/32
Note: adding VIF, Ix 1 Fl 0x0 IP 0x0100a8c0 eth1, Threshold: 1, Ratelimit: 0
Debu:         Network for [eth1] : 192.168.0/24
Debu: Got 262144 byte buffer size in 0 iterations
Debu: Joining all-routers group 224.0.0.2 on vif 192.168.0.1
Note: joinMcGroup: 224.0.0.2 on eth1
Debu: SENT Membership query   from 192.168.0.1     to 224.0.0.1
Debu: Sent membership query from 192.168.0.1 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)
Note: RECV Membership query   from 192.168.0.1     to 224.0.0.1
Info: ignoring unknown IGMP message type 11 from 192.168.0.1 to 224.0.0.1
Note: RECV V2 member report   from 192.168.0.1     to 224.0.0.2
Note: The IGMP message was from myself. Ignoring.
Note: RECV V2 member report   from 192.168.0.2     to 239.0.0.1
Info: Mebership report was recieved on the upstream interface. Ignoring.
Note: RECV V2 member report   from 192.168.0.2     to 239.255.255.250
Info: Mebership report was recieved on the upstream interface. Ignoring.
Note: RECV V2 member report   from 192.168.0.1     to 224.0.0.251
Note: The IGMP message was from myself. Ignoring.
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:
-----------------------------------------------------

Note: RECV Leave message      from 192.168.0.2     to 224.0.0.2
Debu: Got leave message from 192.168.0.2 to 239.0.0.1. Starting last member detection.
Segmentation fault

Последние 3 строчки выскакивают при попытке открыть просмотр

Пробовал переиначить файл конфига
#quickleave


phyint eth0 upstream ratelimit 0 threshold 1
    altnet 192.168.0.0/4

phyint eth1 downstream  ratelimit 0  threshold 1
   
Уже не вываливаеться с ошибкой но и не показывает ничего
вот что показывает дебаг
igmpproxy, Version 0.1 beta2, Build 100210
Copyright 2005 by Johnny Egeland <johnny@rlo.org>
Distributed under the GNU GENERAL PUBLIC LICENSE, Version 2 - check GPL.txt

Debu: Searching for config file at '/etc/igmpproxy.conf'
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface eth0.
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 192.168.0.0/4.
Debu: Config: IF: Altnet: Parsed altnet to 192/4.
Debu: IF name : eth0
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 1
Debu: Allowednet ptr : 1f782a0
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface eth1.
Debu: Config: IF: Got downstream token.
Debu: Config: IF: Got ratelimit token '0'.
Debu: Config: IF: Got threshold token '1'.
Debu: IF name : eth1
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 2
Debu: Allowednet ptr : 0
Debu: Physical Index value of IF 'lo' is 1
Debu: buildIfVc: Interface lo Addr: 127.0.0.1, Flags: 0x0049, Network: 127/8
Debu: Physical Index value of IF 'eth0' is 2
Debu: buildIfVc: Interface eth0 Addr: 95.69.138.167, Flags: 0x1043, Network: 95.69.136/21
Debu: Physical Index value of IF 'eth1' is 3
Debu: buildIfVc: Interface eth1 Addr: 192.168.0.1, Flags: 0x1043, Network: 192.168.0/24
Debu: Found config for eth0
Debu: Found config for eth1
Note: adding VIF, Ix 0 Fl 0x0 IP 0xa78a455f eth0, Threshold: 1, Ratelimit: 0
Debu:         Network for [eth0] : 95.69.136/21
Debu:         Network for [eth0] : 192/4
Note: adding VIF, Ix 1 Fl 0x0 IP 0x0100a8c0 eth1, Threshold: 1, Ratelimit: 0
Debu:         Network for [eth1] : 192.168.0/24
Debu: Got 262144 byte buffer size in 0 iterations
Debu: Joining all-routers group 224.0.0.2 on vif 192.168.0.1
Note: joinMcGroup: 224.0.0.2 on eth1
Debu: SENT Membership query   from 192.168.0.1     to 224.0.0.1
Debu: Sent membership query from 192.168.0.1 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)
Note: RECV Membership query   from 192.168.0.1     to 224.0.0.1
Info: ignoring unknown IGMP message type 11 from 192.168.0.1 to 224.0.0.1
Note: RECV V2 member report   from 192.168.0.1     to 224.0.0.2
Note: The IGMP message was from myself. Ignoring.
Note: RECV V2 member report   from 192.168.0.1     to 224.0.0.251
Note: The IGMP message was from myself. Ignoring.
Note: RECV V2 member report   from 192.168.0.2     to 239.255.255.250
Debu: Should insert group 239.255.255.250 (from: 192.168.0.2) to route table. Vif Ix : 1
Debu: No existing route for 239.255.255.250. Create new.
Debu: No routes in table. Insert at beginning.
Info: Inserted route table entry for 239.255.255.250 on VIF #1
Debu: Joining group 239.255.255.250 upstream on IF address 95.69.138.167
Note: joinMcGroup: 239.255.255.250 on eth0
Debu:
Current routing table (Insert Route);
-----------------------------------------------------

Debu: #0: Src: 0.0.0.0, Dst: 239.255.255.250, Age:2, St: I, OutVifs: 0x00000002
Debu:
-----------------------------------------------------

Note: RECV V2 member report   from 95.69.138.167   to 239.255.255.250
Note: The IGMP message was from myself. Ignoring.
Note: Route activation request from 95.69.138.167 for 239.255.255.250 is from myself. Ignoring.
Debu: About to call timeout 1 (#0)
Debu: Aging routes in table.
Debu:
Current routing table (Age active routes);
-----------------------------------------------------

Debu: #0: Src: 0.0.0.0, Dst: 239.255.255.250, Age:1, St: I, OutVifs: 0x00000002
Debu:
-----------------------------------------------------

Note: RECV V2 member report   from 95.69.138.167   to 239.255.255.250
Note: The IGMP message was from myself. Ignoring.
Note: RECV V2 member report   from 95.69.138.167   to 239.255.255.250
Note: The IGMP message was from myself. Ignoring.
Debu: About to call timeout 2 (#0)
Debu: SENT Membership query   from 192.168.0.1     to 224.0.0.1
Debu: Sent membership query from 192.168.0.1 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)
Note: RECV Membership query   from 192.168.0.1     to 224.0.0.1
Info: ignoring unknown IGMP message type 11 from 192.168.0.1 to 224.0.0.1
Note: RECV V2 member report   from 192.168.0.1     to 224.0.0.2
Note: The IGMP message was from myself. Ignoring.
Note: RECV V2 member report   from 192.168.0.1     to 224.0.0.251
Note: The IGMP message was from myself. Ignoring.


Помогите разобраться. Заранее благодарен.

 

Страница сгенерирована за 0.016 секунд. Запросов: 19.