wrt54gl 1.1 tomato 1.27 problem z predkoscia
|
x0dus |
Dodano 26-01-2010 01:41
|
User
Posty: 15
Dołączył: 20/01/2010 00:56
|
wiec tak zaczne od razu na czym problem polega
sciagam se torrenty np przez pare minut zasysa niezle 100-300 Kb/s po tych paru minutach predkosc spada na 8-20Kb/s na jakas 2,3 minuty i dalej zassysa normalnie i tak w kolko
pewnie bedziecie chcieli moje wpisy rozne wiec zaczne od tego co mam w firewall
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 4000kbit
$TCA parent 1:1 classid 1:10 htb rate 3800kbit ceil 3900kbit prio 0
$TCA parent 1:1 classid 1:11 htb rate 700kbit ceil 720kbit prio 1
$TCA parent 1:1 classid 1:12 htb rate 180kbit ceil 200kbit prio 2
$TCA parent 1:1 classid 1:13 htb rate 180kbit ceil 200kbit prio 2
$TCA parent 1:1 classid 1:14 htb rate 400kbit ceil 500kbit prio 1
$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
$TFA parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10
$TFA parent 1:0 prio 1 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 1 protocol ip handle 14 fw flowid 1:14
iptables -t mangle -A POSTROUTING -d 192.168.1.100 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.1.101 -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -d 192.168.1.102 -j MARK --set-mark 12
iptables -t mangle -A POSTROUTING -d 192.168.1.103 -j MARK --set-mark 13
iptables -t mangle -A POSTROUTING -d 192.168.1.104 -j MARK --set-mark 14
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 240kbit
$TCAU parent 1:1 classid 1:10 htb rate 230kbit ceil 235kbit prio 0
$TCAU parent 1:1 classid 1:11 htb rate 60kbit ceil 80kbit prio 1
$TCAU parent 1:1 classid 1:12 htb rate 20kbit ceil 40kbit prio 2
$TCAU parent 1:1 classid 1:13 htb rate 20kbit ceil 40kbit prio 2
$TCAU parent 1:1 classid 1:14 htb rate 60kbit ceil 80kbit prio 1
$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
$TFAU parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10
$TFAU parent 1:0 prio 1 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 1 protocol ip handle 14 fw flowid 1:14
iptables -t mangle -A PREROUTING -s 192.168.1.100 -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -s 192.168.1.101 -j MARK --set-mark 11
iptables -t mangle -A PREROUTING -s 192.168.1.102 -j MARK --set-mark 12
iptables -t mangle -A PREROUTING -s 192.168.1.103 -j MARK --set-mark 13
iptables -t mangle -A PREROUTING -s 192.168.1.104 -j MARK --set-mark 14
iptables -t mangle -A PREROUTING -j IMQ --todev 0
/jffs/board/board/messages.sh
/jffs/board/board/blocked.sh
iptables -t nat -A PREROUTING -p tcp --dport 8000 -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
/jffs/statperuser/statinit.sh
Wan Up:
/jffs/rstatbackup/rstatinit.sh
/jffs/board/mini_httpd -p 8000 -u root -c "**.cgi" -d /jffs/board
/jffs/skintomato/skininit.sh
Shutdown:
/jffs/statperuser/statbackup.sh
Init:
cru a qos_1 "00 23 * * * nvram set qos_ibw=4000;service qos restart"
cru a qos_2 "00 11 * * * nvram set qos_ibw=2000;service qos restart"
dodam ze port do torrenta mam przekierowany mapowanie upnp wlaczone
a w qosie standardowy Bulka Traffic ustawiony na medium
jesli ktos zna przyczne badz pomysly jak to naprawic prosze o pomoc! :P
wkleje jeszcze wam kawalek logu tomato
Cytat unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=00:25:9c:d7:c0:8e:00:19:2f:e6:93:d9:08:00:45:20:00:1d SRC=85.222.87.65 DST=81.190.130.xx LEN=29 TOS=0x00 PREC=0x20 TTL=119 ID=22605 PROTO=UDP SPT=2051 DPT=9881 LEN=9
Jan 26 04:17:44 unknown user.warn kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.1.102 DST=81.100.99.122 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=21102 DF PROTO=TCP SPT=2405 DPT=11195 WINDOW=64240 RES=0x00 SYN URGP=0 OPT (020405B401010402)
Jan 26 04:17:44 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:19:2f:e6:93:d9:08:00:45:00:01:2b SRC=10.122.0.1 DST=255.255.255.255 LEN=299 TOS=0x00 PREC=0x00 TTL=255 ID=34633 PROTO=UDP SPT=67 DPT=68 LEN=279
Jan 26 04:17:44 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=00:25:9c:d7:c0:8e:00:19:2f:e6:93:d9:08:00:45:20:00:1d SRC=83.11.56.158 DST=81.190.130.xx LEN=29 TOS=0x00 PREC=0x20 TTL=117 ID=4325 PROTO=UDP SPT=23300 DPT=35173 LEN=9
Jan 26 04:17:44 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=00:25:9c:d7:c0:8e:00:19:2f:e6:93:d9:08:00:45:20:00:1d SRC=85.222.87.65 DST=81.190.130.xx LEN=29 TOS=0x00 PREC=0x20 TTL=119 ID=22636 PROTO=UDP SPT=2051 DPT=9881 LEN=9
Jan 26 04:17:45 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=00:25:9c:d7:c0:8e:00:19:2f:e6:93:d9:08:00:45:20:00:1d SRC=85.145.169.49 DST=81.190.130.xx LEN=29 TOS=0x00 PREC=0x20 TTL=112 ID=46559 PROTO=UDP SPT=51180 DPT=57861 LEN=9
Jan 26 04:17:45 unknown user.warn kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.1.100 DST=95.27.161.177 LEN=95 TOS=0x00 PREC=0x00 TTL=127 ID=5861 PROTO=UDP SPT=6112 DPT=27090 LEN=75
Jan 26 04:17:46 unknown user.warn kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.1.102 DST=99.89.89.8 LEN=55 TOS=0x00 PREC=0x00 TTL=127 ID=21141 PROTO=UDP SPT=15229 DPT=18300 LEN=35
Jan 26 04:17:46 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=00:25:9c:d7:c0:8e:00:19:2f:e6:93:d9:08:00:45:20:00:37 SRC=201.252.77.109 DST=81.190.130.xx LEN=55 TOS=0x00 PREC=0x20 TTL=115 ID=63759 PROTO=UDP SPT=19547 DPT=15229 LEN=35
Jan 26 04:17:47 unknown user.warn kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.1.100 DST=76.168.119.19 LEN=95 TOS=0x00 PREC=0x00 TTL=127 ID=5916 PROTO=UDP SPT=6112 DPT=41537 LEN=75
Jan 26 04:17:48 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=00:25:9c:d7:c0:8e:00:19:2f:e6:93:d9:08:00:45:20:00:1d SRC=85.222.87.65 DST=81.190.130.xx LEN=29 TOS=0x00 PREC=0x20 TTL=119 ID=22700 PROTO=UDP SPT=2051 DPT=9881 LEN=9
Jan 26 04:17:48 unknown user.warn kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.1.102 DST=97.103.214.19 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=21172 DF PROTO=TCP SPT=2411 DPT=21950 WINDOW=64240 RES=0x00 SYN URGP=0 OPT (020405B401010402)
Jan 26 04:17:48 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=00:25:9c:d7:c0:8e:00:19:2f:e6:93:d9:08:00:45:20:00:1d SRC=72.27.110.51 DST=81.190.130.xx LEN=29 TOS=0x00 PREC=0x20 TTL=112 ID=6233 PROTO=UDP SPT=54189 DPT=52828 LEN=9
Jan 26 04:17:49 unknown user.warn kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.1.100 DST=82.33.51.151 LEN=95 TOS=0x00 PREC=0x00 TTL=127 ID=5984 PROTO=UDP SPT=6112 DPT=40742 LEN=75
Jan 26 04:17:49 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=00:25:9c:d7:c0:8e:00:19:2f:e6:93:d9:08:00:45:20:00:1d SRC=86.129.35.210 DST=81.190.130.xx LEN=29 TOS=0x00 PREC=0x20 TTL=103 ID=44283 PROTO=UDP SPT=63213 DPT=1042 LEN=9
Jan 26 04:17:50 unknown user.warn kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.1.102 DST=85.222.87.65 LEN=53 TOS=0x00 PREC=0x00 TTL=127 ID=21210 PROTO=UDP SPT=9881 DPT=46760 LEN=33
Jan 26 04:17:51 unknown user.warn kernel: ACCEPT IN=br0 OUT=vlan1 SRC=192.168.1.100 DST=79.129.213.129 LEN=95 TOS=0x00 PREC=0x00 TTL=127 ID=6041 PROTO=UDP SPT=6112 DPT=12925 LEN=75
Jan 26 04:17:51 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:19:2f:e6:93:d9:08:00:45:00:01:2b SRC=10.122.0.1 DST=255.255.255.255 LEN=299 TOS=0x00 PREC=0x00 TTL=255 ID=34715 PROTO=UDP SPT=67 DPT=68 LEN=279
Jan 26 04:17:51 unknown user.warn kernel: DROP IN=vlan1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:19:2f:e6:93:d9:08:00:45:00:01:32 SRC=10.122.0.1 DST=255.255.255.255 LEN=306 TOS=0x00 PREC=0x00 TTL=255 ID=34731 PROTO=UDP SPT=67 DPT=68 LEN=286
Edytowany przez x0dus dnia 26-01-2010 04:25
|
|
|
|
shibby |
Dodano 26-01-2010 09:00
|
SysOp
Posty: 17111
Dołączył: 15/01/2009 20:30
|
a w kazdym temacie odnosnie skryptu pisze
jak uzywasz skryptu to wylacz QoS!
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
|
|
|
|
x0dus |
Dodano 26-01-2010 14:38
|
User
Posty: 15
Dołączył: 20/01/2010 00:56
|
qos wylaczony i dalej to samo nawet przywracalem ustawienia fabryczne i dalej tak zaciagal juz niemam pomyslow co z tym zrobic |
|
|
|
shibby |
Dodano 26-01-2010 15:47
|
SysOp
Posty: 17111
Dołączył: 15/01/2009 20:30
|
dobra na poczatek tak. co to za komp 192.168.1.100?
popatrz na jego klase!!
pierwsza zasada tworzenia skryptu HTB: suma gwarantowanych predkosci nie moze przekroczyc predkosci klasy root!!!
troche matematyki
3800+700+180+180+400 <= 4000?!?!?
230+60+20+20+60 <= 256?!?!?
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
|
|
|
|
x0dus |
Dodano 26-01-2010 17:57
|
User
Posty: 15
Dołączył: 20/01/2010 00:56
|
no ja wiem ale ustawialem tak bo chcialem zeby moj komp mial cala przepustowosc a reszta tak jak ma da sie tak zrobic ?
ale i tak skrypt HTB niema nic do rzeczy wkoncu robilem przywrocenie ustawien fabrycznych z wyczyszczeniem pamieci i dalej tak samo pobieralo |
|
|
|
shibby |
Dodano 26-01-2010 18:54
|
SysOp
Posty: 17111
Dołączył: 15/01/2009 20:30
|
ty nie bierz sobie za tester torrenta tylko przetestuj np przez speedtest.pl
Cytat no ja wiem ale ustawialem tak bo chcialem zeby moj komp mial cala przepustowosc a reszta tak jak ma da sie tak zrobic ?
NIE, suma predkosci gwarantowanych nie moze przekraczac roota. zreszta dawanie sobie 3800-3900 to glopota. Jeszcze wieksza glupota jest dawanie sobie na dzien dobry pelny wysyl.
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
|
|
|
|
x0dus |
Dodano 26-01-2010 19:24
|
User
Posty: 15
Dołączył: 20/01/2010 00:56
|
no dobra to jedna sprawa jeszcze mnie meczy o 11 rano mam 2000/256 a w nocy o 23 mam 4000/256 wiec jak teraz ustawic zeby dwa skrypty w firewall sie ladowaly o danej porze ? |
|
|
|
shibby |
Dodano 26-01-2010 22:02
|
SysOp
Posty: 17111
Dołączył: 15/01/2009 20:30
|
po lewej masz wiki-tomato, zagladales?
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
|
|
|
|
x0dus |
Dodano 27-01-2010 02:07
|
User
Posty: 15
Dołączył: 20/01/2010 00:56
|
no teraz zajrzalem ustawilem wszystko tak jak trzeba podzielilem lacze rowno wykorzystujac jego moc 90% zrobic te skrypty na dzien i na noc
ale dalej pobiero tak jak pobieralo jakis czas temu neta podlaczylem bezposirednio do mojego kompa i pobieralo normalnie po tym zdarzeniu podlaczylem go na nowo do routera ustawilem taki sam mac na wan jaki mam na PC-moim zresetowalem modem i router i jak narazie pobiera normalnie bez takich zacinek zobaczymy jak to bedzie wygladac w najblizszym czasie jesli nic z tego nie bedzie wroce ponownie z nowym postem o porady :P
dzien:
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 2000kbit
$TCA parent 1:1 classid 1:10 htb rate 1000kbit ceil 1800kbit prio 1
$TCA parent 1:1 classid 1:11 htb rate 550kbit ceil 1200kbit prio 1
$TCA parent 1:1 classid 1:12 htb rate 100kbit ceil 150kbit prio 2
$TCA parent 1:1 classid 1:13 htb rate 100kbit ceil 150kbit prio 2
$TCA parent 1:1 classid 1:14 htb rate 150kbit ceil 1000kbit prio 1
$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
$TFA parent 1:0 prio 1 protocol ip handle 10 fw flowid 1:10
$TFA parent 1:0 prio 1 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 1 protocol ip handle 14 fw flowid 1:14
iptables -t mangle -A POSTROUTING -d 192.168.1.100 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.1.101 -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -d 192.168.1.102 -j MARK --set-mark 12
iptables -t mangle -A POSTROUTING -d 192.168.1.103 -j MARK --set-mark 13
iptables -t mangle -A POSTROUTING -d 192.168.1.104 -j MARK --set-mark 14
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 256kbit
$TCAU parent 1:1 classid 1:10 htb rate 140kbit ceil 220kbit prio 1
$TCAU parent 1:1 classid 1:11 htb rate 20kbit ceil 80kbit prio 1
$TCAU parent 1:1 classid 1:12 htb rate 20kbit ceil 40kbit prio 2
$TCAU parent 1:1 classid 1:13 htb rate 20kbit ceil 40kbit prio 2
$TCAU parent 1:1 classid 1:14 htb rate 20kbit ceil 80kbit prio 1
$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
$TFAU parent 1:0 prio 1 protocol ip handle 10 fw flowid 1:10
$TFAU parent 1:0 prio 1 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 1 protocol ip handle 14 fw flowid 1:14
iptables -t mangle -A PREROUTING -s 192.168.1.100 -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -s 192.168.1.101 -j MARK --set-mark 11
iptables -t mangle -A PREROUTING -s 192.168.1.102 -j MARK --set-mark 12
iptables -t mangle -A PREROUTING -s 192.168.1.103 -j MARK --set-mark 13
iptables -t mangle -A PREROUTING -s 192.168.1.104 -j MARK --set-mark 14
#/jffs/board/board/messages.sh
#/jffs/board/board/blocked.sh
#iptables -t nat -A PREROUTING -p tcp --dport 8000 -j ACCEPT
#iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
#/jffs/statperuser/statinit.sh
iptables -t mangle -A PREROUTING -j IMQ --todev 0
noc:
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 4000kbit
$TCA parent 1:1 classid 1:10 htb rate 2800kbit ceil 3500kbit prio 1
$TCA parent 1:1 classid 1:11 htb rate 550kbit ceil 1200kbit prio 1
$TCA parent 1:1 classid 1:12 htb rate 100kbit ceil 150kbit prio 2
$TCA parent 1:1 classid 1:13 htb rate 100kbit ceil 150kbit prio 2
$TCA parent 1:1 classid 1:14 htb rate 150kbit ceil 1000kbit prio 1
$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
$TFA parent 1:0 prio 1 protocol ip handle 10 fw flowid 1:10
$TFA parent 1:0 prio 1 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 1 protocol ip handle 14 fw flowid 1:14
iptables -t mangle -A POSTROUTING -d 192.168.1.100 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.1.101 -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -d 192.168.1.102 -j MARK --set-mark 12
iptables -t mangle -A POSTROUTING -d 192.168.1.103 -j MARK --set-mark 13
iptables -t mangle -A POSTROUTING -d 192.168.1.104 -j MARK --set-mark 14
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 256kbit
$TCAU parent 1:1 classid 1:10 htb rate 140kbit ceil 220kbit prio 1
$TCAU parent 1:1 classid 1:11 htb rate 20kbit ceil 80kbit prio 1
$TCAU parent 1:1 classid 1:12 htb rate 20kbit ceil 40kbit prio 2
$TCAU parent 1:1 classid 1:13 htb rate 20kbit ceil 40kbit prio 2
$TCAU parent 1:1 classid 1:14 htb rate 20kbit ceil 80kbit prio 1
$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
$TFAU parent 1:0 prio 1 protocol ip handle 10 fw flowid 1:10
$TFAU parent 1:0 prio 1 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 1 protocol ip handle 14 fw flowid 1:14
iptables -t mangle -A PREROUTING -s 192.168.1.100 -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -s 192.168.1.101 -j MARK --set-mark 11
iptables -t mangle -A PREROUTING -s 192.168.1.102 -j MARK --set-mark 12
iptables -t mangle -A PREROUTING -s 192.168.1.103 -j MARK --set-mark 13
iptables -t mangle -A PREROUTING -s 192.168.1.104 -j MARK --set-mark 14
#/jffs/board/board/messages.sh
#/jffs/board/board/blocked.sh
#iptables -t nat -A PREROUTING -p tcp --dport 8000 -j ACCEPT
#iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
#/jffs/statperuser/statinit.sh
iptables -t mangle -A PREROUTING -j IMQ --todev 0
qos wylaczony |
|
|
|
shibby |
Dodano 27-01-2010 08:34
|
SysOp
Posty: 17111
Dołączył: 15/01/2009 20:30
|
w dzien jest ok ale w nocy zmniejsz gwarant dla 1:10 na np 1500 i max 3500.
Nie rozumiesz idei dzielenia dynamicznego. Daj routerowi troche swobody, niech ma sie czym wykazac.
ponadto prosilem bys sprawdzil jak sie zachowa skrypt w przypadku testu na speedtest.pl badz pobierania duzego pliku z szybkiego serwera (np sterowniki nvidii). Nie obieraj sobie za tester torrenta.
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
|
|
|