Let's assume the router is powered by DD-WRT with the address 192.168.1.1.
1. Connect to router, e.g. telnet 192.168.1.1.
2. Download udpxy for Atheros processors (see "CPU Model" on "Status > Router"):
1. Connect to router, e.g. telnet 192.168.1.1.
2. Download udpxy for Atheros processors (see "CPU Model" on "Status > Router"):
$ wget http://xkr446.hotbox.ru/udpxy -P /tmp
$ chmod +x /tmp/udpxy
3. Run udpxy:
$ /tmp/udpxy -p 82 -M 30 -B 1Mb -a `nvram get lan_ipaddr`
4. Now check udpxy status on http://192.168.1.1:82/status.
5. Create rules:
5. Create rules:
$ iptables -I INPUT -i vlan2 -p udp -d 238.0.0.0/8 --dport 1234 -j ACCEPT
$ iptables -D INPUT -p igmp -j DROP
where 238.0.0.0/8 and 1234 -- IPTV streaming subnet and port respectively.
6. Restart router.
6. Restart router.
No comments:
Post a Comment