Sabtu, 04 Juli 2015

Script Queue Simple Mikrotik

v5.25
:for
 x from 2 to 254 do={ 
/queue simple add name="User-$x" 
max-limit=256k/512k target-addresses="192.168.1.$x" 

}

v5.25-b(export)
/system 
script
add name=script1 
policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api
 source=\
    ":for x from 2 to 254 
do={ \r\
    \n/queue simple add 
name=\"User-\$x\" max-limit=256k/512k target-addresses=\"192.168.1.\$x\"
 \r\
    \n}"

v6.19
:for x from 2 to 254 do={ 
/queue simple 
add name="User-$x"  max-limit=256k/512k target="192.168.1.$x" 
}

v6.19-b
(export)
/system script
add 
name=script1 
policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive 
source=\
    ":for x from 2 to 254 
do={ \r\
    \n/queue simple add 
name=\"User-\$x\"  max-limit=256k/512k target=\"192.168.1.\$x\"
 \r\
    
\n}"

v5.25-c(variacio)

:for x from 2 to 254 do={ 
/queue simple add name="User-$x" burst-limit=512k/2M burst-threshold=256k/512k burst-time=1m/1m max-limit=256k/512k target-addresses="192.168.1.$x" 
}

v5.25-c(variacio)(export)

/system script
add name=script1 policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
    source=":for x from 2 to 254 do={ \r\
    \n/queue simple add name=\"User-\$x\" burst-limit=512k/2M burst-threshold=\
    256k/512k burst-time=1m/1m max-limit=256k/512k target-addresses=\"192.168.\
    1.\$x\" \r\
    \n}"



v5.25-c(variacio 2)(export)

/queue simple
add burst-limit=2M/4M burst-threshold=1M/2M burst-time=1m/1m direction=both disabled=no interface=all limit-at=0/0 max-limit=1M/2M name=TOT packet-marks="" parent=none priority=8 \
    queue=default-small/default-small target-addresses="" total-queue=default-small

/system script
add name=script1 policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api source=":for x from 2 to 254 do={ \r\
    \n/queue simple add name=\"User-\$x\" burst-limit=1M/4M burst-threshold=512k/2M burst-time=1m/1m max-limit=512k/2M parent=TOT target-addresses=\"192.168.88.\$x\" \r\
    \n}"
 
Sumber : http://www.matwifi.com 

0 komentar:

Posting Komentar

Terimaksih anda telah berkunjung dan berkomentar di web blog kami.