What's new

IPTV Configuration through scripts

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Pulsus

New Around Here
Hello all,

I am trying to get rid of my ISP modem/router (optical fiber network). I do have internet and TV and receive it separated in two Vlans.

To do this I am using a GPON modem and an Asus RT-AC68U with the latest Merlin Firmware. I did a lot of research before asking here and get almost everything to work, the only point is that the TV signal does not stay for longer than 10 seconds (if I change channels the signal is back for 10 seconds and falls again).

I tryied to cover all through several scripts but I don't know if I did it right, below the commands to cover it all(in red):

1-
IGMP Source – Enable
IGMP Proxy – Enable

@igmpproxy.conf
phyint vlan20 upstream ratelimit 0 threshold 1
altnet 0.0.0.0/0

@services-start
snooper -s vlan20


It also requires No Multicast VLAN Filter, which I used the following.
@nat-start
/bin/echo 0 > /proc/sys/net/ipv4/conf/vlan20/rp_filter

2 - NAT – Enable
@nat-start
iptables -t nat -I POSTROUTING -o vlan20 -j MASQUERADE

It also asks to Enable Fullcone NAT – I can’t find how to do that.

3 - Firewall – Disable
@firewall-start
I can't find the proper command to disable the firewall for vlan20 only, so I have opened all ports related to IPTV services.

4 - IPV6 - Disable
@wan-event
echo 1 > /proc/sys/net/ipv6/conf/vlan20/disable_ipv6

I really don’t know if all the commands are properly set and if this is fine with the last Merlin FW, furthermore I can’t find the proper commands to check it, if anyone can help me to clarify that I would really appreciate.

Thanks in advance.

Best regards.
 
Hello all again,

I dig some more and find out that the problem for the IPTV to not be working is that the igmp proxy is not working, I believe that I did the proper configuration to have it working but looks like it is not. Below the codes I used:

@services-start
Code:
#!/bin/sh

robocfg vlan 20 ports "0t 5t"

vconfig add eth0 20

set_egress_map vlan20 3 3
set_ingress_map vlan20 3 3

ifconfig vlan20 10.161.138.142 netmask 255.255.128.0 up

snooper -s vlan20

ip route add 10.161.128.0/17 via 10.161.128.1 dev vlan20
ip route add 172.28.0.0/14 via 10.161.128.1 dev vlan20
ip route add 177.16.30.0/23 via 10.161.128.1 dev vlan20
ip route add 200.161.71.40/30 via 10.161.128.1 dev vlan20
ip route add 200.161.71.46/31 via 10.161.128.1 dev vlan20
ip route add 200.161.71.48/31 via 10.161.128.1 dev vlan20
ip route add 201.0.52.0/23 via 10.161.128.1 dev vlan20

sleep 30

/usr/sbin/igmpproxy /jffs/configs/igmpproxy.conf

The last line call the igmpproxy config file with the code below:

@igmpproxy.comf
Code:
quickleave

phyint vlan20 upstream ratelimit 0 threshold 1
    altnet 10.161.128.0/17;
    altnet 172.28.0.0/14;
    altnet 177.16.30.0/23;
    altnet 200.161.71.40/30;
    altnet 200.161.71.46/31;
    altnet 200.161.71.48/31;
    altnet 201.0.52.0/23;

phyint eth0 downstream ratelimit 0 threshold 1

phyint br0 downstream ratelimit 0 threshold 1

phyint ppp0 disabled

phyint vlan1 disabled

phyint vlan10 disabled

phyint eth1 disabled

phyint eth2 disabled

phyint lo disabled

So I tried to check the using the following command, there is no return at all.

ip mroute show

Also I tried the following to load the igmpproxy configuration file again, and got the followin error:
igmpproxy -d -v igmpproxy.conf
There must be at least 2 Vif's where one is upstream.

I still digging but, if anyone knows how can I check if igmpproxy is working and how to surpass the error mentioned above it will help me a lot.

Thanks
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top