Witam
Wgralem sobie nowe Tomato Firmware v1.28.9013 MIPSR2--RAF K26 USB VLAN-VPN-NOCAT na moj router RT-N16 ( nie wiem czy to wersja A1 czy B1 bo tam gdzie pisze PINCODE na koncu sa tylko same cyfry. Router kupiony w 2010 roku. ) I wszystko dziala fajnie do momentu jak wprowadze ustawienia w limitowaniu pasm. Wtedy router dostaje jakies awarii i sie zapetla tzn w kolko sie resetuje, jak jakims cudem uda mi sie na niego dostac i wyczyscic nvram to jest ok dziala. Ala ja niestety potrzebuje limitera. Nawet jak dodam stary skrypt co wczesniej mi dzialal bez zastrzezen to jest to samo oto skrypt:
TCA="tc class add dev br0"
TFA="tc filter add dev br0"
TQA="tc qdisc add dev br0"
SFQ="sfq perturb 10"
tc qdisc del dev br0 root
tc qdisc add dev br0 root handle 1: htb
tc class add dev br0 parent 1: classid 1:1 htb rate 33000kbit
TCAU="tc class add dev imq0"
TFAU="tc filter add dev imq0"
TQAU="tc qdisc add dev imq0"
modprobe imq
modprobe ipt_IMQ
modprobe xt_IMQ
ip link set imq0 up
tc qdisc del dev imq0 root
tc qdisc add dev imq0 root handle 1: htb
tc class add dev imq0 parent 1: classid 1:1 htb rate 2300kbit
iptables -t mangle -A PREROUTING -j IMQ --todev 0
$TCA parent 1:1 classid 1:10 htb rate 300kbit ceil 300kbit prio 1
$TQA parent 1:10 handle 10: $SFQ
$TFA parent 1:0 prio 1 protocol ip handle 10 fw flowid 1:10
iptables -t mangle -A POSTROUTING -m iprange --dst-range 192.168.10.19-192.168.10.20 -j MARK --set-mark 10
$TCAU parent 1:1 classid 1:10 htb rate 180kbit ceil 300kbit prio 1
$TQAU parent 1:10 handle 10: $SFQ
$TFAU parent 1:0 prio 1 protocol ip handle 10 fw flowid 1:10
iptables -t mangle -A PREROUTING -m iprange --src-range 192.168.10.19-192.168.10.20 -j MARK --set-mark 10
$TCA parent 1:1 classid 1:11 htb rate 3500kbit ceil 26000kbit prio 3
$TQA parent 1:11 handle 11: $SFQ
$TFA parent 1:0 prio 2 protocol ip handle 11 fw flowid 1:11
iptables -t mangle -A POSTROUTING -m iprange --dst-range 192.168.10.43-192.168.10.55 -j MARK --set-mark 11
$TCAU parent 1:1 classid 1:11 htb rate 240kbit ceil 1400kbit prio 3
$TQAU parent 1:11 handle 11: $SFQ
$TFAU parent 1:0 prio 2 protocol ip handle 11 fw flowid 1:11
iptables -t mangle -A PREROUTING -m iprange --src-range 192.168.10.43-192.168.10.55 -j MARK --set-mark 11
$TCA parent 1:1 classid 1:12 htb rate 3500kbit ceil 12000kbit prio 3
$TQA parent 1:12 handle 12: $SFQ
$TFA parent 1:0 prio 2 protocol ip handle 12 fw flowid 1:12
iptables -t mangle -A POSTROUTING -m iprange --dst-range 192.168.10.110-192.168.10.119 -j MARK --set-mark 12
$TCAU parent 1:1 classid 1:12 htb rate 240kbit ceil 800kbit prio 3
$TQAU parent 1:12 handle 12: $SFQ
$TFAU parent 1:0 prio 2 protocol ip handle 12 fw flowid 1:12
iptables -t mangle -A PREROUTING -m iprange --src-range 192.168.10.110-192.168.10.119 -j MARK --set-mark 12
$TCA parent 1:1 classid 1:13 htb rate 3500kbit ceil 12000kbit prio 3
$TQA parent 1:13 handle 13: $SFQ
$TFA parent 1:0 prio 2 protocol ip handle 13 fw flowid 1:13
iptables -t mangle -A POSTROUTING -m iprange --dst-range 192.168.10.120-192.168.10.122 -j MARK --set-mark 13
$TCAU parent 1:1 classid 1:13 htb rate 240kbit ceil 800kbit prio 3
$TQAU parent 1:13 handle 13: $SFQ
$TFAU parent 1:0 prio 2 protocol ip handle 13 fw flowid 1:13
iptables -t mangle -A PREROUTING -m iprange --src-range 192.168.10.120-192.168.10.122 -j MARK --set-mark 13
$TCA parent 1:1 classid 1:14 htb rate 3500kbit ceil 12000kbit prio 3
$TQA parent 1:14 handle 14: $SFQ
$TFA parent 1:0 prio 2 protocol ip handle 14 fw flowid 1:14
iptables -t mangle -A POSTROUTING -m iprange --dst-range 192.168.10.130-192.168.10.135 -j MARK --set-mark 14
$TCAU parent 1:1 classid 1:14 htb rate 240kbit ceil 800kbit prio 3
$TQAU parent 1:14 handle 14: $SFQ
$TFAU parent 1:0 prio 2 protocol ip handle 14 fw flowid 1:14
iptables -t mangle -A PREROUTING -m iprange --src-range 192.168.10.130-192.168.10.135 -j MARK --set-mark 14
$TCA parent 1:1 classid 1:15 htb rate 3500kbit ceil 12000kbit prio 3
$TQA parent 1:15 handle 15: $SFQ
$TFA parent 1:0 prio 2 protocol ip handle 15 fw flowid 1:15
iptables -t mangle -A POSTROUTING -m iprange --dst-range 192.168.10.140-192.168.10.145 -j MARK --set-mark 15
$TCAU parent 1:1 classid 1:15 htb rate 240kbit ceil 800kbit prio 3
$TQAU parent 1:15 handle 15: $SFQ
$TFAU parent 1:0 prio 2 protocol ip handle 15 fw flowid 1:15
iptables -t mangle -A PREROUTING -m iprange --src-range 192.168.10.140-192.168.10.145 -j MARK --set-mark 15
po uruchomieniu tego skryptu z palca dostaje komunikat
RTNETLINK answers: No such file or directory
i router sie resetuje
Asus RT-N16 Tomato Firmware 1.28.0000 MIPSR2-108 K26 USB Nocat-VPN
TP Link WAG501G WPA2 acces point dla RT-N16
|