-
Notifications
You must be signed in to change notification settings - Fork 1
/
Limited Scripts.txt
89 lines (40 loc) · 1.39 KB
/
Limited Scripts.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
on login
/queue simple add max-limit=287k/1000k name=$user target=$address;
:delay 2s
/system script run al.h.s;
-----------------------------
on logout
/queue simple remove [find name=$user];
/system script run al.h.s;
-----------------------------
Terminal
/system scheduler
add comment=FB.com/alharth6 name=b.n.b on-event=\
"/queue simple remove [find];" policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
start-time=startup;
------------------------------
Terminal
/system script
add comment=FB.com/alharth6 name=al.h.s policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="{\
\r\
\n:local v 4;\r\
\n:local t [ :len [/ip hotspot active find] ];\r\
\n:if (\$t=0) do={:set t 1;}\r\
\n:local s (\$v*1800000);\r\
\n:local q (\$s/\$t);\r\
\n:local h (\$q/3);\r\
\n/queue simple set [find priority=\"8/8\" and dynamic=no and comment!=1] \
max-limit=\"\$h/\$q\"\r\
\n}"
adjust the first variable (local v "4") to your internet speed.
-------------------------------
If you want a constant speed
onlogin
/queue simple add max-limit=187k/300k name=$user comment="1" target=$address;
:delay 2s
/system script run al.h.s;
187k/300k
Change this to what you want
-----------------------------