Hello Everyone,
I have been reading on and off on this forum and been trying various things and had a little luck on gettings things done. I am still learning this whole VLAN proces.
The goal:
Want to use the AC88U as main router and not use the one supplied by the ISP with this setup:
NTU -> AC88U - -> VLANx1 -> Internet (required VLAN 34 from ISP)
\ -> VLANx2 -> IPTV (SparqL) (required VLAN 4 from the ISP, additional static route needs to be supplied and igmp proxy/snooping needs to be setup for this VLAN)
Want the IPTV traffic seperated from home network traffic so all those multicast streams are in their own LAN. Prefer to use 2 dedicated ports for IPTV and the remaining 6 ports for regular networking.
What is done so far:
So far I have managed a routed IPTV setup to work (not 100%) but to get this to work I had to downgrade to a lower firmware 380.57 (it did not work on 380.66-6, 100% CPU 2 usage when set up, I think it has something to do with the disabled multicast snooping on the LAN bridge with the latest firmware but I am not sure)
To get this to work I (I followed a tutorial for a routed configuration) have enabled the Jffs partions and placed:
1 igmpproxy.conf in the configs directory
1 wan-start in the scripts directory (route is not the default busybox route but via optware installed net-tools route)
1 firewall-start in the scripts directory
1 services-start in the scripts directory
1 vlan4-script (triggerd by wan.start) in the scripts directory
All scripts in the scripts directory are made executable. This works semi OK, internet works fine but after watching around 15 min of TV, the screen freezes..switching the channel and back again makes everything work again...(This doesn't happen with the router from the ISP).
This setup makes it so that all lan ports can be used to connect IPTV but also makes those multicast streams go through the entire network (until the igmp snooping kicks in)
So I though of having 2 ports dedicated for IPTV and the remaing for Internet. So I went back to factory settings...cleared JFFS partition and wanted to start over using this script for inspiration:
But for some reason I am unable to do:
#strip LAN/Port 3 and 4 from vlan1
/usr/sbin/robocfg vlan 1 ports "2 3 5 7 8t" (0 is port 4 and 1 is port 3)
When using this command manually, the CLI just freezes and nothing happens...eventually the connection is lost and I have to restart the router....don't know what's wrong.
Could anyone assist me to get this work, help is really much appriciated!
Thanks in advance
Xil
I have been reading on and off on this forum and been trying various things and had a little luck on gettings things done. I am still learning this whole VLAN proces.
The goal:
Want to use the AC88U as main router and not use the one supplied by the ISP with this setup:
NTU -> AC88U - -> VLANx1 -> Internet (required VLAN 34 from ISP)
\ -> VLANx2 -> IPTV (SparqL) (required VLAN 4 from the ISP, additional static route needs to be supplied and igmp proxy/snooping needs to be setup for this VLAN)
Want the IPTV traffic seperated from home network traffic so all those multicast streams are in their own LAN. Prefer to use 2 dedicated ports for IPTV and the remaining 6 ports for regular networking.
What is done so far:
So far I have managed a routed IPTV setup to work (not 100%) but to get this to work I had to downgrade to a lower firmware 380.57 (it did not work on 380.66-6, 100% CPU 2 usage when set up, I think it has something to do with the disabled multicast snooping on the LAN bridge with the latest firmware but I am not sure)
To get this to work I (I followed a tutorial for a routed configuration) have enabled the Jffs partions and placed:
1 igmpproxy.conf in the configs directory
Code:
quickleave
phyint vlan4 upstream ratelimit 0 threshold 1
altnet 0.0.0.0/0
phyint br0 downstream ratelimit 0 threshold 1
phyint lo disabled
phyint eth0 disabled
phyint eth1 disabled
phyint eth2 disabled
phyint vlan1 disabled
phyint vlan34 disabled
phyint wl0.1 disabled
phyint wl0.2 disabled
phyint tap21 disabled
Code:
#!/bin/sh
#iptv settings
/usr/sbin/robocfg vlan 4 ports "4t 8t"
# Add VLAN4 as a physical interface
/sbin/vconfig add eth0 4
# set vlan priority
vconfig set_egress_map vlan4 5 5
vconfig set_ingress_map vlan4 5 5
# set static mac
ifconfig vlan4 hw ether XX:XX:XX:XX:XX:XX
#set interface up
ifconfig vlan4 multicast up
# Request an IP-address and setup static routes
udhcpc -i vlan4 -O msstaticroutes -O staticroutes -s /jffs/scripts/vlan4.script -p var/run/vlan4.pid -b -O33 -O249
#set return check vlan4 off
echo 0 > /proc/sys/net/ipv4/conf/vlan4/rp_filter
#static route to media portal
/opt/sbin/route add -net 185.6.48.0/26 gw 10.10.56.1
Code:
#!/bin/sh
#Enable NAT for vlan4
iptables -t nat -A POSTROUTING -o vlan4 -j MASQUERADE
Code:
#!/bin/sh
# Restart IGMP proxy
sleep 60
/usr/bin/killall igmpproxy
sleep 1
/usr/sbin/igmpproxy /jffs/configs/igmpproxy.conf
Code:
#!/bin/sh
[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
[ -n "$subnet" ] && NETMASK="netmask $subnet"
set_classless_routes() {
local max=10
local type
while [ -n "$1" -a -n "$2" -a $max -gt 0 ]; do
[ ${1##*/} -eq 32 ] && type=host || type=net
echo "udhcpc: adding route for $type $1 via $2"
/sbin/route add -$type "$1" gw "$2" dev "$interface"
max=$(($max-1))
shift 2
done
}
case "$1" in
deconfig)
/sbin/ifconfig $interface 0.0.0.0
;;
leasefail|nak)
echo "Failed to obtain lease..."
;;
renew|bound)
/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
[ -n "$staticroutes" ] && set_classless_routes $staticroutes
[ -n "$msstaticroutes" ] && set_classless_routes $msstaticroutes
;;
esac
exit 0
This setup makes it so that all lan ports can be used to connect IPTV but also makes those multicast streams go through the entire network (until the igmp snooping kicks in)
So I though of having 2 ports dedicated for IPTV and the remaing for Internet. So I went back to factory settings...cleared JFFS partition and wanted to start over using this script for inspiration:
Code:
#vlan10 only for sparql box
#strip port 1 from vlan1
/usr/sbin/robocfg vlan 1 ports "2 3 4 8t"
#create vlan10 and put port 1 in
/usr/sbin/robocfg vlan 10 ports "1 8t"
/sbin/vconfig add eth0 10
#bring up vlan10 interface
ifconfig vlan10 multicast up
#create br1 bridge and add vlan10
/usr/sbin/brctl addbr br1
/usr/sbin/brctl addif br1 vlan10
#set ip address on br1 interface
ifconfig br1 192.168.3.1 netmask 255.255.255.0
ifconfig br1 multicast up
#iptables to allow traffic to br1 and not to br0
/usr/sbin/iptables -I FORWARD -i br1 -j ACCEPT
/usr/sbin/iptables -I INPUT -i br1 -j ACCEPT
/usr/sbin/ebtables -t broute -I BROUTING -p ipv4 -i br1 -j DROP
/usr/sbin/ebtables -t broute -I BROUTING -p ipv6 -i br1 -j DROP
/usr/sbin/ebtables -t broute -I BROUTING -p arp -i br1 -j DROP
/usr/sbin/iptables -I FORWARD -i br1 -j ACCEPT
/usr/sbin/iptables -I INPUT -i br1 -j ACCEPT
/usr/sbin/iptables -I FORWARD -i br1 -d 192.168.36.1/24 -j DROP
/usr/sbin/iptables -I INPUT -i br1 -d 192.168.36.1/24 -j DROP
#strip LAN/Port 3 and 4 from vlan1
/usr/sbin/robocfg vlan 1 ports "2 3 5 7 8t" (0 is port 4 and 1 is port 3)
When using this command manually, the CLI just freezes and nothing happens...eventually the connection is lost and I have to restart the router....don't know what's wrong.
Could anyone assist me to get this work, help is really much appriciated!
Thanks in advance
Xil