Help setup a time script

for example:
I have 5 users. I want to let them connect at 5p.m. and disconnect them at 7a.m. EVERY DAY. what the script should look like? and i think maybe must be combined with scheduler.
thanks for any help.

add a schedule action at start time:

/ppp secret set [find] disabled=no

This script enables all accounts. (if you use PPPoE or PPTP)


add a schedule action at stop time:

/ppp secret set [find] disabled=yes
/interface ethernet set [find name=LAN] disabled=yes
/interface ethernet set [find name=LAN] disabled=no

This script disables all accounts. Then stops the local interface. This causes all users to be disconnected and then renables it.

i have 25 users but only for 5 i want to use the method

so what`s [find] supposed to mean?

do i have to create a new profile for those 5 users?

my internet NIC its called internet and lan NIC its called lan

the easyest way is to create new profile and change [find] to [find profile=pname]

other way is to change [find] to [find name=username] but then you must copy this for every user you want to be stopped

then change [find name=LAN] to [find name=lan] (or anything else)

Thank you very much dear friend!

I think it would be better to PPPoE or PPTP and a radius server that support the timing system you want.

John