Sir.Guil
(usa CentOS)
Enviado em 30/03/2016 - 18:32h
não é possível implementar os dois controles juntos, quando descobri isso fiz o seguinte ("não vou ficar de muita explicação, leia e tire suas conclusões")
/ip hotspot user
name="guilherme" password="****" profile=Escritorio limit-uptime=1d1h uptime=17h18m57s bytes-in=49322552 bytes-out=221357462 packets-in=211603 packets-out=254030
/ip hotspot user profile
name="Escritorio" idle-timeout=none keepalive-timeout=2m status-autorefresh=1m shared-users=1 rate-limit="154k/512k 615k/2M 308k/1M 64/64 8 62k/205k" transparent-proxy=no
/system script
name="Controle_session_timeout_hotspot" owner="guilherme" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api last-started=mar/30/2016 18:20:00 run-count=398 source=
:foreach i in=[/ip hotspot active find] do={:if ([/ip hotspot active get $i uptime]>02:00:00) do={[/ip hotspot active remove $i]}}
:foreach i in=[/ip hotspot active find] do={:if ([/ip hotspot active get $i uptime]>01:00:00) do={:if ([/ip hotspot active get $i idle-time]>00:01:00) do={[/ip hotspot active remove $i]}}}
/system scheduler
name="Controle_session_timeout_hotspot" start-date=mar/28/2016 start-time=00:00:00 interval=10m on-event=Controle_session_timeout_hotspot owner="guilherme" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api run-count=398 next-run=18:30:00
essa foi a solução do problema, esta testada e funcionando, adequem a suas necessidades.
ate a próxima.