Project

General

Profile

TeliaIPTV » History » Version 14

matwad -, 2010-03-12 02:14

1 1 matwad -
= Tvheadend with Telia IPTV =
2
3 12 matwad -
This page will describe how to configure Tvheadend to receive multicast TV streams via your Telia broadband connection, note that you must be subscribed to the TV service or else the service is not provisioned to your customer port.
4 1 matwad -
5
TODO: Not using Telia switch, VLAN ID 825?
6
7
== Tvheadend ==
8
9
TODO:  Add groups 239.16.16.1-255, link to file with channel names etc
10
11 8 matwad -
== Ubuntu and Debian ==
12 6 matwad -
13
Example configuration for {{{/etc/network/interfaces}}}
14
{{{
15
iface eth1 inet dhcp
16
        vendor "TeliaSonera_VIP1910-9"
17 10 matwad -
        post-up echo 2 > /proc/sys/net/ipv4/conf/eth1/force_igmp_version
18 6 matwad -
        # rp_filter change is only needed if you have multiple network interfaces
19
        # and the default route is not routed out on the multicast interface
20
        post-up echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
21
        post-up echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter
22
}}}
23
24 7 matwad -
== DHCP ==
25 6 matwad -
26 8 matwad -
The vendor class identifier must be change, a known working identifier is "!TeliaSonera_VIP1910-9"
27 6 matwad -
28 12 matwad -
For dhclient this configuration line changes the vendor class
29 6 matwad -
{{{
30
vendor-class-identifier "TeliaSonera_VIP1910-9";
31 9 matwad -
}}}
32
33
== IGMP ==
34
35 11 matwad -
Telia seams to only support IGMP version 2 and default Linux tries to use version 3 with some fallback heuristics that seams to not work that well with Telia. You can force IGMP version 2 by changing the {{{force_igmp_version}}} file in the proc filesystem
36 9 matwad -
{{{
37 14 matwad -
echo 2 > /proc/sys/net/ipv4/conf/eth1/force_igmp_version
38 6 matwad -
}}}
39
40 1 matwad -
== Setup with multiple network interfaces ==
41 5 matwad -
42 11 matwad -
If the default route is not routed out on the interface used to receive the multicast stream you must disable [http://www.wlug.org.nz/ReversePathFiltering RPF] or add a route to the source IP used in the received stream otherwise the packets will be dropped by the kernel because of RPF and will not be passed on to Tvheadend.
43 1 matwad -
44 6 matwad -
You can disable RPF in Linux by changing the {{{rp_filter}}} file in the proc filesystem
45 1 matwad -
{{{
46 13 matwad -
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
47
echo 0 > /proc/sys/net/ipv4/conf/$INTERFACE/rp_filter
48 1 matwad -
}}}
49 6 matwad -
It is imported to change both of them, if {{{all/rp_filter}}} is 1 the interface specific configuration is ignored
50 1 matwad -
51 6 matwad -
If you instead want to have RPF enabled you can add a route to the source of the multicast stream
52 1 matwad -
{{{
53
route add -host $STREAM_SOURCE_IP gw $INTERFACE_GW dev $INTERFACE
54
}}}