Zákazníčka po mne chcela aby deti nemohli na internet po 10tej večer cez týždeň, ale cez víkend áno. Tak ak sa to niekomu zíde. Je to síce jednoduché, ale účinné. Vypne to LAN rozhranie, po wifine Treba si samozrejme nastaviť čas najlepšie cez SNTP klienta.
SCHEDULER:
/system scheduler
add interval=1w name="2 VYPNI PONDELOK" on-event=VYPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/17/2011 start-time=21
add interval=1w name="1 PONDELOK ZAPNI" on-event=ZAPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/17/2011 start-time=06
add interval=1w name="4 VYPNI UTOROK" on-event=VYPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/18/2011 start-time=21
add interval=1w name="6 VYPNI STREDA" on-event=VYPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/19/2011 start-time=21
add interval=1w name="8 VYPNI STVRTOK" on-event=VYPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/20/2011 start-time=21
add interval=1w name="0 VYPNI NEDELA" on-event=VYPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/23/2011 start-time=21
add interval=1w name="3 UTOROK ZAPNI" on-event=ZAPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/18/2011 start-time=06
add interval=1w name="5 STREDA ZAPNI" on-event=ZAPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/19/2011 start-time=06
add interval=1w name="7 STVRTOK ZAPNI" on-event=ZAPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/20/2011 start-time=06
add interval=1w name="9 PIATOK ZAPNI" on-event=ZAPNI_LAN policy=\
reboot,read,write,policy,test,password,sniff,sensitive start-date=\
jan/21/2011 start-time=06
SKRIPTY:
/system script
add name=VYPNI owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
"/interface ethernet disable ether1"
add name=ZAPNI owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
"/interface ethernet enable ether1"