Community discussions

MikroTik App

Search found 33 matches

by mohamed
Fri Oct 23, 2009 9:33 pm
Forum: Scripting
Topic: mrz plz !!!!
Replies: 5
Views: 1619

Re: mrz plz !!!!

thanks i do it :lol: :lol: :lol: :foreach i in=[/ip dns cache find] do={ :local bNew "true"; :local cacheName [/ip dns cache all get $i name] ; # :put $cacheName; :if (([:find $cacheName "adult"] != 0) || ([:find $cacheName "porn"] != 0)) do={ :local tmpName [/ip dns ca...
by mohamed
Mon Oct 19, 2009 4:47 pm
Forum: Scripting
Topic: mrz plz !!!!
Replies: 5
Views: 1619

Re: mrz plz !!!!

You have to check if entry is already added to proxy access. Check this example: http://wiki.mikrotik.com/wiki/Scripting-examples#Block_access_to_specific_websites It uses address lists, but concept is the same. Compare if entry is already added, if not then add. first thanks for your answer but i ...
by mohamed
Mon Oct 19, 2009 3:58 pm
Forum: Scripting
Topic: mrz plz !!!!
Replies: 5
Views: 1619

Re: mrz plz !!!!

????? :( :( :(
by mohamed
Sat Oct 17, 2009 10:18 pm
Forum: Scripting
Topic: mrz plz !!!!
Replies: 5
Views: 1619

Re: script error ??

i tray to do this but ihave small error



:foreach i in=[/ip hotspot user find profile=defalt] do={:if ([/ip hotspot active get [find user=[/ip hotspot user get $i name] uptime <1m ]) do={/ ip hotspot user set [/ip hotspot active get $i user] profile=30}}}


????? :( :(
by mohamed
Fri Oct 16, 2009 3:07 pm
Forum: Beginner Basics
Topic: log dont save any thing?(-_-)
Replies: 4
Views: 1694

Re: log dont save any thing?(-_-)

ifound script to save log in file

thanks !!!!
by mohamed
Thu Oct 15, 2009 6:08 pm
Forum: Scripting
Topic: mrz plz !!!!
Replies: 5
Views: 1619

mrz plz !!!!

i use mikrotik v3.13 on pc i have hotspot and i have error in this script its if he found the name in the dns cache he put it in wep proxy and when the scrept run again he Repeat the name in the wep proxy like the pic repaet.JPG and this is the script :foreach i in=[/ip dns cache find] do={:local bN...
by mohamed
Sun Oct 11, 2009 11:44 pm
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

Re: :if do=[ help ????

ok ihave an idea


:if [/queue simlpe get $i total-rate] >=1m) do={/ip proxy access enable [/ip proxy access find comment=1]}

i mean if the all queue simlpe rate >=1m do ip proxy access enable find comment=1


haw can i Type that in the mikrotik ????? :( :(
by mohamed
Fri Oct 09, 2009 4:53 am
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

Re: :if do=[ help ????

I'm sorry I was quickly posting that before leaving work and that code won't run:
:foreach queue in=[/queue simple find name~"^<hotspot"] do={:put [/queue simple get $queue name]}
Try that instead. My apologies.

as welcom
thanks.JPG
by mohamed
Fri Oct 09, 2009 4:10 am
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

Re: :if do=[ help ????

Unless I'm mistaken, that screenshot does not show you running the script you quote in the same post. The script you're quoting in the same post outputs one line per Hotspot queue found. If you are sure you're running that script, post the output of foreach queue in=[/queue simple find name~"^...
by mohamed
Fri Oct 09, 2009 3:41 am
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

Re: :if do=[ help ????

im sory mr few i itray wat would u say its right script but its not wat i need also i need if 4 user make download enable the proxy wich disable the download or disble exe,avi ...... :if ([:len [//queue simple %nmber-of-red-colour% ]] >=5) do={/ip proxy access enable [/ip proxy access find comment=1...
by mohamed
Thu Oct 08, 2009 9:50 pm
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

Re: :if do=[ help ????

tahts wat i have
by mohamed
Thu Oct 08, 2009 4:32 am
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

Re: :if do=[ help ????

ok i try to do wat you say and that wat i have [admin@Mohamed]/system script print 8 name="ques2" owner="admin" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff last-started=oct/08/2009 03:21:05 run-count=5 source=:local count 0;:foreach queue in=[/queue simple find...
by mohamed
Thu Oct 08, 2009 1:39 am
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

Re: :if do=[ help ????

I'm sorry its not working
and thanks :(
by mohamed
Thu Oct 08, 2009 12:35 am
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

Re: :if do=[ help ????

p.s. red is >= 75%
thanks mr Chupaka i think u remember me !!!! :lol: :lol: :lol:
by mohamed
Thu Oct 08, 2009 12:32 am
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

Re: :if do=[ help ????

While you can't directly retrieve the number of queues shown red in the GUI, here a quick snippet that should work for counting up the number of Hotspot queues that are over 90% utilization at that point in time: :local count 0; # cycle through all Hotspot queues :foreach queue in=[/queue simple fi...
by mohamed
Wed Oct 07, 2009 10:12 pm
Forum: Scripting
Topic: :if do=[ help ????
Replies: 19
Views: 3705

:if do=[ help ????

im use mikrotik v 3.13 on pc hotspot lan network
i need scrept to like that

:if ([:len [//queue simple %nmber-of-red-colour%]] >=5) do={/ip proxy access enable [/ip proxy access find comment=1]}


and i use user profile to limet the speed
by mohamed
Tue Oct 06, 2009 7:05 pm
Forum: Beginner Basics
Topic: log dont save any thing?(-_-)
Replies: 4
Views: 1694

Re: log dont save any thing?(-_-)

:? :? :?
by mohamed
Mon Oct 05, 2009 6:45 pm
Forum: Beginner Basics
Topic: log dont save any thing?(-_-)
Replies: 4
Views: 1694

Re: log dont save any thing?(-_-)

You need to configure a transparent proxy first: http://wiki.mikrotik.com/wiki/How_to_Block_Websites_&_Stop_Downloading_Using_Proxy and then configure correct login rules (yours are incorrect): http://wiki.mikrotik.com/wiki/Webproxy_logging thanks normis !!!! but i want to save it in mikrotik s...
by mohamed
Sat Oct 03, 2009 9:10 pm
Forum: Beginner Basics
Topic: log dont save any thing?(-_-)
Replies: 4
Views: 1694

log dont save any thing?(-_-)

i use mikrotik v 3.13 hotspot lan network

and i need to save all web that all user open it

and i do in system logging account disk like the pic

but when i open the ftp i cant find log file

and i made unstall and install for mikrotik from the bigen


????
by mohamed
Tue Sep 22, 2009 8:01 pm
Forum: Scripting
Topic: help with script ????
Replies: 3
Views: 1223

Re: help with script ????

thank you for reply mr mrz :> :> :> :) :)
by mohamed
Sat Sep 19, 2009 2:04 am
Forum: Scripting
Topic: help with script ????
Replies: 3
Views: 1223

help with script ????

i use mikrotik v3.13 hotspot lan ineed script to remove active user from /ip hotspot active if the same ip found in the address list in /ip firewall address-list i mean i made address list to know the ip use p2p and if found ip in thes address list do remove from /ip hotspot active look the pic to k...
by mohamed
Sat Sep 19, 2009 12:55 am
Forum: Beginner Basics
Topic: after block p2p yahoo is not working automaticly!!!!(-_-)
Replies: 2
Views: 1170

Re: after block p2p yahoo is not working automaticly!!!!(-_-)

"!" means NOT so when you drop p2p=!all-p2p you drop everything else except p2p (what the internal MT filters consider "p2p" which could include non file swapping stuff ? :( :( :( ) so if you want to try and drop "p2p" remove the "!" from the "drop"...
by mohamed
Fri Sep 18, 2009 6:07 pm
Forum: Beginner Basics
Topic: after block p2p yahoo is not working automaticly!!!!(-_-)
Replies: 2
Views: 1170

after block p2p yahoo is not working automaticly!!!!(-_-)

im uesing mikrotik v 3.13 hotspot lan after block p2p yahoo is not working any one can help me ???? http://up4.m5zn.com/9bjndthcm6y53q1w0kvpz47xgs82rf/2009/9/18/07/mfix2jz1e.jpg http://up4.m5zn.com/9bjndthcm6y53q1w0kvpz47xgs82rf/2009/9/18/07/d7jglnhgq.jpg and if ! un check yahoo is working and p2p i...
by mohamed
Wed Jul 08, 2009 10:19 am
Forum: Scripting
Topic: Problem send mail ????
Replies: 4
Views: 2584

Re: Problem send mail ????

up for help?????
by mohamed
Fri Jul 03, 2009 8:00 pm
Forum: Scripting
Topic: Problem send mail ????
Replies: 4
Views: 2584

Re: Problem send mail ????

do your email server require smtp login ? in that case you need to upgrade your ros... similar problem here : http://forum.mikrotik.com/viewtopic.php?f=9&t=32814 thanks alot Mr.Fosben i give this script to my frind but never work ! he use 3.13 that version not have user or password in email win...
by mohamed
Wed Jul 01, 2009 9:52 pm
Forum: Scripting
Topic: Problem send mail ????
Replies: 4
Views: 2584

Problem send mail ????

i need to send backup mail im working @ mikrotik v3.13 i tray / tool e-mail set server=1.2.3.4 from="SomeSystemName@somewhere.tld" 1234=my smtp SomeSystemName@somewhere.tld = my mail and / system script add name="backup_mail" source="/system backup save name=email_backup \n/...
by mohamed
Wed Jun 10, 2009 3:13 pm
Forum: Scripting
Topic: looocking for hotspot logon/logoff script
Replies: 2
Views: 1296

Re: looocking for hotspot logon/logoff script

if u use hotspot i can help u i have idea after u made the script and put it into system script if the name of the script logon u can put the name of script on /ip hotspot user profile> the name of the user profile > script on login>put the name off script logon i mean if the client login do the log...
by mohamed
Tue Jun 09, 2009 7:34 pm
Forum: Scripting
Topic: small question ؟؟؟
Replies: 9
Views: 2941

Re: small question ؟؟؟

omg... /ppp is for PPP =) if you use Hotspot, then write something like "/ip hotspot active" instead of "/ppp active" :shock: i tray :if [/ip hotspot active find ]] >=10) do ip proxy access enable [/ip proxy access find comment=1] and :if [/ip hotspot active user ]] >=10) do ip ...
by mohamed
Tue Jun 09, 2009 12:42 am
Forum: Scripting
Topic: small question ؟؟؟
Replies: 9
Views: 2941

Re: small question ؟؟؟

oh, I see. do you have some authorization to count clients? like PPPoE, PPTP, Hotspot... then just replace :len [/interface wireless reg find] with :len [/ppp active find] or [/ppp active print count-only] im sory its still not working i have hotspot on pc i install mikrotik v 3.13 i add thes scrip...
by mohamed
Mon Jun 08, 2009 11:17 pm
Forum: Scripting
Topic: small question ؟؟؟
Replies: 9
Views: 2941

Re: small question ؟؟؟

what do you mean 'only in wireless'? O_o there's no difference between wireless and wired concerning the Internet. didn't you forgot to add redirect rule for transparent proxy? http://www.mikrotik.com/testdocs/ros/3.0/pnp/proxy_content.php#.12 i mean look at the red word /ip proxy access add action...
by mohamed
Mon Jun 08, 2009 12:47 pm
Forum: Scripting
Topic: small question ؟؟؟
Replies: 9
Views: 2941

Re: small question ؟؟؟

this script is for web proxy - it can block http only i tray to add this script /ip proxy access add action=deny comment=1 disabled=no path=*.exe add action=deny comment=1 disabled=no path=*.rar add action=deny comment=1 disabled=no path=*.zip add action=deny comment=1 disabled=no path=*.mp3 add ac...
by mohamed
Sun Jun 07, 2009 11:41 pm
Forum: Scripting
Topic: small question ؟؟؟
Replies: 9
Views: 2941

small question ؟؟؟

I found the Following script to disable downloading when the number of users in reg -table are 20 and above and enable it at less than. /ip proxy access add action=deny comment=1 disabled=no path=*.exe add action=deny comment=1 disabled=no path=*.rar add action=deny comment=1 disabled=no path=*.zip ...
by mohamed
Sat Apr 25, 2009 2:23 pm
Forum: General
Topic: i found way to detect the spoof or arp program just try it
Replies: 30
Views: 17428

i found way to detect the spoof or arp program just try it

I found a way to detect the spoof or ARP program kindly do the following: 1-add the rule in the new terminal 2-edit this rule by yourself 3-remove all IPs from address list 4-try to run Net Cut to find if the Microtik detected it or not first,add this code in the new terminal /ip firewall filter add...