I need to limit my PPTP users, but I want to do that using scripts. When a user’s download rate is > 1M, I want to limit that speed by scripting. Look at my example. Here I need to give the interface name or IP address who has almost 1M tx-rate. How can I solve these problems?
hai fren
yes, we have scenario after login in, we will reach interface name and modify speed, visit this link at second script one here: Update SMTP & Backup scripts
/ system script
add name=“script1” source=“/interface monitor-traffic [/interface find type=pptp-in ] once do {:if ($received-bits-per-second > 512000) do {/queue simple
add max-limit=262144/262144 target-address=(Must be variable or something else in order to limit by src-address, I mean I want too make QOS using script, I want to make script run and find pptp users whose download rate is > 512000 and limit them adding simple queues)}}” policy=ftp,reboot,read,write,policy,test,winbox,password
Help me please I am not programmer and I don’t uderstand the scripts very well
Hi everyone
So I have written some scripts for Limiting PPTP users bandwith, but sometimes I am having problems, when the script works (In System>Script menu I see that it had been run) it doesn’t change any value or something like that. But when I make script to work manualy, it works very well,