Prihlásiť sa Odoslať Novinky :: FAQ :: Rozšírené vyhľadávanie :: Napísali o nás :: Ankety
Main Menu
· Home
· 
· FAQ
· 
· Diskusia
· 











Main Menu
· Domov

Moduly
· AvantGo
· Downloads
· FAQ
· News
· Recommend Us
· Reviews
· Search
· Sections
· Stats
· Topics
· Top List
· Web Links
· Forum

Jazyk
Výber jazykovej mutácie:



The time now is 19.09.2020 - 05:03


mikrotik script

Post new topic Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
 
Author Message
jano154
Post subject: mikrotik script  PostPosted: 12.09.2012 - 20:40 #100343
Basic


Joined: Apr 20, 2012
Posts: 6

Caute.
Riesim akurat problem ako spravit script ktory zakaze na 30 min facebook. Potom opat povoli na 30 minut a opat zakaze na 30 min a tak dookola..

FC viem zakazat jednoducho cez:

Code: ›
chain=forward action=drop in-interface=sektory
packet-mark=ispadmin_1241_up content=www.facebook.com


Skusal som cez scheduler spravit tak ze raz zakaze a raz povoli ale takto to nefungule.. lebo ked nastavim povolenie po starte 15min a zakazanie 30 min tak v dalsom cikle to samozrejme uz nemoze chodit.

Rozmyslal som spravit script ktory pri spusteni zisti ci je pravidlo zakazane ak ano tak ho povoli ak je povolene tak ho zakaze.....
da sa to spravit?
Dakujem
 
 View user's profile Send private message  
Reply with quote Back to top
pedro4444
Post subject: mikrotik script  PostPosted: 12.09.2012 - 21:09 #100344
Ucen


Joined: Júl 15, 2011
Posts: 765

jano154 wrote: ›Caute.
Riesim akurat problem ako spravit script ktory zakaze na 30 min facebook. Potom opat povoli na 30 minut a opat zakaze na 30 min a tak dookola..

FC viem zakazat jednoducho cez:

Code: ›
chain=forward action=drop in-interface=sektory
packet-mark=ispadmin_1241_up content=www.facebook.com


Skusal som cez scheduler spravit tak ze raz zakaze a raz povoli ale takto to nefungule.. lebo ked nastavim povolenie po starte 15min a zakazanie 30 min tak v dalsom cikle to samozrejme uz nemoze chodit.

Rozmyslal som spravit script ktory pri spusteni zisti ci je pravidlo zakazane ak ano tak ho povoli ak je povolene tak ho zakaze.....
da sa to spravit?
Dakujem


ale vsak tam nedaj cyklus po starte normal si tam definuj svoj cas, ktory povoli prikaz a dalsi, ktory zakaze prikaz....
Ale da sa to spravit aj tak, ze vytvoris script pomocou, ktory budes ovladat cez scheduler len si to musis spravne nacasocat..
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
JOFO
Post subject: RE: mikrotik script  PostPosted: 12.09.2012 - 22:35 #100345
Majster


Joined: Jan 08, 2006
Posts: 2549

presne, kedysi som to tak robil... t.j. sprav enable toho pravidla na kazdu neparnu cast hodiny a na parnu zasa disable... aby si ma pochopil upresnim... Smile
Code: › pravidlo 1: schedule start 00:00:00 interval 01:00:00 enable rule
pravidlo 2: schedule start 00:30:00 interval 01:00:00 disable rule
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jano154
Post subject: RE: mikrotik script  PostPosted: 13.09.2012 - 13:51 #100351
Basic


Joined: Apr 20, 2012
Posts: 6

JOFO wrote: ›presne, kedysi som to tak robil... t.j. sprav enable toho pravidla na kazdu neparnu cast hodiny a na parnu zasa disable... aby si ma pochopil upresnim... Smile
Code: › pravidlo 1: schedule start 00:00:00 interval 01:00:00 enable rule
pravidlo 2: schedule start 00:30:00 interval 01:00:00 disable rule


Dakujem!
Takto som si to predstavoval aj ja len som mal zle nastaveny scheduler Smile
 
 View user's profile Send private message  
Reply with quote Back to top
JOFO
Post subject: RE: mikrotik script  PostPosted: 13.09.2012 - 20:23 #100361
Majster


Joined: Jan 08, 2006
Posts: 2549

staci sa nad tym trocha lepsie zamysliet a vela veci sa da poriesit trivialne... Smile
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
midnight_man
Post subject: RE: mikrotik script  PostPosted: 13.09.2012 - 20:27 #100363
Majster


Joined: Feb 14, 2011
Posts: 2536

Chlapi mňa zaujíma len jedna vec Very Happy na čo Vám je sakra také pravidlo? Chete nasrať frajerku či čo?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
All times are GMT
Post new topic Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
 
Jump to:  

Powered by PNphpBB2 © 2003-2005 The PNphpBB Group
Credits

(C) SKFree 2002-2010: Powered by POSTNUKE. Môžete prebera? naše správy vo formáte XML(RSS)