الأحد، 27 أغسطس 2017
الأربعاء، 15 فبراير 2017
ايقاف العميل ساعات معينه من استخدام النت في الميكروتك
هلال بن سيف القباطي
4 تعليق
سنقوم بعمل تحديد اوقات معينة للعميل او مجموهة من العملاء والسماح لهم بالوصول الى الانترنت اوقات محددة فقط .. تابع بكل سهولة.
1- نقوم بانشاء بروفايل جديد ونسمية مثلاٌ 9am-9pm
ونحدد السرعة المطلوبة لهذا البروفايل وبياناته كما في الصورة على سبيل المثال
كل ذلك من قائمة IP ثم Hotspot ثم User profile ثم Add
ثم في الاخير يجب ان
تضيف المستخدمين المطلوبيين ايقافهم الى هذا البروفايل الذي انشائتة
2- تروح الى قائمة Systemثم تختار Scheduler واعمل اضافة جديد الاول
للتشغيل بالوقت الذي تريد ان يعمل فيه مثلا ثلا 9 صباحا للتشغيل وتقوم بعمل الاسم كما تشاء وعمل لصق لهذا
الامر في خانةOn Event هذا الامر
profile="9am-9pm"]
3- من قائمة الـ Scheduler
ايضا نقوم بعمل اضافة ثاني للايقاف بالوقت الذي
تريد ان فيه ان يقوم بايقاف المستخدمين مثلا من 9 مساء وتقوم بعمل الاسم كما تشاء وعمل لصق لهذا الامر في خانة On Event هذا الامر
profile="9am-9pm"]
:delay
5
:foreach
i in=[/ip hotspot user find disabled=yes] do={/ip hotspot active remove [find
user=[/ip hotspot user get $i name]]
}
السبت، 11 فبراير 2017
ايقاف التحميل من الساعة 9 الى 12 ليلاً في الميكروتك
هلال بن سيف القباطي
2 تعليق
هناك بعض الاخوة يريدون ايقاف التحميل فترة بسيطة لمدة ساعة او ساعتين مثلا سوف نقوم هنا بشرح طريقة ايقاف تحميل بعض و exe الصيغ مثل تحميل البرامج التنفيذية
الفيديوهات وغيرها من الامتددات المرفقة هنا
الفيديوهات وغيرها من الامتددات المرفقة هنا
سوف نقوم بايقاف التحميل من الساعة 9 الى 12 ليلاً
كل ما عليك هو عمل نسخ ثم لصق لهذة الاوامر في النيوترمنال في الميكروتك
كل ما عليك هو عمل نسخ ثم لصق لهذة الاوامر في النيوترمنال في الميكروتك
/ip firewall mangle
add action=mark-packet chain=output disabled=no \
dscp=4 new-packet-mark=Cache passthrough=no
/ip firewall nat
add action=redirect chain=dstnat comment="stop idm 9 to 12" disabled=no \
dst-port=80 protocol=tcp to-ports=8080
/ip proxy
set always-from-cache=no cache-administrator=webmaster cache-hit-dscp=4 cache-on-disk=yes enabled=yes max-cache-size=none max-client-connections=600 max-fresh-time=3d \
max-server-connections=600 parent-proxy=0.0.0.0 parent-proxy-port=0 port=8080 serialize-connections=no src-address=0.0.0.0
/ip proxy access
add action=deny comment=exe disabled=no dst-port="" path=*.exe
add action=deny comment=rar disabled=no dst-port="" path=*.rar
add action=deny comment=zip disabled=no dst-port="" path=*.zip
add action=deny comment=mp3 disabled=no dst-port="" path=*.mp3
add action=deny comment=wav disabled=no dst-port="" path=*.wav
add action=deny comment=3gp disabled=no dst-port="" path=*.3gp
add action=deny comment=7z disabled=no dst-port="" path=*.7z
add action=deny comment=aac disabled=no dst-port="" path=*.aac
add action=deny comment=avi disabled=no dst-port="" path=*.avi
add action=deny comment=bin disabled=no dst-port="" path=*.bin
add action=deny comment=gz disabled=no dst-port="" path=*.gz
add action=deny comment=gzip disabled=no dst-port="" path=*.gzip
add action=deny comment=img disabled=no dst-port="" path=*.img
add action=deny comment=iso disabled=no dst-port="" path=*.iso
add action=deny comment=lzh disabled=no dst-port="" path=*.lzh
add action=deny comment=m4v disabled=no dst-port="" path=*.m4v
add action=deny comment=mkv disabled=no dst-port="" path=*.mkv
add action=deny comment=mov disabled=no dst-port="" path=*.mov
add action=deny comment=mp4 disabled=no dst-port="" path=*.mp4
add action=deny comment=rmvb disabled=no dst-port="" path=*.rmvb
add action=deny comment=wmv disabled=no dst-port="" path=*.wmv
add action=deny comment=zip disabled=no dst-port="" path=*.zip
/system scheduler
add disabled=no interval=1d name="\DD\CA\CD \C7\E1\CA\CD\E3\ED\E1" on-event=\
"OPen_ idm\r\
\n" policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
start-date=Fep/01/2017 start-time=00:00:00
add disabled=no interval=1d name="\C7\DB\E1\C7\DE \C7\E1\CA\CD\E3\ED\E1" \
on-event=Close_idm policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
start-date=Fep/01/2017 start-time=20:59:00
/system script
add name="OPen_ idm" owner=admin policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
ip proxy access disable \"exe\"\r\
\n/ip proxy access disable \"exe\"\r\
\n/ip proxy access disable \"exe\"\r\
\n/ip proxy access disable \"rar\"\r\
\n/ip proxy access disable \"zip\"\r\
\n/ip proxy access disable \"mp3\"\r\
\n/ip proxy access disable \"wav\"\r\
\n/ip proxy access disable \"3gp\"\r\
\n/ip proxy access disable \"7z\"\r\
\n/ip proxy access disable \"aac\"\r\
\n/ip proxy access disable \"avi\"\r\
\n/ip proxy access disable \"bin\"\r\
\n/ip proxy access disable \"gz\"\r\
\n/ip proxy access disable \"gzip\"\r\
\n/ip proxy access disable \"img\"\r\
\n/ip proxy access disable \"iso\"\r\
\n/ip proxy access disable \"lzh\"\r\
\n/ip proxy access disable \"m4v\"\r\
\n/ip proxy access disable \"mkv\"\r\
\n/ip proxy access disable \"mov\"\r\
\n/ip proxy access disable \"mp4\"\r\
\n/ip proxy access disable \"rmvb\"\r\
\n/ip proxy access disable \"wmv\"\r\
\n/ip proxy access disable \"zip\"\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n"
add name="Close_idm" owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
ip proxy access enable \"exe\"\r\
\n/ip proxy access enable \"exe\"\r\
\n/ip proxy access enable \"exe\"\r\
\n/ip proxy access enable \"rar\"\r\
\n/ip proxy access enable \"zip\"\r\
\n/ip proxy access enable \"mp3\"\r\
\n/ip proxy access enable \"wav\"\r\
\n/ip proxy access enable \"3gp\"\r\
\n/ip proxy access enable \"7z\"\r\
\n/ip proxy access enable \"aac\"\r\
\n/ip proxy access enable \"avi\"\r\
\n/ip proxy access enable \"bin\"\r\
\n/ip proxy access enable \"gz\"\r\
\n/ip proxy access enable \"gzip\"\r\
\n/ip proxy access enable \"img\"\r\
\n/ip proxy access enable \"iso\"\r\
\n/ip proxy access enable \"lzh\"\r\
\n/ip proxy access enable \"m4v\"\r\
\n/ip proxy access enable \"mkv\"\r\
\n/ip proxy access enable \"mov\"\r\
\n/ip proxy access enable \"mp4\"\r\
\n/ip proxy access enable \"rmvb\"\r\
\n/ip proxy access enable \"wmv\"\r\
\n/ip proxy access enable \"zip\"\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n"
السبت، 28 يناير 2017
ربط مستخدمين الهوتسبوت (Hotspot) باول استخدام للكرت في الميكروتك
هلال بن سيف القباطي
4 تعليق
كيفية ربط مستخدمين الهوتسبوت (Hotspot) باول استخدام يعني ربط الكرت باول جهاز يستخدم الكرت
هذا الاسكربت يقوم بربط الكرت باول استخدام ولا يستطيع استخدامة في جهاز جديد.
system ثم schedule كما في الصورة ادناة :
اذن قم بسخ هذا هذا الاسكربت الى الـ Schedule جديد ..
/ip hotspot active
:foreach i in=[find] do={
:global mac [get $i mac-address]
:global add [get $i address]
:global us [get $i user]
:global inter [/ip ho get 0 interface]
/ip hotspot user
:foreach nm in=[find name=$us] do={
:global mac2 [get $nm mac-address]
:if ([find mac-address] ="") do={ set $nm mac-address="$mac" address="$add"
/ip dhcp-server lease add mac-address="$mac" address="$add"
/ip arp add address=$add mac-address=$mac interface=$inter
}}}
وبالتالي اذا حاول المستخدم الدخول عن طريق جهاز اخر لا يستطيع الدخول ويتم رفضة كم في الصورة ادناة.
هذا الاسكربت يقوم بربط الكرت باول استخدام ولا يستطيع استخدامة في جهاز جديد.
system ثم schedule كما في الصورة ادناة :
اذن قم بسخ هذا هذا الاسكربت الى الـ Schedule جديد ..
/ip hotspot active
:foreach i in=[find] do={
:global mac [get $i mac-address]
:global add [get $i address]
:global us [get $i user]
:global inter [/ip ho get 0 interface]
/ip hotspot user
:foreach nm in=[find name=$us] do={
:global mac2 [get $nm mac-address]
:if ([find mac-address] ="") do={ set $nm mac-address="$mac" address="$add"
/ip dhcp-server lease add mac-address="$mac" address="$add"
/ip arp add address=$add mac-address=$mac interface=$inter
}}}
وبالتالي اذا حاول المستخدم الدخول عن طريق جهاز اخر لا يستطيع الدخول ويتم رفضة كم في الصورة ادناة.
اسكربتات هامة في الميكروتك
هلال بن سيف القباطي
3 تعليق
نشارك معكم هذه الاكواد الهامة والتي يستخدمة اي شخص يستخدم نظام الميكروتك
كل ما عليك هو نسخ هذا الكود الى قائمة new terminal ..
1-طريقة حذف جميع الكروت المنتهية الصلاحية في اليوزرمنجر
2-حذف جميع تسجيلات النظام في اليوزرمنجر
/tool user-manager log remove [find]
3-حذف جميع جلسات الاستخدام في اليوزمنجر
/tool user-manager session remove [find]
4-يفضل عمل اعادة بناء لقاعدة البيانات بعد عمل الحذف
5-تغيير باقة هواتسبوت مثلاً من 3 ساعات الى 4 ساعات
كل ما عليك هو نسخ هذا الكود الى قائمة new terminal ..
/tool user-manager user remove [find !actual-profile ]
2-حذف جميع تسجيلات النظام في اليوزرمنجر
/tool user-manager log remove [find]
3-حذف جميع جلسات الاستخدام في اليوزمنجر
/tool user-manager session remove [find]
4-يفضل عمل اعادة بناء لقاعدة البيانات بعد عمل الحذف
/tool user-manager database rebuild
5-تغيير باقة هواتسبوت مثلاً من 3 ساعات الى 4 ساعات
ip hotspot user set [find limit-uptime=3h] limit-uptime=4h
6-تحويل جميع مستخدمين ال Hotspot من تحميل مفتوح الى تحميل مقيد فمثلا لو اردت تحديد باقة ابو 3 ساعات ب 350 ميحا
/ip hotspot user set [find where limit-uptime=3h] limit-bytes-total=350M
ملاحظة مفيدة:
..اخي العزيز تعود داماً على عمل نسخة احتياطية من اعدادت نظامك قبل القيام باي تغييرات في حالة قررت العودة الى اعدادتك السابقةالثلاثاء، 13 ديسمبر 2016
التقيد بالرصيد الفعلي المحدد مسبقا في اليوزرمنجر
هلال بن سيف القباطي
5 تعليق
من الميجا بايت التي حددتها في اليوزر منجر كما في الصور الموضحة
يجب عليهم القيام بالتالي:
1- يجب اخراج جميع المستخدمين من الشبكة
2 - القيام بحذف جميع الجلسات وتسجيلات النظام في اليوزر منجر
3 - القيام بعمل إعادة بناء لقاعدة ييانات اليوزرمنجر
4 - يفضل عمل اعادة التشغيل لسرفر الميكروتك
لا تنسى القيام ايضاً بعمل نسخة احتياطية للقاعدة بيانات اليوزرمنجر
لا تنسى القيام ايضاً بعمل نسخة احتياطية للقاعدة بيانات اليوزرمنجر
لان السماح للمستخدمين للعودة الى الشبكة وكل شي با يكون جيد ولن يتعدى الرصيد المحدد له ابدا .
الثلاثاء، 6 ديسمبر 2016
تحديد الصلاحية لكروت مستخدمين الـ hotspot
هلال بن سيف القباطي
21 تعليق
اولاً:
لكي نقوم بتحديد صلاحية الكروت لمستخدمين الـ hotspot نقوم بعمل نذهب الى قائمه الـ IP ثم user profile واختر نافذة الـ scripts ونعمل لصق لهذا الكود هناك كما في الصوره ادناه
{:local date [ /system clock get date ];:if ( [ /ip hotspot user get $user comment ] = "" ) do={[ /ip hotspot user set $user comment=$date ];}}
ثانياً:
اذا كان لديك اسم البروفايل مثلا 3h نقوم بعمل نسخ لصق لهذا الامر في النيو ترمنل وسوف يقوم بتاكد من اسم الباقه اذا كانت 3h يقوم بعمل صلاحيه لها 3 يعني ثلاث ايام و 100 ريال
/ip hotspot user set [find where limit-uptime=3h] email=3@0_100.ptd
واذا كان لديك الباقه ابو 4 ساعات مثلاتقوم بكتابة هذا الامر ولصقه في النيوترمنل
/ip hotspot user set [find where limit-uptime=4h] email=4@0_200.ptd
وهكذا تقوم الصلاحيه والسعر حسب ما هو مناسب لكحسب فئات العمل لديك
ثالثاً:
نقوم بإضافة اسكربت واعطيه اي اسم مثلا disable_end_users كما في الصوره ادناه
قم بعمل نسخ لصق لهذا الاسكربت في نافذه الـ source
{:global today;{:local date [ /system clock get date ];:local montharray ( "jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec" );:local monthdays ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );:local days [ :pick $date 4 6 ];:local monthtxt [ :pick $date 0 3 ];:local year [ :pick $date 7 11 ];:local months ([ :find $montharray $monthtxt]);:for nodays from=0 to=$months do={:set days ( $days + [ :pick $monthdays $nodays ] )};:set days ($days + $year * 365);:set today $days;};:foreach i in [ /ip hotspot user find where disabled=no ] do={:if ([ :find [ /ip hotspot user get $i comment ] ] = 0 && [ :find [ /ip hotspot user get $i email ] ] = 0) do={:local date [ /ip hotspot user get $i comment ];:local oldemail [ /ip hotspot user get $i email ];:local atmark [ :find $oldemail "@" ];:local dotmark [ :find $oldemail "." ];:if ( $atmark >= 0 && $dotmark >= 0 ) do={:local validity [ :pick $oldemail 0 $atmark];:local rest [ :pick $oldemail ($atmark + 1) [ :len $oldemail] ];:if ( [:tonum $validity] != "" ) do={:if ( [:tonum $validity] != "0" ) do={:local montharray ( "jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec" );:local monthdays ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );:local days [ :pick $date 4 6 ];:local monthtxt [ :pick $date 0 3 ];:local year [ :pick $date 7 11 ];:local months ( [ :find $montharray $monthtxt ] );:for nodays from=0 to=$months do={:set days ( $days + [ :pick $monthdays $nodays ] )};:set days ($days + $year * 365);:if ( ($days + $validity) < $today ) do={ :local name [/ip hotspot user get $i name];:log info "HOTSPOT VALITITY EXPIRE: Disabling Hotspot user $name first logged in $date";[ /ip hotspot user disable $i ];}}}}}}}
الاثنين، 5 ديسمبر 2016
معرفة التحميل والرصيد المتبقي من صفحة الدخول
هلال بن سيف القباطي
21 تعليق
اضافة هذا الكود الى صفحة ال status
بعد بيانات الحساب مباشراً
<span class="auto-style1"> التحميل المتبقي لديك</span>
<span class="auto-style2">: $(remain-bytes-total-nice) </span>
بعد بيانات الحساب مباشراً
<span class="auto-style1"> التحميل المتبقي لديك</span>
<span class="auto-style2">: $(remain-bytes-total-nice) </span>
الأحد، 4 ديسمبر 2016
تحويل جميع مستخدمين ال Hotspot من تحميل مفتوح الى تحميل مقيد
هلال بن سيف القباطي
10 تعليق
كيفية تحويل جميع مستخدمين ال Hotspot من تحميل
مفتوح الى تحميل مقيد فمثلا لو انا اردت تحويل جميع كروت الهواتس بوت
ابو 3 ساعات (3h) من التحميل الى تحميل بصلاحية 350M نقوم
بكتابه الامر التالي في النيو ترمتل
/ip hotspot user set [find where limit-uptime=3h] limit-bytes-total=350M
وهكذا في حاله اردت تغيير اي فئه فقط قم بالتغيير من 3h الى اسم الباقة الخاصة بك
السبت، 3 ديسمبر 2016
كيفية التحويل من نظام الساعات الى الميجا بايت في الميكروتك
هلال بن سيف القباطي
لا يوجد تعليقات
اولاً بالنسبة لمستخدمي كروت الهواتس بوت
ثانيا بالنسبة لكروت اليوزرمنجر
نفتح لايورز منجر وتدخل الى الملفات ثم اختر التحدديات
طبعا
للتحويل للتحويل اولا نشوف
اذا كان التحويل من كبير الى صغير مثلا التحويل من ميجابايت الى كيلوبايت (نضرب) واذا كان التحويل من
صغير الى كبير مثلا التحويل من كيلوبايت الى ميجابايت (نقسم ) فمثلا لو انت تريد تحويل 300 ميجا الى بايت نضرب ( 300 ميجا * 1024 كيلو * 1024 بايت) = 31948800 بايت
ثانيا بالنسبة لكروت اليوزرمنجر
نفتح لايورز منجر وتدخل الى الملفات ثم اختر التحدديات
الاشتراك في:
الرسائل (Atom)























