Configurar Tomato con Movistar Internet y TV (España)

Vamos a configurar Movistar Internet y TV en tu router con Tomato firmware.
Todo lo que hagas a partir de ahora es bajo tu responsabilidad. No me responsabilizo de nada que pueda ocurrir por uso o mal uso de la información más abajo.
Enlaces para descargar firmware tomato más abajo.






Configura las siguientes secciones de tu router:

Basic Network
pppoe adslppp@telefonicanetpa adslppp

Advanced Settings/VLAN

  • 6 6 wan tagged WAN
  • 2 2 wan tagged
  • 3 3 wan tagged

Reinicia para ver  que tengas internet. Continua cuando tengas internet.


Advanced Settings/Conntrack/Netfilter/
enable RTSP

Administration/Scripts/Init

#No need to change overclock, search in google for more info on your router
#nvram set clkfreq=1000,800
# Config igmpproxy
echo "quickleave
phyint vlan2 upstream ratelimit 0 threshold 1
altnet 10.0.0.0/8
altnet 172.26.0.0/16
altnet 172.23.0.0/16
phyint br0 downstream ratelimit 0 threshold 1
phyint br1 disabled
phyint eth0 disabled
phyint eth1 disabled
phyint eth2 disabled
phyint ppp0 disabled
phyint vlan1 disabled
phyint vlan3 disabled
phyint vlan6 disabled
phyint lo disabled
" >  /tmp/etc/vlan2.conf
echo "/tmp/igmpproxy /etc/vlan2.conf
# Udpxy
udpxy -a br0 -p 4022 -m vlan2 -M 120 -B 2048K -c 5 -S
#/opt/etc/init.d/S94xupnpd start
"> /tmp/script_iptv.sh
chmod 500  /tmp/script_iptv.sh


Administration/Scripts/ Firewall
# Habilitar NAT en firewall (Voz IP)
#iptables -t nat -A POSTROUTING -o vlan3 -j MASQUERADE
# Habilitar NAT en firewall (Movistar TV)
iptables -t nat -A POSTROUTING -o vlan2 -j MASQUERADE
# Habilitar firewall
iptables -I INPUT 2 -p igmp -i vlan2 -d 224.0.0.0/4 -j ACCEPT
iptables -I INPUT 3 -p udp -m udp -i vlan2 -d 224.0.0.0/4 -j ACCEPT
iptables -I FORWARD 2 -p igmp -i vlan2 -d 224.0.0.0/4 -j ACCEPT
iptables -I FORWARD 3 -p udp -i vlan2 -m udp -d 224.0.0.0/4 -j ACCEPT
#put it back if deco doesnt' work
iptables -I FORWARD 4 -o vlan2 -j ACCEPT
# Deshabilitar filtro de IGMP en vlan2
/bin/echo 0 > /proc/sys/net/ipv4/conf/vlan2/rp_filter
/bin/echo 0 > /proc/sys/net/ipv4/conf/br0/rp_filter
# Fin
/tmp/script_iptv.sh
#extraconfig on usb disk
#mnt/xxxxx/scripts/ifirewall

Necesitas saber estas ip y netmask, para saber como aquí. Modifica el texto de abajo con los valores que tengas de las siguientes variables..
MOVISTAR_TV_IP
MOVISTAR_TV_MASK
MOVISTAR_TV_GW

Administration/Scripts/ Wan up

sleep 2
MOVISTAR_TV_IP=10.124.xxx.xxx
MOVISTAR_TV_MASK=255.192.x.x
MOVISTAR_TV_GW=10.64.x.x
# Asigar IP a VLAN del router
ifconfig vlan2 $MOVISTAR_TV_IP netmask $MOVISTAR_TV_MASK up
# Añadir rutas de Movistar+
ip route add to 172.26.0.0/16 via $MOVISTAR_TV_GW
ip route add to 172.23.0.0/16 via $MOVISTAR_TV_GW
/tmp/script_iptv.sh
############# end firewall

Reinicia router y después el decodificador tv, movistar tv debería funcionar.

Enlaces de interés:
FreshTomato-ARM
Tomato shibby (old - not updated)


Autor: Club4ever

Comentarios

Publicar un comentario

Entradas populares de este blog

Awesome 3.5 con conky (sin widgets lentos de vicious)

Quitar barra de navegación blogger (navbar)