Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 21316

Scripting • Re: speed limit for web server users ?

$
0
0
For now I almost ended till last part where i have error:
Code:
#remove old visitors OK/queue simple remove [ find where parent="debian-server" ]#search for new visitors OK:local addrList {[/ip firewall address-list find where list="web-server-visitors"]:local addrCount [:len $addrList]}:for i from=0 to=($addrCount-1) do={  :local addrItem [:pick $addrList $i]}:local ipAddress [/ip firewall address-list get $addrItem address] :local queueName ("queue-" . $ipAddress) #Creating new queue simple for visitors BAD/queue simple add dst=$ipAddress/32 max-limit=10M/10M name=$queueName parent=debian-server queue=ethernet-default/ethernet-default target=$ipAddress/32
error:expected end of command (line 1 column 33)
Any ideas?

Statistics: Posted by bax2 — Sat Jan 06, 2024 12:35 pm



Viewing all articles
Browse latest Browse all 21316

Trending Articles