[Sysadmins] Как пробросить IPTV?
alexmexp на rambler.ru
alexmexp на rambler.ru
Пн Май 11 18:21:25 MSD 2009
Привет!
Провайдер крутит IPTV, как пробросить его в локалку если на сервере (шлюз между локалкой и провайдером) стоит AltLinux Office Server 4.0,
eth0-локалка
eth1-провайдер с 10.8.25.212
на eth1 поднят ppp0-рррое (для тв вроде не обязателен)
откомпилировал igmpproxy и установил
[code]
make
make install[/code]
/etc/igmpproxy.conf
[code]
##------------------------------------------------------
## Enable Quickleave mode (Sends Leave instantly)
##------------------------------------------------------
quickleave
##------------------------------------------------------
## Configuration for eth1 (Upstream Interface)
##------------------------------------------------------
phyint eth1 upstream ratelimit 0 threshold 1
altnet 10.8.25.0/24
##------------------------------------------------------
## Configuration for eth0 (Downstream Interface)
##------------------------------------------------------
phyint eth0 downstream ratelimit 0 threshold 1
##------------------------------------------------------
## Configuration for ppp0 (Disabled Interface)
##------------------------------------------------------
phyint ppp0 disabled
[/code]
iptables
[code]
iptables -I INPUT -d 224.0.0.0/4 -j ACCEPT
iptables -I FORWARD -d 224.0.0.0/4 -j ACCEPT
[/code]
route
[code]
route add -net 224.0.0.0/4 dev eth1
[/code]
[code]
[root на localhost ~]# igmpproxy -d
igmpproxy, Version 0.1 beta2, Build 090502
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 eth1.
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 10.8.25.0/24.
Debu: Config: IF: Altnet: Parsed altnet to 10.8.25/24.
Debu: IF name : eth1
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 1
Debu: Allowednet ptr : 8051250
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface eth0.
Debu: Config: IF: Got downstream token.
Debu: Config: IF: Got ratelimit token '0'.
Debu: Config: IF: Got threshold token '1'.
Debu: IF name : eth0
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 2
Debu: Allowednet ptr : 0
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface ppp0.
Debu: Config: IF: Got disabled token.
Debu: IF name : ppp0
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 0
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: 192.168.1.15, Flags: 0x1043, Network: 192.168.1/24
Debu: Physical Index value of IF 'eth1' is 3
Debu: buildIfVc: Interface eth1 Addr: 10.8.25.212, Flags: 0x1043, Network: 10.8.25/24
Debu: Physical Index value of IF 'ppp0' is 4
Debu: buildIfVc: Interface ppp0 Addr: 79.140.11.3, Flags: 0x10d1, Network: 79.140.11.3/32
Debu: Found config for eth0
Debu: Found config for eth1
Debu: Found config for ppp0
Note: adding VIF, Ix 0 Fl 0x0 IP 0x0f01a8c0 eth0, Threshold: 1, Ratelimit: 0
Debu: Network for [eth0] : 192.168.1/24
Note: adding VIF, Ix 1 Fl 0x0 IP 0xd419080a eth1, Threshold: 1, Ratelimit: 0
Debu: Network for [eth1] : 10.8.25/24
Debu: Network for [eth1] : 10.8.25/24
Note: adding VIF, Ix 2 Fl 0x0 IP 0x030b8c4f ppp0, Threshold: 1, Ratelimit: 0
Debu: Network for [ppp0] : 79.140.11.3/32
Debu: Got 262144 byte buffer size in 0 iterations
Debu: Joining all-routers group 224.0.0.2 on vif 192.168.1.15
Note: joinMcGroup: 224.0.0.2 on eth0
Debu: SENT Membership query from 192.168.1.15 to 224.0.0.1
Debu: Sent membership query from 192.168.1.15 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.1.15 to 224.0.0.1
Info: ignoring unknown IGMP message type 11 from 192.168.1.15 to 224.0.0.1
Note: RECV Membership query from 10.253.0.252 to 235.58.197.17
Info: ignoring unknown IGMP message type 11 from 10.253.0.252 to 235.58.197.17
Note: RECV Membership query from 10.253.0.252 to 235.63.192.22
Info: ignoring unknown IGMP message type 11 from 10.253.0.252 to 235.63.192.22
Note: RECV V2 member report from 192.168.1.15 to 224.0.0.2
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:
-----------------------------------------------------
[/code]
Что я сделал не так или как нужно правильно до настроить?
Тут задавал вопрос http://forum.altlinux.org/index.php/topic,2975.0.html
там может есть что-то полезное, чего тут не написал.
ПС В линуксе Новичок
--
С наилучшими пожеланиями,
Алекс mailto:alexmexp на rambler.ru
Подробная информация о списке рассылки Sysadmins