الشرح للروتر بورد والكيسه والاصدرات القديمة من نسخ الميكروتك
تحميل الاسكربت للروتر بورد والكيسه الاصدرات القديمة فقط
/ppp profile
set *0 change-tcp-mss=default comment="{\r\
\n#\?\? \?\?\?\?\?\? \?\?\? \?\?\?\?\?\? \?\?\?\?\? \?\?\?\?\? \?\?\?\?\?\r\
\n:local user \"elaraby\"\r\
\n#\?\? \?\?\?\?\?\? \?\?\?\? \?\?\?\?\?\?\? \?\?\?\?\? \?\?\?\?\? \?\?\?\?\
\?\r\
\n:local MB 20480\r\
\n:local c [/ppp secret get value-name=comment [find name=\"\$user\"]]\r\
\n:local c2 [:pick \$c ([find \$c \"\\\$@\"]+3) [:len \$c]]\r\
\n:if (\$c=\"\"||\$c2=\"Finished\") do={\r\
\n/ppp secret set comment=\"\\\$@Total=\$MB MB@t Tx=0 MB@tx Rx=0 MB@rx\" [fi\
nd name=\"\$user\"]\r\
\n}}\r\
\n" only-one=yes use-ipv6=default
add comment=20480................... local-address=5.5.5.2 name="20 GB" \
only-one=yes rate-limit=256k/1024k remote-address=PPP
add comment=40960................ local-address=5.5.5.2 name="40 GB" only-one=\
yes rate-limit=256k/1024k remote-address=PPP
add comment=61440.................... local-address=5.5.5.2 name="60 GB" \
only-one=yes rate-limit=256k/1024k remote-address=PPP
add comment=81920.............. local-address=5.5.5.2 name="80 GB" only-one=yes \
rate-limit=256k/1024k remote-address=PPP
add comment=102400............ local-address=5.5.5.2 name="100 GB" only-one=yes \
rate-limit=256k/1024k remote-address=PPP
add comment=122880............... local-address=5.5.5.2 name="120 GB" only-one=\
yes rate-limit=256k/1024k remote-address=PPP
add comment=143360................. local-address=5.5.5.2 name="140 GB" \
only-one=yes rate-limit=256k/1024k remote-address=PPP
add comment=163840......................... local-address=5.5.5.2 name="160 GB"
only-one=yes rate-limit=256k/1024k remote-address=PPP
add comment=184320.................. local-address=5.5.5.2 name="180 GB" \
only-one=yes rate-limit=256k/1024k remote-address=PPP
add comment=204800............................... local-address=5.5.5.2 name=\
"200 GB" only-one=yes rate-limit=256k/1024k remote-address=PPP
set *FFFFFFFE change-tcp-mss=default comment="{\r\
\n#\?\? \?\?\?\?\?\? \?\?\? \?\?\?\?\?\? \?\?\?\?\? \?\?\?\?\? \?\?\?\?\?\r\
\n:local user \"elaraby\"\r\
\n#\?\? \?\?\?\?\?\? \?\?\?\? \?\?\?\?\?\?\? \?\?\?\?\? \?\?\?\?\? \?\?\?\?\
\?\r\
\n:local MB 20480\r\
\n:local c [/ppp secret get value-name=com
\n:local c2 [:pick \$c ([find \$c \"\\\$@\
\n:if (\$c=\"\"||\$c2=\"Finished\") do={\r
\n/ppp secret set comment=\"\\\$@Total=\$M
nd name=\"\$user\"]\r\
\n}}\r\
\n" use-encryption=default use-ipv6=defaul
/system scheduler
add comment="\CD\E1 \E3\D4\DF\E1\E5 \C7\E1\E3\E1\CB \C7\E1\C7\D5\DD\D1( \C7\E1\
\CA\DA\CC\C8) \C7\CD\E3\CF \C7\E1\DA\D1\C8\EC" disabled=yes interval=2m \
name=schedule1 on-event="/ip dhcp-server lease remove [find dynamic]" \
policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add comment="\E3\D3\CD \C7\E1\DF\E6\DF\ED\D2 \C7\CD\E3\CF \C7\E1\DA\D1\C8\EC" \
disabled=yes interval=12h10m6s name="remove - cookies" on-event=\
"/ ip hotspot cookie remove [find ]" policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive start-time=\
startup
add interval=10s name="PPP Quota" on-event=":foreach i in=[/ppp secret find prof\
ile=\"20 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add interval=10s name="PPP Quota2" on-event=":foreach i in=[/ppp secret find pro\
file=\"40 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add interval=10s name="PPP Quota3" on-event=":foreach i in=[/ppp secret find pro\
file=\"60 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add interval=10s name="PPP Quota4" on-event=":foreach i in=[/ppp secret find pro\
file=\"80 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add interval=10s name="PPP Quota5" on-event=":foreach i in=[/ppp secret find pro\
file=\"100 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add interval=10s name="PPP Quota6" on-event=":foreach i in=[/ppp secret find pro\
file=\"120 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add interval=10s name="PPP Quota7" on-event=":foreach i in=[/ppp secret find pro\
file=\"140 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add interval=10s name="PPP Quota8" on-event=":foreach i in=[/ppp secret find pro\
file=\"160 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add interval=10s name="PPP Quota9" on-event=":foreach i in=[/ppp secret find pro\
file=\"180 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
add interval=10s name="PPP Quota10" on-event=":foreach i in=[/ppp secret find pr\
ofile=\"200 GB\"] do={\r\
\n/local n [/ppp secret get value-name=name \$i]\r\
\n:if ([:len [/ppp active find name=\$n]]!=0) do={\r\
\n:global pppclient \"\$n\"\r\
\n/system script run \"PPP Quota\"\r\
\n}}\r\
\n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup
/system script
add name="PPP Quota" owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive source="#\$\$\$\$\
\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$#\r\
\n# BY Sinan AlChalabi #\r\
\n# 5/Jul/2016 #\
\r\
\n# PPP Quota Measuring #\r\
\n#\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\
\$\$\$#\r\
\n{\r\
\n:global pppclient \r\
\n:local comm [/ppp secret get value-name=comment [find name=\$pppclient]]\r\
\n:local total [:pick \$comm ([find \$comm \"Total=\"]+6) ([find \$comm \"MB\
@t\"]-1)]\r\
\n:local a [:pick \$comm 0 ([find \$comm \"\\\$@\"]-1) ]\r\
\n:local txo [:pick \$comm ([find \$comm \"Tx=\"]+3) ([find \$comm \"MB@tx\"\
]-1)]\r\
\n:local rxo [:pick \$comm ([find \$comm \"Rx=\"]+3) ([find \$comm \"MB@rx\"\
]-1)]\r\
\n:local tx (([/interface get value-name=tx-byte [find name=\"
\n:local rx (([/interface get value-name=rx-byte [find name=\"
\n:if ((\$tx<\$txo)||(rx<\$rxo)) do={\r\
\n:set txo 0; set rxo 0\r\
\n}\r\
\n:set total (\$total-\$tx-\$rx+\$txo+\$rxo)\r\
\n/ppp secret set comment=\"\$a \\\$@Total=\$total MB@t Tx=\$tx MB@tx Rx=\$r\
x MB@rx\" [find name=\"\$pppclient\"]\r\
\n/ppp secret set limit-bytes-out=(\$total*1024*1024) limit-bytes-in=(\$tota\
l*1024*1024) [find name=\"\$pppclient\"]\r\
\n:if (\$total<=0) do={\r\
\n/ppp secret disable [find name=\"\$pppclient\"]\r\
\n/ppp active remove [find name=\"\$pppclient\"]\r\
\n/ppp secret set comment=\"\$a \\\$@ Finished\" [find name=\"\$pppclient\"]\
\r\
\n}\r\
\n}\r\
\n\r\
\n\r\
\n"
--------------------------------------------------------------------------------------------
{
#قم بادخال اسم العميل نهاية السطر ادناه
:local user "ahmed"
#قم بادخال كمية الميكات نهاية السطر ادناه
:local MB 40960
:local c [/ppp secret get value-name=comment [find name="$user"]]
:local c2 [:pick $c ([find $c "\$@"]+3) [:len $c]]
:if ($c=""||$c2="Finished") do={
/ppp secret set comment="\$@Total=$MB MB@t Tx=0 MB@tx Rx=0 MB@rx" [find name="$user"]
}}
0 التعليقات لموضوع "تحديد جيجات للعملاء الكيسه والروتر بورد والنسخ القديمه من ميكروتك"
الابتسامات الابتسامات