Настройка IPfire и igmpproxy-IPTV

Решил поделится настройкой igmpproxy для IPFire для провайдера Новотелеком г. Новосибирскipfire-iptv
file /etc/IGMPPROXY.CONF
------------------------------------------------------------------
quickleave

phyint red0 upstream ratelimit 0 threshold 1

altnet 178.0.0.0/8

phyint green0 downstream ratelimit 0 threshold 1


phyint blue0 disabled

-------------------------------------------------------------------
File: /etc/sysconfig/firewall.local
-------------------------------------------------------------------
#!/bin/sh

# Used for private firewall rules

# See how we were called.

case "$1" in

start)

## add your 'start' rules here

/sbin/iptables -I IPTVINPUT -i red0 -d 224.0.0.0/4 -j ACCEPT

/sbin/iptables -I IPTVFORWARD -i red0 -d 224.0.0.0/4 -j ACCEPT

# end for igmpproxy

;;

stop)

## add your 'stop' rules here

/sbin/iptables -D IPTVINPUT -i red0 -d 224.0.0.0/4 -j ACCEPT

/sbin/iptables -D IPTVFORWARD -i red0 -d 224.0.0.0/4 -j ACCEPT

# end for igmpproxy

;;

reload)

$0 stop

$0 start

## add our 'reload' rules here

;;

*)

echo "Usage: $0 {start|stop|reload}"

;;

esac

-------------------------------------------------------------------
File: /etc/sysconfig/rc.local
-------------------------------------------------------------------

#!/bin/sh

###############################################################################

# #

# IPFire.org - A linux based firewall #

# Copyright © 2007 Michael Tremer & Christian Schmidt #

# #

# This program is free software: you can redistribute it and/or modify #

# it under the terms of the GNU General Public License as published by #

# the Free Software Foundation, either version 3 of the License, or #

# (at your option) any later version. #

# #

# This program is distributed in the hope that it will be useful, #

# but WITHOUT ANY WARRANTY; without even the implied warranty of #

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #

# GNU General Public License for more details. #

# #

# You should have received a copy of the GNU General Public License #

# along with this program. If not, see <http://www.gnu.org/licenses/>. #

# #

###############################################################################

# Used for private calls after boot #

###############################################################################


# power button shutdown

if grep -q '^button' /proc/modules ; then

( head -1 /proc/acpi/event | grep -q 'button/power PWRF' && poweroff ) &

fi


/usr/local/sbin/igmpproxy /etc/igmpproxy.conf &



Комментарии ()

    Авторизация через сервис Loginza: Yandex Google Вконтакте Mail.ru Twitter Loginza MyOpenID OpenID WebMoney