Skip to main content

Thread: IPTV & UBUNTU settings


hello!

use ubuntu on home server. isp provides ip-tv. can see tv channels on windows xp & mac os if connect laptops directly isp (with out lan). can not see tv channels on ubuntu, connected isp.

please me.
here have:

# uname -a
code:
linux mice 3.2.0-29-generic #46-ubuntu smp fri jul 27 17:03:23 utc 2012 x86_64 x86_64 x86_64 gnu/linux
# grep config_ip_multicast=y /usr/src/linux-headers-3.2.0-29-generic/.config
code:
config_ip_multicast=y
# ifconfig
code:
br0       link encap:ethernet  hwaddr 1c:7e:e5:fb:6a:a3              inet addr:192.168.0.1  bcast:192.168.0.255  mask:255.255.255.0            broadcast running multicast  mtu:1500  metric:1            rx packets:9626977 errors:0 dropped:0 overruns:0 frame:0            tx packets:10035476 errors:0 dropped:0 overruns:0 carrier:0            collisions:0 txqueuelen:0             rx bytes:5958798391 (5.9 gb)  tx bytes:12094860711 (12.0 gb)    eth0      link encap:ethernet  hwaddr 54:04:a6:94:fa:3f              broadcast running multicast  mtu:1500  metric:1            rx packets:9617446 errors:0 dropped:0 overruns:0 frame:0            tx packets:10023485 errors:0 dropped:0 overruns:0 carrier:0            collisions:0 txqueuelen:1000             rx bytes:6092336068 (6.0 gb)  tx bytes:12083582094 (12.0 gb)            interrupt:54 base address:0x8000     eth1      link encap:ethernet  hwaddr 00:02:44:37:44:7b              inet addr:1.1.1.1  bcast:1.1.1.255  mask:255.255.255.0            broadcast running multicast  mtu:1500  metric:1            rx packets:606005 errors:0 dropped:0 overruns:0 frame:0            tx packets:552897 errors:0 dropped:0 overruns:5 carrier:0            collisions:0 txqueuelen:1000             rx bytes:510486302 (510.4 mb)  tx bytes:106214423 (106.2 mb)            interrupt:16 base address:0xd000     lo        link encap:local loopback              inet addr:127.0.0.1  mask:255.0.0.0            loopback running  mtu:16436  metric:1            rx packets:81078 errors:0 dropped:0 overruns:0 frame:0            tx packets:81078 errors:0 dropped:0 overruns:0 carrier:0            collisions:0 txqueuelen:0             rx bytes:7690054 (7.6 mb)  tx bytes:7690054 (7.6 mb)    mon.wlan1 link encap:unspec  hwaddr 1c-7e-e5-fb-6a-a3-00-00-00-00-00-00-00-00-00-00              broadcast running multicast  mtu:1500  metric:1            rx packets:2913 errors:0 dropped:0 overruns:0 frame:0            tx packets:0 errors:0 dropped:0 overruns:0 carrier:0            collisions:0 txqueuelen:1000             rx bytes:297443 (297.4 kb)  tx bytes:0 (0.0 b)    ppp1      link encap:point-to-point protocol              inet addr:95.72.5.2  p-t-p:77.51.191.254  mask:255.255.255.255            pointopoint running noarp multicast  mtu:1492  metric:1            rx packets:601728 errors:0 dropped:0 overruns:0 frame:0            tx packets:550777 errors:0 dropped:0 overruns:0 carrier:0            collisions:0 txqueuelen:3             rx bytes:496979305 (496.9 mb)  tx bytes:93969961 (93.9 mb)    wlan1     link encap:ethernet  hwaddr 1c:7e:e5:fb:6a:a3              broadcast running multicast  mtu:1500  metric:1            rx packets:9578 errors:0 dropped:0 overruns:0 frame:0            tx packets:20590 errors:0 dropped:0 overruns:0 carrier:0            collisions:0 txqueuelen:1000             rx bytes:1316880 (1.3 mb)  tx bytes:12370793 (12.3 mb)
# route -n
code:
kernel ip routing table  destination     gateway         genmask         flags metric ref    use iface  0.0.0.0         0.0.0.0         0.0.0.0         u     0      0        0 ppp1  1.1.1.0         0.0.0.0         255.255.255.0   u     0      0        0 eth1  10.0.0.0        0.0.0.0         255.0.0.0       u     0      0        0 eth1  77.51.191.254   0.0.0.0         255.255.255.255 uh    0      0        0 ppp1  169.254.0.0     0.0.0.0         255.255.0.0     u     1000   0        0 eth1  192.168.0.0     0.0.0.0         255.255.255.0   u     0      0        0 br0  224.0.0.0       0.0.0.0         240.0.0.0       u     0      0        0 eth1
# cat /etc/cgi-bin/iptables.rules.sh
code:
#! /bin/sh  #  #######################  # Настройка интерфейсов  #######################     #iptables -a output -j log  # internet (Поменяйте на ваш интернет-интерфейс)  inet_zero="eth1"  inet_interface="ppp1"     # lan (поменяйте на ваш интерфейс сетевого моста)  lan_interface="br0"     # lo (локальный интефейс - петля)  lo_interface="lo"     # Описываем путь до iptables  ipt="/sbin/iptables"     # Очищаем текущие правила (если вдруг есть какие-то правила)     $ipt -f  $ipt -t nat -f  $ipt -t mangle -f     $ipt -x  $ipt -t nat -x  $ipt -t mangle -x     # Задаем политики по умолчанию     $ipt -p input drop  $ipt -p forward drop  $ipt -p output drop     # Создаем цепочку для обработки неправильных пакетов.  # bad_packets     $ipt -n bad_packets     $ipt -a bad_packets -p tcp --tcp-flags syn,ack syn,ack -m state --state new -j reject --reject-with tcp-reset  $ipt -a bad_packets -p tcp ! --syn -m state --state new -j log --log-prefix "new not syn:"  $ipt -a bad_packets -p tcp ! --syn -m state --state new -j drop     # Создаем цепочку для обработки входящих (из интернета) tcp соединений.  # tcp_p  $ipt -n tcp_p     # Чтобы, например, разрешить подключаться к нашему шлюзу из интернета по ssh:  ##ssh="22"  ##ssh_ip_allowed="0/0"  ##$ipt -a tcp_p -p tcp -s $ssh_ip_allowed --dport $ssh -j accept    #i2p  #i2p="8887"  #$ipt -a tcp_p -p tcp -s $inet_interface --dport $i2p -j accept  #$ipt -a udp_p -p udp -s $inet_interface --dport $i2p -j accept     $ipt -a tcp_p -p tcp -s 0/0 -j drop     # Создаем цепочку для обработки входящих (из интернета) udp соединений.  # udp_p  $ipt -n udp_p     $ipt -a udp_p -p udp -s 0/0 -j drop     # Создаем цепочку для обработки входящих (из интернета) icmp соединений.  # icmp_p  $ipt -n icmp_p     # Разрешаем "пинговать" наш шлюз из интернета:     $ipt -a icmp_p -p icmp -s 0/0 --icmp-type 8 -j accept  $ipt -a icmp_p -p icmp -s 0/0 --icmp-type 11 -j accept     $ipt -a icmp_p -p icmp -s 0/0 -j drop     # Цепочка input     $ipt -a input -p tcp -j bad_packets     $ipt -a input -p -i $lan_interface -j accept  $ipt -a input -p -i $lo_interface -j accept     $ipt -a input -p -i $inet_interface -m state --state established,related -j accept  $ipt -a input -p tcp -i $inet_interface -j tcp_p  $ipt -a input -p udp -i $inet_interface -j udp_p  $ipt -a input -p icmp -i $inet_interface -j icmp_p     # Цепочка forward     $ipt -a forward -p tcp -j bad_packets     $ipt -a forward -p -i $lan_interface -j accept  $ipt -a forward -p -i $lo_interface -j accept  $ipt -a forward -p -i $inet_interface -m state \  --state established,related -j accept     # Цепочка output     $ipt -a output -p tcp -j bad_packets     $ipt -a output -p -o $inet_interface -j accept  $ipt -a output -p -o $lan_interface -j accept  $ipt -a output -p -o $lo_interface -j accept     # Цепочка postrouting (таблица nat)     $ipt -t nat -a postrouting -o $lan_interface -j masquerade  $ipt -t nat -a postrouting -o $inet_interface -j masquerade       # херь  #$ip -i input -p udp --dport 68 -j accept    #iptv  /sbin/modprobe ipt_ttl  $ipt -a forward -p igmp -i $inet_zero -o $lan_interface -j accept  $ipt -i input -i $inet_zero -s 0.0.0.0/0 -d 224.0.0.0/4 -p udp -j accept  $ipt -i input -i $inet_zero -s 0.0.0.0/0 -d 224.0.0.0/4 -p igmp -j accept  $ipt -a input -d 224.0.0.0/240.0.0.0 -i $inet_zero -j accept  $ipt -a input -s 224.0.0.0/240.0.0.0 -i $inet_zero -j accept  $ipt -a forward -d 224.0.0.0/240.0.0.0 -j accept  $ipt -a forward -s 224.0.0.0/240.0.0.0 -j accept  $ipt -t mangle -a prerouting -d 224.0.0.0/240.0.0.0 -j ttl --ttl-inc 1  $ipt -t mangle -a output -o $inet_zero -j ttl --ttl-set 64    #$ipt -a forward -p igmp -i $inet_interface -o $lan_interface -j accept  #$ipt -a input -p igmp -j accept    # pppoe  $ipt -i forward -p tcp --tcp-flags syn,rst syn -j tcpmss --clamp-mss-to-pmtu     echo "1" > /proc/sys/net/ipv4/ip_forward     echo "firewall started"     exit 0
# cat /etc/igmpproxy.conf
code:
########################################################  #  #   example configuration file igmpproxy  #   --------------------------------------------  #  #   configuration file must define 1 upstream  #   interface, , 1 or more downstream interfaces.  #  #   if multicast traffic originates outside  #   upstream subnet, "altnet" option can  #   used in order define legal multicast sources.  #   (se example...)  #  #   "quickleave" should used avoid saturation  #   of upstream link. option should  #   used if it's absolutely nessecary  #   accurately imitate 1 client.  #  ########################################################    ##------------------------------------------------------  ## enable quickleave mode (sends leave instantly)  ##------------------------------------------------------  #quickleave      ##------------------------------------------------------  ## configuration eth2 (upstream interface)  ##------------------------------------------------------  phyint eth1 upstream  ratelimit 0  threshold 1  	altnet 1.1.1.1/32  	altnet 224.0.0.0/8  	altnet 233.0.0.0/8  	altnet 239.0.0.0/8  	altnet 10.0.0.0/8  	altnet 10.226.96.0/24  #	altnet 192.168.0.0/24            altnet 77.51.53.0/8           altnet 10.0.0.0/8          altnet 239.255.255.0/24          altnet 172.16.16.0/24          altnet 78.107.196.0/22  	altnet 10.226.96.0/24      ##------------------------------------------------------  ## configuration eth0 (downstream interface)  ##------------------------------------------------------  phyint br0 downstream ratelimit 0 threshold 1  	altnet 192.168.0.0/24  ##------------------------------------------------------  ## configuration lo (disabled interface)  ##------------------------------------------------------  phyint lo disabled  phyint ppp1 disabled  phyint wlan1 disabled
media play list:
opentv.m3u
code:
#extm3u  #extinf:0,Первый канал  udp://@233.3.2.1:5000  #extinf:0,Россия 1  udp://@233.3.2.2:5000  #extinf:0,ТВ Центр  udp://@233.3.2.6:5000  #extinf:0,НТВ  udp://@233.3.2.4:5000  #extinf:0,Россия К  udp://@233.3.2.3:5000  #extinf:0,Звезда  udp://@233.3.2.12:5000  #extinf:0,2х2  udp://@233.3.2.14:5000  #extinf:0,mtv  udp://@233.3.2.15:5000  #extinf:0,Петербург-5 канал  udp://@233.3.2.5:5000  #extinf:0,ТВ3  udp://@233.3.2.11:5000  #extinf:0,Перец  udp://@233.3.2.9:5000  #extinf:0,СТС  udp://@233.3.2.16:5000  #extinf:0,Россия 2  udp://@233.3.1.135:5000  #extinf:0,Россия 24  udp://@233.3.1.137:5000  #extinf:0,Карусель  udp://@233.3.1.136:5000  #extinf:0,Радиостанция Маяк  udp://@239.255.4.4:1234  #extinf:0,Радио Вести fm  udp://@239.255.4.7:1234  #extinf:0,Радио Эхо Москвы  udp://@239.255.4.15:1234  #extinf:0,Авто радио  udp://@239.255.4.12:1234  #extinf:0,Радио Юмор fm  udp://@239.255.4.14:1234  #extinf:0,Радио Энергия  udp://@239.255.4.11:1234  #extinf:0,Радио России  udp://@239.255.4.6:1234
where mistake? wrong? thank's help.

there no information iptv. it's software may not compatible. instance netflix web access works on windows computer because silverlight , silverlight drm on windows.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] IPTV & UBUNTU settings


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues