25 Listopada 2024 07:00:46
Nawigacja
· Strona Główna
· Forum

· Tomato by Shibby
· FreshTomato


Wątki na forum
Najnowsze dyskusje
· DIR868l OFW asus vs ...
· Nowe routery: UX, UC...
· [S] Asus RT-AC56U
· Szukam zaproszenia n...
· [MOD] FreshTomato-AR...
· Asus RT-AC5300 ,prob...
· archer c6 v3.20
· [S] Nighthawk R7000P...
· [S]Asus RT-AC5300 - ...
· Tanie N100 na promce...
· net z telefonu wifi+...
· Tomato - bugi/proble...
· HUAWEI z światłowodem
· Asus TUF-AX3000_V2 p...
· rt-ax88upro częste ...
· [Howto] Xpenology na...
· Jaki router pod Open...
· Ruter z tomato
· Czy to jeszcze NAS?
· RT AC66U B1
Najpopularniejsze obecnie wątki
· DIR868l OFW asus ... [11]
· Nowe routery: UX,... [0]
· [S] Asus RT-AC56U [0]
Ankieta
Jaki procesor posiada twój router?

Broadcom MIPSEL
Broadcom MIPSEL
36% [151 głosów]

Broadcom ARM
Broadcom ARM
52% [219 głosów]

Atheros
Atheros
5% [22 głosów]

Marvell
Marvell
1% [4 głosów]

Ralink
Ralink
1% [3 głosów]

Intel/AMD/VIA
Intel/AMD/VIA
1% [5 głosów]

Żaden z powyższych
Żaden z powyższych
4% [15 głosów]

Ogółem głosów: 419
Musisz zalogować się, aby móc zagłosować.
Rozpoczęto: 02/02/2015 09:38
Twoje IP
3.149.250.65
Zobacz wątek
OpenLinksys » :: OPROGRAMOWANIE :: » DD-WRT - firmware
 Drukuj wątek
Podział transferu po IP
piterkolo
ok to czekam na odp. Smile

Połączony z 12 sierpień 2011 00:30:48:
Pomóżcie proszę bo na prawdę nie wiem co zrobić z tym uploadem... Sad
Edytowany przez piterkolo dnia 12-08-2011 00:30
 
kilciu
TCAU="tc class add dev ppp0"
TFAU="tc filter add dev ppp0"
TQAU="tc qdisc add dev ppp0"
tc qdisc del dev ppp0 root
tc qdisc add dev ppp0 root handle 1: htb
tc class add dev ppp0 parent 1: classid 1:1 htb rate 486kbit

iptables -t mangle -A PREROUTING -j ppp0 --todev 0



porownaj ze swoimi wpisami i popraw co trzeba i bedzie dzialac
 
piterkolo
Witam ponownie, ciagle mam problem ze skróceniem tego skryptu, jest zdecydowanie za duzy, nie mam juz praktycznie miejsca w pamieci NVRAM.

Bardzo prosiłbym osobę która ogarnia skracanie skryptów o modyfikacje mojego skryptu, tak aby zajmowal on najmniej miesca w pamiec nvram.


moj 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 16500kbit
$TCA parent 1:1 classid 1:10 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:11 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:12 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:13 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:14 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:15 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:16 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:17 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:18 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:19 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:20 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:21 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:22 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:23 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:24 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:25 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:26 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:27 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:28 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:29 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:30 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:31 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:32 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:33 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:34 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:35 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:36 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:37 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:38 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:39 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:40 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:41 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:42 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:43 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:44 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:45 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:46 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:47 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:48 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:49 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:50 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:51 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:52 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:53 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:54 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:55 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:56 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:57 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:58 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:59 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:60 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:61 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:62 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:63 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:64 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:65 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:66 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:67 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:68 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:69 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:70 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:71 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:72 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:73 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:74 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:75 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:76 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:77 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:78 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:79 htb rate 10kbit ceil 912kbit prio 2
$TCA parent 1:1 classid 1:80 htb rate 10kbit ceil 912kbit prio 2
$TQA parent 1:10 handle 10: $SFQ
$TQA parent 1:11 handle 11: $SFQ
$TQA parent 1:12 handle 12: $SFQ
$TQA parent 1:13 handle 13: $SFQ
$TQA parent 1:14 handle 14: $SFQ
$TQA parent 1:15 handle 15: $SFQ
$TQA parent 1:16 handle 16: $SFQ
$TQA parent 1:17 handle 17: $SFQ
$TQA parent 1:18 handle 18: $SFQ
$TQA parent 1:19 handle 19: $SFQ
$TQA parent 1:20 handle 20: $SFQ
$TQA parent 1:21 handle 21: $SFQ
$TQA parent 1:22 handle 22: $SFQ
$TQA parent 1:23 handle 23: $SFQ
$TQA parent 1:24 handle 24: $SFQ
$TQA parent 1:25 handle 25: $SFQ
$TQA parent 1:26 handle 26: $SFQ
$TQA parent 1:27 handle 27: $SFQ
$TQA parent 1:28 handle 28: $SFQ
$TQA parent 1:29 handle 29: $SFQ
$TQA parent 1:30 handle 30: $SFQ
$TQA parent 1:31 handle 31: $SFQ
$TQA parent 1:32 handle 32: $SFQ
$TQA parent 1:33 handle 33: $SFQ
$TQA parent 1:34 handle 34: $SFQ
$TQA parent 1:35 handle 35: $SFQ
$TQA parent 1:36 handle 36: $SFQ
$TQA parent 1:37 handle 37: $SFQ
$TQA parent 1:38 handle 38: $SFQ
$TQA parent 1:39 handle 39: $SFQ
$TQA parent 1:40 handle 40: $SFQ
$TQA parent 1:41 handle 41: $SFQ
$TQA parent 1:42 handle 42: $SFQ
$TQA parent 1:43 handle 43: $SFQ
$TQA parent 1:44 handle 44: $SFQ
$TQA parent 1:45 handle 45: $SFQ
$TQA parent 1:46 handle 46: $SFQ
$TQA parent 1:47 handle 47: $SFQ
$TQA parent 1:48 handle 48: $SFQ
$TQA parent 1:49 handle 49: $SFQ
$TQA parent 1:50 handle 50: $SFQ
$TQA parent 1:51 handle 51: $SFQ
$TQA parent 1:52 handle 52: $SFQ
$TQA parent 1:53 handle 53: $SFQ
$TQA parent 1:54 handle 54: $SFQ
$TQA parent 1:55 handle 55: $SFQ
$TQA parent 1:56 handle 56: $SFQ
$TQA parent 1:57 handle 57: $SFQ
$TQA parent 1:58 handle 58: $SFQ
$TQA parent 1:59 handle 59: $SFQ
$TQA parent 1:60 handle 60: $SFQ
$TQA parent 1:61 handle 61: $SFQ
$TQA parent 1:62 handle 62: $SFQ
$TQA parent 1:63 handle 63: $SFQ
$TQA parent 1:64 handle 64: $SFQ
$TQA parent 1:65 handle 65: $SFQ
$TQA parent 1:66 handle 66: $SFQ
$TQA parent 1:67 handle 67: $SFQ
$TQA parent 1:68 handle 68: $SFQ
$TQA parent 1:69 handle 69: $SFQ
$TQA parent 1:70 handle 70: $SFQ
$TQA parent 1:71 handle 71: $SFQ
$TQA parent 1:72 handle 72: $SFQ
$TQA parent 1:73 handle 73: $SFQ
$TQA parent 1:74 handle 74: $SFQ
$TQA parent 1:75 handle 75: $SFQ
$TQA parent 1:76 handle 76: $SFQ
$TQA parent 1:77 handle 77: $SFQ
$TQA parent 1:78 handle 78: $SFQ
$TQA parent 1:79 handle 79: $SFQ
$TQA parent 1:80 handle 80: $SFQ
$TFA parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
$TFA parent 1:0 prio 2 protocol ip handle 11 fw flowid 1:11
$TFA parent 1:0 prio 2 protocol ip handle 12 fw flowid 1:12
$TFA parent 1:0 prio 2 protocol ip handle 13 fw flowid 1:13
$TFA parent 1:0 prio 2 protocol ip handle 14 fw flowid 1:14
$TFA parent 1:0 prio 2 protocol ip handle 15 fw flowid 1:15
$TFA parent 1:0 prio 2 protocol ip handle 16 fw flowid 1:16
$TFA parent 1:0 prio 2 protocol ip handle 17 fw flowid 1:17
$TFA parent 1:0 prio 2 protocol ip handle 18 fw flowid 1:18
$TFA parent 1:0 prio 2 protocol ip handle 19 fw flowid 1:19
$TFA parent 1:0 prio 2 protocol ip handle 20 fw flowid 1:20
$TFA parent 1:0 prio 2 protocol ip handle 21 fw flowid 1:21
$TFA parent 1:0 prio 2 protocol ip handle 22 fw flowid 1:22
$TFA parent 1:0 prio 2 protocol ip handle 23 fw flowid 1:23
$TFA parent 1:0 prio 2 protocol ip handle 24 fw flowid 1:24
$TFA parent 1:0 prio 2 protocol ip handle 25 fw flowid 1:25
$TFA parent 1:0 prio 2 protocol ip handle 26 fw flowid 1:26
$TFA parent 1:0 prio 2 protocol ip handle 27 fw flowid 1:27
$TFA parent 1:0 prio 2 protocol ip handle 28 fw flowid 1:28
$TFA parent 1:0 prio 2 protocol ip handle 29 fw flowid 1:29
$TFA parent 1:0 prio 2 protocol ip handle 30 fw flowid 1:30
$TFA parent 1:0 prio 2 protocol ip handle 31 fw flowid 1:31
$TFA parent 1:0 prio 2 protocol ip handle 32 fw flowid 1:32
$TFA parent 1:0 prio 2 protocol ip handle 33 fw flowid 1:33
$TFA parent 1:0 prio 2 protocol ip handle 34 fw flowid 1:34
$TFA parent 1:0 prio 2 protocol ip handle 35 fw flowid 1:35
$TFA parent 1:0 prio 2 protocol ip handle 36 fw flowid 1:36
$TFA parent 1:0 prio 2 protocol ip handle 37 fw flowid 1:37
$TFA parent 1:0 prio 2 protocol ip handle 38 fw flowid 1:38
$TFA parent 1:0 prio 2 protocol ip handle 39 fw flowid 1:39
$TFA parent 1:0 prio 2 protocol ip handle 40 fw flowid 1:40
$TFA parent 1:0 prio 2 protocol ip handle 41 fw flowid 1:41
$TFA parent 1:0 prio 2 protocol ip handle 42 fw flowid 1:42
$TFA parent 1:0 prio 2 protocol ip handle 43 fw flowid 1:43
$TFA parent 1:0 prio 2 protocol ip handle 44 fw flowid 1:44
$TFA parent 1:0 prio 2 protocol ip handle 45 fw flowid 1:45
$TFA parent 1:0 prio 2 protocol ip handle 46 fw flowid 1:46
$TFA parent 1:0 prio 2 protocol ip handle 47 fw flowid 1:47
$TFA parent 1:0 prio 2 protocol ip handle 48 fw flowid 1:48
$TFA parent 1:0 prio 2 protocol ip handle 49 fw flowid 1:49
$TFA parent 1:0 prio 2 protocol ip handle 50 fw flowid 1:50
$TFA parent 1:0 prio 2 protocol ip handle 51 fw flowid 1:51
$TFA parent 1:0 prio 2 protocol ip handle 52 fw flowid 1:52
$TFA parent 1:0 prio 2 protocol ip handle 53 fw flowid 1:53
$TFA parent 1:0 prio 2 protocol ip handle 54 fw flowid 1:54
$TFA parent 1:0 prio 2 protocol ip handle 55 fw flowid 1:55
$TFA parent 1:0 prio 2 protocol ip handle 56 fw flowid 1:56
$TFA parent 1:0 prio 2 protocol ip handle 57 fw flowid 1:57
$TFA parent 1:0 prio 2 protocol ip handle 58 fw flowid 1:58
$TFA parent 1:0 prio 2 protocol ip handle 59 fw flowid 1:59
$TFA parent 1:0 prio 2 protocol ip handle 60 fw flowid 1:60
$TFA parent 1:0 prio 2 protocol ip handle 61 fw flowid 1:61
$TFA parent 1:0 prio 2 protocol ip handle 62 fw flowid 1:62
$TFA parent 1:0 prio 2 protocol ip handle 63 fw flowid 1:63
$TFA parent 1:0 prio 2 protocol ip handle 64 fw flowid 1:64
$TFA parent 1:0 prio 2 protocol ip handle 65 fw flowid 1:65
$TFA parent 1:0 prio 2 protocol ip handle 66 fw flowid 1:66
$TFA parent 1:0 prio 2 protocol ip handle 67 fw flowid 1:67
$TFA parent 1:0 prio 2 protocol ip handle 68 fw flowid 1:68
$TFA parent 1:0 prio 2 protocol ip handle 69 fw flowid 1:69
$TFA parent 1:0 prio 2 protocol ip handle 70 fw flowid 1:70
$TFA parent 1:0 prio 2 protocol ip handle 71 fw flowid 1:71
$TFA parent 1:0 prio 2 protocol ip handle 72 fw flowid 1:72
$TFA parent 1:0 prio 2 protocol ip handle 73 fw flowid 1:73
$TFA parent 1:0 prio 2 protocol ip handle 74 fw flowid 1:74
$TFA parent 1:0 prio 2 protocol ip handle 75 fw flowid 1:75
$TFA parent 1:0 prio 2 protocol ip handle 76 fw flowid 1:76
$TFA parent 1:0 prio 2 protocol ip handle 77 fw flowid 1:77
$TFA parent 1:0 prio 2 protocol ip handle 78 fw flowid 1:78
$TFA parent 1:0 prio 2 protocol ip handle 79 fw flowid 1:79
$TFA parent 1:0 prio 2 protocol ip handle 80 fw flowid 1:80
iptables -t mangle -A POSTROUTING -d 192.168.10.101 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.10.102 -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -d 192.168.10.103 -j MARK --set-mark 12
iptables -t mangle -A POSTROUTING -d 192.168.10.104 -j MARK --set-mark 13
iptables -t mangle -A POSTROUTING -d 192.168.10.105 -j MARK --set-mark 14
iptables -t mangle -A POSTROUTING -d 192.168.10.106 -j MARK --set-mark 15
iptables -t mangle -A POSTROUTING -d 192.168.10.107 -j MARK --set-mark 16
iptables -t mangle -A POSTROUTING -d 192.168.10.108 -j MARK --set-mark 17
iptables -t mangle -A POSTROUTING -d 192.168.10.109 -j MARK --set-mark 18
iptables -t mangle -A POSTROUTING -d 192.168.10.110 -j MARK --set-mark 19
iptables -t mangle -A POSTROUTING -d 192.168.10.111 -j MARK --set-mark 20
iptables -t mangle -A POSTROUTING -d 192.168.10.112 -j MARK --set-mark 21
iptables -t mangle -A POSTROUTING -d 192.168.10.113 -j MARK --set-mark 22
iptables -t mangle -A POSTROUTING -d 192.168.10.114 -j MARK --set-mark 23
iptables -t mangle -A POSTROUTING -d 192.168.10.115 -j MARK --set-mark 24
iptables -t mangle -A POSTROUTING -d 192.168.10.116 -j MARK --set-mark 25
iptables -t mangle -A POSTROUTING -d 192.168.10.117 -j MARK --set-mark 26
iptables -t mangle -A POSTROUTING -d 192.168.10.118 -j MARK --set-mark 27
iptables -t mangle -A POSTROUTING -d 192.168.10.119 -j MARK --set-mark 28
iptables -t mangle -A POSTROUTING -d 192.168.10.120 -j MARK --set-mark 29
iptables -t mangle -A POSTROUTING -d 192.168.10.121 -j MARK --set-mark 30
iptables -t mangle -A POSTROUTING -d 192.168.10.122 -j MARK --set-mark 31
iptables -t mangle -A POSTROUTING -d 192.168.10.123 -j MARK --set-mark 32
iptables -t mangle -A POSTROUTING -d 192.168.10.124 -j MARK --set-mark 33
iptables -t mangle -A POSTROUTING -d 192.168.10.125 -j MARK --set-mark 34
iptables -t mangle -A POSTROUTING -d 192.168.10.126 -j MARK --set-mark 35
iptables -t mangle -A POSTROUTING -d 192.168.10.127 -j MARK --set-mark 36
iptables -t mangle -A POSTROUTING -d 192.168.10.128 -j MARK --set-mark 37
iptables -t mangle -A POSTROUTING -d 192.168.10.129 -j MARK --set-mark 38
iptables -t mangle -A POSTROUTING -d 192.168.10.130 -j MARK --set-mark 39
iptables -t mangle -A POSTROUTING -d 192.168.10.131 -j MARK --set-mark 40
iptables -t mangle -A POSTROUTING -d 192.168.10.132 -j MARK --set-mark 41
iptables -t mangle -A POSTROUTING -d 192.168.10.133 -j MARK --set-mark 42
iptables -t mangle -A POSTROUTING -d 192.168.10.134 -j MARK --set-mark 43
iptables -t mangle -A POSTROUTING -d 192.168.10.135 -j MARK --set-mark 44
iptables -t mangle -A POSTROUTING -d 192.168.10.136 -j MARK --set-mark 45
iptables -t mangle -A POSTROUTING -d 192.168.10.137 -j MARK --set-mark 46
iptables -t mangle -A POSTROUTING -d 192.168.10.138 -j MARK --set-mark 47
iptables -t mangle -A POSTROUTING -d 192.168.10.139 -j MARK --set-mark 48
iptables -t mangle -A POSTROUTING -d 192.168.10.140 -j MARK --set-mark 49
iptables -t mangle -A POSTROUTING -d 192.168.10.141 -j MARK --set-mark 50
iptables -t mangle -A POSTROUTING -d 192.168.10.142 -j MARK --set-mark 51
iptables -t mangle -A POSTROUTING -d 192.168.10.143 -j MARK --set-mark 52
iptables -t mangle -A POSTROUTING -d 192.168.10.144 -j MARK --set-mark 53
iptables -t mangle -A POSTROUTING -d 192.168.10.145 -j MARK --set-mark 54
iptables -t mangle -A POSTROUTING -d 192.168.10.146 -j MARK --set-mark 55
iptables -t mangle -A POSTROUTING -d 192.168.10.147 -j MARK --set-mark 56
iptables -t mangle -A POSTROUTING -d 192.168.10.148 -j MARK --set-mark 57
iptables -t mangle -A POSTROUTING -d 192.168.10.149 -j MARK --set-mark 58
iptables -t mangle -A POSTROUTING -d 192.168.10.150 -j MARK --set-mark 59
iptables -t mangle -A POSTROUTING -d 192.168.10.151 -j MARK --set-mark 60
iptables -t mangle -A POSTROUTING -d 192.168.10.152 -j MARK --set-mark 61
iptables -t mangle -A POSTROUTING -d 192.168.10.153 -j MARK --set-mark 62
iptables -t mangle -A POSTROUTING -d 192.168.10.154 -j MARK --set-mark 63
iptables -t mangle -A POSTROUTING -d 192.168.10.155 -j MARK --set-mark 64
iptables -t mangle -A POSTROUTING -d 192.168.10.156 -j MARK --set-mark 65
iptables -t mangle -A POSTROUTING -d 192.168.10.157 -j MARK --set-mark 66
iptables -t mangle -A POSTROUTING -d 192.168.10.158 -j MARK --set-mark 67
iptables -t mangle -A POSTROUTING -d 192.168.10.159 -j MARK --set-mark 68
iptables -t mangle -A POSTROUTING -d 192.168.10.160 -j MARK --set-mark 69
iptables -t mangle -A POSTROUTING -d 192.168.10.161 -j MARK --set-mark 70
iptables -t mangle -A POSTROUTING -d 192.168.10.162 -j MARK --set-mark 71
iptables -t mangle -A POSTROUTING -d 192.168.10.163 -j MARK --set-mark 72
iptables -t mangle -A POSTROUTING -d 192.168.10.164 -j MARK --set-mark 73
iptables -t mangle -A POSTROUTING -d 192.168.10.165 -j MARK --set-mark 74
iptables -t mangle -A POSTROUTING -d 192.168.10.166 -j MARK --set-mark 75
iptables -t mangle -A POSTROUTING -d 192.168.10.167 -j MARK --set-mark 76
iptables -t mangle -A POSTROUTING -d 192.168.10.168 -j MARK --set-mark 77
iptables -t mangle -A POSTROUTING -d 192.168.10.169 -j MARK --set-mark 78
iptables -t mangle -A POSTROUTING -d 192.168.10.170 -j MARK --set-mark 79
iptables -t mangle -A POSTROUTING -d 192.168.10.171 -j MARK --set-mark 80
TCAU="tc class add dev imq0
TFAU="tc filter add dev imq0"
TQAU="tc qdisc add dev imq0"
modprobe imq
modprobe ipt_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 950kbit
$TCAU parent 1:1 classid 1:10 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:11 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:12 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:13 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:14 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:15 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:16 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:17 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:18 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:19 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:20 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:21 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:22 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:23 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:24 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:25 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:26 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:27 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:28 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:29 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:30 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:31 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:32 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:33 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:34 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:35 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:36 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:37 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:38 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:39 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:40 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:41 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:42 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:43 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:44 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:45 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:46 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:47 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:48 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:49 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:50 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:51 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:52 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:53 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:54 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:55 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:56 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:57 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:58 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:59 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:60 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:61 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:62 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:63 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:64 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:65 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:66 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:67 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:68 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:69 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:70 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:71 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:72 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:73 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:74 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:75 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:76 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:77 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:78 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:79 htb rate 20kbit ceil 80kbit prio 2
$TCAU parent 1:1 classid 1:80 htb rate 20kbit ceil 80kbit prio 2
$TQAU parent 1:10 handle 10: $SFQ
$TQAU parent 1:11 handle 11: $SFQ
$TQAU parent 1:12 handle 12: $SFQ
$TQAU parent 1:13 handle 13: $SFQ
$TQAU parent 1:14 handle 14: $SFQ
$TQAU parent 1:15 handle 15: $SFQ
$TQAU parent 1:16 handle 16: $SFQ
$TQAU parent 1:17 handle 17: $SFQ
$TQAU parent 1:18 handle 18: $SFQ
$TQAU parent 1:19 handle 19: $SFQ
$TQAU parent 1:20 handle 20: $SFQ
$TQAU parent 1:21 handle 21: $SFQ
$TQAU parent 1:22 handle 22: $SFQ
$TQAU parent 1:23 handle 23: $SFQ
$TQAU parent 1:24 handle 24: $SFQ
$TQAU parent 1:25 handle 25: $SFQ
$TQAU parent 1:26 handle 26: $SFQ
$TQAU parent 1:27 handle 27: $SFQ
$TQAU parent 1:28 handle 28: $SFQ
$TQAU parent 1:29 handle 29: $SFQ
$TQAU parent 1:30 handle 30: $SFQ
$TQAU parent 1:31 handle 31: $SFQ
$TQAU parent 1:32 handle 32: $SFQ
$TQAU parent 1:33 handle 33: $SFQ
$TQAU parent 1:34 handle 34: $SFQ
$TQAU parent 1:35 handle 35: $SFQ
$TQAU parent 1:36 handle 36: $SFQ
$TQAU parent 1:37 handle 37: $SFQ
$TQAU parent 1:38 handle 38: $SFQ
$TQAU parent 1:39 handle 39: $SFQ
$TQAU parent 1:40 handle 40: $SFQ
$TQAU parent 1:41 handle 41: $SFQ
$TQAU parent 1:42 handle 42: $SFQ
$TQAU parent 1:43 handle 43: $SFQ
$TQAU parent 1:44 handle 44: $SFQ
$TQAU parent 1:45 handle 45: $SFQ
$TQAU parent 1:46 handle 46: $SFQ
$TQAU parent 1:47 handle 47: $SFQ
$TQAU parent 1:48 handle 48: $SFQ
$TQAU parent 1:49 handle 49: $SFQ
$TQAU parent 1:50 handle 50: $SFQ
$TQAU parent 1:51 handle 51: $SFQ
$TQAU parent 1:52 handle 52: $SFQ
$TQAU parent 1:53 handle 53: $SFQ
$TQAU parent 1:54 handle 54: $SFQ
$TQAU parent 1:55 handle 55: $SFQ
$TQAU parent 1:56 handle 56: $SFQ
$TQAU parent 1:57 handle 57: $SFQ
$TQAU parent 1:58 handle 58: $SFQ
$TQAU parent 1:59 handle 59: $SFQ
$TQAU parent 1:60 handle 60: $SFQ
$TQAU parent 1:61 handle 61: $SFQ
$TQAU parent 1:62 handle 62: $SFQ
$TQAU parent 1:63 handle 63: $SFQ
$TQAU parent 1:64 handle 64: $SFQ
$TQAU parent 1:65 handle 65: $SFQ
$TQAU parent 1:66 handle 66: $SFQ
$TQAU parent 1:67 handle 67: $SFQ
$TQAU parent 1:68 handle 68: $SFQ
$TQAU parent 1:69 handle 69: $SFQ
$TQAU parent 1:70 handle 70: $SFQ
$TQAU parent 1:71 handle 71: $SFQ
$TQAU parent 1:72 handle 72: $SFQ
$TQAU parent 1:73 handle 73: $SFQ
$TQAU parent 1:74 handle 74: $SFQ
$TQAU parent 1:75 handle 75: $SFQ
$TQAU parent 1:76 handle 76: $SFQ
$TQAU parent 1:77 handle 77: $SFQ
$TQAU parent 1:78 handle 78: $SFQ
$TQAU parent 1:79 handle 79: $SFQ
$TQAU parent 1:80 handle 80: $SFQ
$TFAU parent 1:0 prio 2 protocol ip handle 10 fw flowid 1:10
$TFAU parent 1:0 prio 2 protocol ip handle 11 fw flowid 1:11
$TFAU parent 1:0 prio 2 protocol ip handle 12 fw flowid 1:12
$TFAU parent 1:0 prio 2 protocol ip handle 13 fw flowid 1:13
$TFAU parent 1:0 prio 2 protocol ip handle 14 fw flowid 1:14
$TFAU parent 1:0 prio 2 protocol ip handle 15 fw flowid 1:15
$TFAU parent 1:0 prio 2 protocol ip handle 16 fw flowid 1:16
$TFAU parent 1:0 prio 2 protocol ip handle 17 fw flowid 1:17
$TFAU parent 1:0 prio 2 protocol ip handle 18 fw flowid 1:18
$TFAU parent 1:0 prio 2 protocol ip handle 19 fw flowid 1:19
$TFAU parent 1:0 prio 2 protocol ip handle 20 fw flowid 1:20
$TFAU parent 1:0 prio 2 protocol ip handle 21 fw flowid 1:21
$TFAU parent 1:0 prio 2 protocol ip handle 22 fw flowid 1:22
$TFAU parent 1:0 prio 2 protocol ip handle 23 fw flowid 1:23
$TFAU parent 1:0 prio 2 protocol ip handle 24 fw flowid 1:24
$TFAU parent 1:0 prio 2 protocol ip handle 25 fw flowid 1:25
$TFAU parent 1:0 prio 2 protocol ip handle 26 fw flowid 1:26
$TFAU parent 1:0 prio 2 protocol ip handle 27 fw flowid 1:27
$TFAU parent 1:0 prio 2 protocol ip handle 28 fw flowid 1:28
$TFAU parent 1:0 prio 2 protocol ip handle 29 fw flowid 1:29
$TFAU parent 1:0 prio 2 protocol ip handle 30 fw flowid 1:30
$TFAU parent 1:0 prio 2 protocol ip handle 31 fw flowid 1:31
$TFAU parent 1:0 prio 2 protocol ip handle 32 fw flowid 1:32
$TFAU parent 1:0 prio 2 protocol ip handle 33 fw flowid 1:33
$TFAU parent 1:0 prio 2 protocol ip handle 34 fw flowid 1:34
$TFAU parent 1:0 prio 2 protocol ip handle 35 fw flowid 1:35
$TFAU parent 1:0 prio 2 protocol ip handle 36 fw flowid 1:36
$TFAU parent 1:0 prio 2 protocol ip handle 37 fw flowid 1:37
$TFAU parent 1:0 prio 2 protocol ip handle 38 fw flowid 1:38
$TFAU parent 1:0 prio 2 protocol ip handle 39 fw flowid 1:39
$TFAU parent 1:0 prio 2 protocol ip handle 40 fw flowid 1:40
$TFAU parent 1:0 prio 2 protocol ip handle 41 fw flowid 1:41
$TFAU parent 1:0 prio 2 protocol ip handle 42 fw flowid 1:42
$TFAU parent 1:0 prio 2 protocol ip handle 43 fw flowid 1:43
$TFAU parent 1:0 prio 2 protocol ip handle 44 fw flowid 1:44
$TFAU parent 1:0 prio 2 protocol ip handle 45 fw flowid 1:45
$TFAU parent 1:0 prio 2 protocol ip handle 46 fw flowid 1:46
$TFAU parent 1:0 prio 2 protocol ip handle 47 fw flowid 1:47
$TFAU parent 1:0 prio 2 protocol ip handle 48 fw flowid 1:48
$TFAU parent 1:0 prio 2 protocol ip handle 49 fw flowid 1:49
$TFAU parent 1:0 prio 2 protocol ip handle 50 fw flowid 1:50
$TFAU parent 1:0 prio 2 protocol ip handle 51 fw flowid 1:51
$TFAU parent 1:0 prio 2 protocol ip handle 52 fw flowid 1:52
$TFAU parent 1:0 prio 2 protocol ip handle 53 fw flowid 1:53
$TFAU parent 1:0 prio 2 protocol ip handle 54 fw flowid 1:54
$TFAU parent 1:0 prio 2 protocol ip handle 55 fw flowid 1:55
$TFAU parent 1:0 prio 2 protocol ip handle 56 fw flowid 1:56
$TFAU parent 1:0 prio 2 protocol ip handle 57 fw flowid 1:57
$TFAU parent 1:0 prio 2 protocol ip handle 58 fw flowid 1:58
$TFAU parent 1:0 prio 2 protocol ip handle 59 fw flowid 1:59
$TFAU parent 1:0 prio 2 protocol ip handle 60 fw flowid 1:60
$TFAU parent 1:0 prio 2 protocol ip handle 61 fw flowid 1:61
$TFAU parent 1:0 prio 2 protocol ip handle 62 fw flowid 1:62
$TFAU parent 1:0 prio 2 protocol ip handle 63 fw flowid 1:63
$TFAU parent 1:0 prio 2 protocol ip handle 64 fw flowid 1:64
$TFAU parent 1:0 prio 2 protocol ip handle 65 fw flowid 1:65
$TFAU parent 1:0 prio 2 protocol ip handle 66 fw flowid 1:66
$TFAU parent 1:0 prio 2 protocol ip handle 67 fw flowid 1:67
$TFAU parent 1:0 prio 2 protocol ip handle 68 fw flowid 1:68
$TFAU parent 1:0 prio 2 protocol ip handle 69 fw flowid 1:69
$TFAU parent 1:0 prio 2 protocol ip handle 70 fw flowid 1:70
$TFAU parent 1:0 prio 2 protocol ip handle 71 fw flowid 1:71
$TFAU parent 1:0 prio 2 protocol ip handle 72 fw flowid 1:72
$TFAU parent 1:0 prio 2 protocol ip handle 73 fw flowid 1:73
$TFAU parent 1:0 prio 2 protocol ip handle 74 fw flowid 1:74
$TFAU parent 1:0 prio 2 protocol ip handle 75 fw flowid 1:75
$TFAU parent 1:0 prio 2 protocol ip handle 76 fw flowid 1:76
$TFAU parent 1:0 prio 2 protocol ip handle 77 fw flowid 1:77
$TFAU parent 1:0 prio 2 protocol ip handle 78 fw flowid 1:78
$TFAU parent 1:0 prio 2 protocol ip handle 79 fw flowid 1:79
$TFAU parent 1:0 prio 2 protocol ip handle 80 fw flowid 1:80
iptables -t mangle -A PREROUTING -s 192.168.10.101 -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -s 192.168.10.102 -j MARK --set-mark 11
iptables -t mangle -A PREROUTING -s 192.168.10.103 -j MARK --set-mark 12
iptables -t mangle -A PREROUTING -s 192.168.10.104 -j MARK --set-mark 13
iptables -t mangle -A PREROUTING -s 192.168.10.105 -j MARK --set-mark 14
iptables -t mangle -A PREROUTING -s 192.168.10.106 -j MARK --set-mark 15
iptables -t mangle -A PREROUTING -s 192.168.10.107 -j MARK --set-mark 16
iptables -t mangle -A PREROUTING -s 192.168.10.108 -j MARK --set-mark 17
iptables -t mangle -A PREROUTING -s 192.168.10.109 -j MARK --set-mark 18
iptables -t mangle -A PREROUTING -s 192.168.10.110 -j MARK --set-mark 19
iptables -t mangle -A PREROUTING -s 192.168.10.111 -j MARK --set-mark 20
iptables -t mangle -A PREROUTING -s 192.168.10.112 -j MARK --set-mark 21
iptables -t mangle -A PREROUTING -s 192.168.10.113 -j MARK --set-mark 22
iptables -t mangle -A PREROUTING -s 192.168.10.114 -j MARK --set-mark 23
iptables -t mangle -A PREROUTING -s 192.168.10.115 -j MARK --set-mark 24
iptables -t mangle -A PREROUTING -s 192.168.10.116 -j MARK --set-mark 25
iptables -t mangle -A PREROUTING -s 192.168.10.117 -j MARK --set-mark 26
iptables -t mangle -A PREROUTING -s 192.168.10.118 -j MARK --set-mark 27
iptables -t mangle -A PREROUTING -s 192.168.10.119 -j MARK --set-mark 28
iptables -t mangle -A PREROUTING -s 192.168.10.120 -j MARK --set-mark 29
iptables -t mangle -A PREROUTING -s 192.168.10.121 -j MARK --set-mark 30
iptables -t mangle -A PREROUTING -s 192.168.10.122 -j MARK --set-mark 31
iptables -t mangle -A PREROUTING -s 192.168.10.123 -j MARK --set-mark 32
iptables -t mangle -A PREROUTING -s 192.168.10.124 -j MARK --set-mark 33
iptables -t mangle -A PREROUTING -s 192.168.10.125 -j MARK --set-mark 34
iptables -t mangle -A PREROUTING -s 192.168.10.126 -j MARK --set-mark 35
iptables -t mangle -A PREROUTING -s 192.168.10.127 -j MARK --set-mark 36
iptables -t mangle -A PREROUTING -s 192.168.10.128 -j MARK --set-mark 37
iptables -t mangle -A PREROUTING -s 192.168.10.129 -j MARK --set-mark 38
iptables -t mangle -A PREROUTING -s 192.168.10.130 -j MARK --set-mark 39
iptables -t mangle -A PREROUTING -s 192.168.10.131 -j MARK --set-mark 40
iptables -t mangle -A PREROUTING -s 192.168.10.132 -j MARK --set-mark 41
iptables -t mangle -A PREROUTING -s 192.168.10.133 -j MARK --set-mark 42
iptables -t mangle -A PREROUTING -s 192.168.10.134 -j MARK --set-mark 43
iptables -t mangle -A PREROUTING -s 192.168.10.135 -j MARK --set-mark 44
iptables -t mangle -A PREROUTING -s 192.168.10.136 -j MARK --set-mark 45
iptables -t mangle -A PREROUTING -s 192.168.10.137 -j MARK --set-mark 46
iptables -t mangle -A PREROUTING -s 192.168.10.138 -j MARK --set-mark 47
iptables -t mangle -A PREROUTING -s 192.168.10.139 -j MARK --set-mark 48
iptables -t mangle -A PREROUTING -s 192.168.10.140 -j MARK --set-mark 49
iptables -t mangle -A PREROUTING -s 192.168.10.141 -j MARK --set-mark 50
iptables -t mangle -A PREROUTING -s 192.168.10.142 -j MARK --set-mark 51
iptables -t mangle -A PREROUTING -s 192.168.10.143 -j MARK --set-mark 52
iptables -t mangle -A PREROUTING -s 192.168.10.144 -j MARK --set-mark 53
iptables -t mangle -A PREROUTING -s 192.168.10.145 -j MARK --set-mark 54
iptables -t mangle -A PREROUTING -s 192.168.10.146 -j MARK --set-mark 55
iptables -t mangle -A PREROUTING -s 192.168.10.147 -j MARK --set-mark 56
iptables -t mangle -A PREROUTING -s 192.168.10.148 -j MARK --set-mark 57
iptables -t mangle -A PREROUTING -s 192.168.10.149 -j MARK --set-mark 58
iptables -t mangle -A PREROUTING -s 192.168.10.150 -j MARK --set-mark 59
iptables -t mangle -A PREROUTING -s 192.168.10.151 -j MARK --set-mark 60
iptables -t mangle -A PREROUTING -s 192.168.10.152 -j MARK --set-mark 61
iptables -t mangle -A PREROUTING -s 192.168.10.153 -j MARK --set-mark 62
iptables -t mangle -A PREROUTING -s 192.168.10.154 -j MARK --set-mark 63
iptables -t mangle -A PREROUTING -s 192.168.10.155 -j MARK --set-mark 64
iptables -t mangle -A PREROUTING -s 192.168.10.156 -j MARK --set-mark 65
iptables -t mangle -A PREROUTING -s 192.168.10.157 -j MARK --set-mark 66
iptables -t mangle -A PREROUTING -s 192.168.10.158 -j MARK --set-mark 67
iptables -t mangle -A PREROUTING -s 192.168.10.159 -j MARK --set-mark 68
iptables -t mangle -A PREROUTING -s 192.168.10.160 -j MARK --set-mark 69
iptables -t mangle -A PREROUTING -s 192.168.10.161 -j MARK --set-mark 70
iptables -t mangle -A PREROUTING -s 192.168.10.162 -j MARK --set-mark 71
iptables -t mangle -A PREROUTING -s 192.168.10.163 -j MARK --set-mark 72
iptables -t mangle -A PREROUTING -s 192.168.10.164 -j MARK --set-mark 73
iptables -t mangle -A PREROUTING -s 192.168.10.165 -j MARK --set-mark 74
iptables -t mangle -A PREROUTING -s 192.168.10.166 -j MARK --set-mark 75
iptables -t mangle -A PREROUTING -s 192.168.10.167 -j MARK --set-mark 76
iptables -t mangle -A PREROUTING -s 192.168.10.168 -j MARK --set-mark 77
iptables -t mangle -A PREROUTING -s 192.168.10.169 -j MARK --set-mark 78
iptables -t mangle -A PREROUTING -s 192.168.10.170 -j MARK --set-mark 79
iptables -t mangle -A PREROUTING -s 192.168.10.171 -j MARK --set-mark 80
iptables -t mangle -A PREROUTING -j IMQ --todev 0
 
shibby
oprzyj się na tym.
http://openlinksys.info/forum/viewthread.php?thread_id=16265&highlight=SFQ&pid=118459#post_118459
Router: Unifi Cloud Gateway Max
Switch: Netgear MS510TXPP
Switch: Unifi USW-Flex-Mini - szt. 2
Wi-Fi: Unifi U6-Lite - szt. 2
Proxmox VE: i5-13400T, 64GB RAM, 2x 512GB NVMe, 3x 2TB SSD, Intel X710-DA2 SFP+
VM #1: Synology SA6400
VM #2: Debian, WWW
VM #3: Home Assistant OS
 
piterkolo
robilem juz za pomocą tej petli, ale działa to tylko niestety na download, upload jest bez ograniczen. Czy moze ktos przejrzeć ten skrypt skrócony:

min=101;
max=171;

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 16500kbit

while [ $min -le $max ]; do
$TCA parent 1:1 classid 1:$min htb rate 10kbit ceil 912kbit prio 2
$TQA parent 1:$min handle $min: $SFQ
$TFA parent 1:0 prio 2 protocol ip handle $min fw flowid 1:$min
iptables -t mangle -A POSTROUTING -d 192.168.10.$min -j MARK --set-mark $min

min=$((min+1))
done

TCAU="tc class add dev vlan2"
TFAU="tc filter add dev vlan2"
TQAU="tc qdisc add dev vlan2"
tc qdisc del dev vlan2 root
tc qdisc add dev vlan2 root handle 1: htb
tc class add dev vlan2 parent 1: classid 1:1 htb rate 950kbit

while [ $min -le $max ]; do
$TCAU parent 1:1 classid 1:$min htb rate 20kbit ceil 80kbit prio 2
$TQAU parent 1:$min handle $min: $SFQ
$TFAU parent 1:0 prio 2 protocol ip handle $min fw flowid 1:$min
iptables -t mangle -A PREROUTING -s 192.168.10.$min -j MARK --set-mark $min

min=$((min+1))
done
 
shibby
czy vlan2 jest napewno twoim WAN`em?
Router: Unifi Cloud Gateway Max
Switch: Netgear MS510TXPP
Switch: Unifi USW-Flex-Mini - szt. 2
Wi-Fi: Unifi U6-Lite - szt. 2
Proxmox VE: i5-13400T, 64GB RAM, 2x 512GB NVMe, 3x 2TB SSD, Intel X710-DA2 SFP+
VM #1: Synology SA6400
VM #2: Debian, WWW
VM #3: Home Assistant OS
 
piterkolo
no jesli sktypt ten bez skrócenia (bez tej petli) działa to chyba wszystko ok? Nie wiem Grin zaraz wejde ssh i sprawdze Pfft

Połączony z 27 kwiecień 2013 17:23:49:
==========================================================

____ ___ __ ______ _____ ____ _ _
| _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || |
|| | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_
||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _|
|___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_|

DD-WRT v24-sp2
http://www.dd-wrt.com

==========================================================


BusyBox v1.13.4 (2010-08-07 06:53:22 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# ifconfig
ath0 Link encap:Ethernet HWaddr 90:F6:52:33:3F:6E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:123 errors:0 dropped:0 overruns:0 frame:0
TX packets:26540 errors:0 dropped:14 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18392 (17.9 KiB) TX bytes:3940391 (3.7 MiB)

br0 Link encap:Ethernet HWaddr 90:F6:52:33:3F:6E
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:1614241 errors:0 dropped:0 overruns:0 frame:0
TX packets:1971902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:367718934 (350.6 MiB) TX bytes:1915339496 (1.7 GiB)

br0:0 Link encap:Ethernet HWaddr 90:F6:52:33:3F:6E
inet addr:169.254.255.1 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1

eth0 Link encap:Ethernet HWaddr 90:F6:52:33:3F:6E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3790780 errors:0 dropped:0 overruns:0 frame:0
TX packets:3735254 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2356079004 (2.1 GiB) TX bytes:2346323072 (2.1 GiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

vlan1 Link encap:Ethernet HWaddr 90:F6:52:33:3F:6E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1614148 errors:0 dropped:0 overruns:0 frame:0
TX packets:1977133 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:374167891 (356.8 MiB) TX bytes:1923509503 (1.7 GiB)

vlan2 Link encap:Ethernet HWaddr 90:F6:52:33:3F:6F
inet addr:94.42.144.202 Bcast:94.42.144.207 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2176632 errors:0 dropped:0 overruns:0 frame:0
TX packets:1758121 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1928840193 (1.7 GiB) TX bytes:422813569 (403.2 MiB)

wifi0 Link encap:Ethernet HWaddr 90:F6:52:33:3F:6E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1878 errors:0 dropped:0 overruns:0 frame:197954
TX packets:27564 errors:4 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:499
RX bytes:104681 (102.2 KiB) TX bytes:4769126 (4.5 MiB)
Interrupt:2 Memory:b80c0000-b8100000
Edytowany przez piterkolo dnia 27-04-2013 17:23
 
hermes-80
A jak byś przerzucił cały skrypt do pliku na jffs i uruchomił podczas startu WAN.
===============================================================
Netgear WNR3500L v1
Podziękowania dla administracji Openlinksys.info!
 
piterkolo
moze to htb na hfsc zmienic czy jakos tak ?

Połączony z 27 kwiecień 2013 17:26:03:
no ok ale jak przerzucic to ? tzn chodzi Ci o to zeby skrypt wrzucic do txt na jakis FTP i sciagnać przez komende wget?
Edytowany przez piterkolo dnia 27-04-2013 17:26
 
hermes-80
Nie - chodziło mi o zapisanie pliku wykonywalnego jako skrypt powłoki sh na partycji jffs i wykonanie go po podniesieniu się interfejsów.
===============================================================
Netgear WNR3500L v1
Podziękowania dla administracji Openlinksys.info!
 
piterkolo
czyli w ddwrt wklejam moj skrypt i który przycisk robie?

"Zapisz w autostarcie"
"Save shutdown"
"Save custom script"

Prosiłbym o podanie instrukcji Sad
 
hermes-80
To DD-WRT - najpierw musisz sformatować partycje jffs - jeśli jest taka możliwość - tego ie wiem nie miałem DD-WRT.
===============================================================
Netgear WNR3500L v1
Podziękowania dla administracji Openlinksys.info!
 
Przejdź do forum
Zaloguj
Wprowadź adres e-mail lub nazwę użytkownika

Hasło



Nie masz jeszcze konta? Zarejestruj się.

Zapomniałeś/aś hasła?
Aktualnie online
· Gości online: 97

· Użytkowników online: 0

· Łącznie użytkowników: 24,115
· Najnowszy użytkownik: Ja
Czat
Musisz się zalogować, aby opublikować wiadomość.

Maniek91PL
06-11-2024 22:37
dzięki !Grin

maxikaaz
29-10-2024 14:27
@Maniek91PL - Administration=> Admin Access, i tam masz "Allow Wireless Access" do zaznaczenia

Maniek91PL
26-10-2024 22:07
siemka! ktoś przypomni co się ustawiało jeśli nie mogę wejść od strony wifi do tomato? od lan działa

overflow2
04-10-2024 17:34
Kupowałem Asusy n10u albo n12d1 ale nie widzę ich, chyba już nie produkują, Chodzi o coś nowego i taniego. Transfery niewielkie.

maxikaaz
04-10-2024 09:38
@overflow2 patrząc po dostępności funkcji w nowych kompilacjach, to chyba nawet WRT54G/GL jeszcze ma OpenVPN, albo jakiś odpowiednik... zależy, na jakie transfery liczysz.

overflow2
30-09-2024 20:53
Jaki aktualnie najtańszy router do tomato do openvpn?

maxikaaz
27-07-2024 15:07
@servee - na początek router do rozebrania i obejrzenia, ciężko wróżyć tak tylko po objawach

maxikaaz
27-07-2024 14:55
@servee - cały kontroler nie pada tak sobie z powodu "zbiegu okoliczności",
więc prawdopodobnie gdzieś przepięcie.

servee
25-07-2024 13:33
@maxikaaz: działało, aż pewnego pięknego dnia przestało działać. W tym dniu była też burza, ale to raczej zbieg okoliczności.

maxikaaz
25-07-2024 11:38
@servee - o ile problem jest w obrębie samych wyjść (dławiki, warystory), to naprawialne, ale jeśli w samym SoC - to nienaprawialne ze względu na koszta. A co było przyczyną?

95,691,018 unikalnych wizyt