Friday, 20 May 2016

Limit Different Bandwidth In Day and Night For Hotspot Users

/ip hotspot user profile
add idle-timeout=none keepalive-timeout=2m mac-cookie-timeout=3d name=Time-Base rate-limit=300k/2048k \
    transparent-proxy=yes

/system script
add name=night policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api source=": log warning \
    \" Waiting........ ! Changing  Hotspot Users  Profile  By  HAMZA  KHALIl (Day To Night) \"\r\
    \n/ip hotspot user profile set [find name=Time-Base] rate-limit=300k/4096k\r\
    \n: log warning \" Hotspot Users Disconnect For New Queues By HAMZA KHALIL \"\r\
    \n/ip hotspot active remove [find]"
add name=day policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api source=": log warning \" \
    Waiting........ ! Changing  Hotspot Users  Profile  By  HAMZA  KHALIl (Night To Day) \"\r\
    \n/ip hotspot user profile set [find name=Time-Base] rate-limit=300k/2048k\r\
    \n: log warning \" PPPoE Users Disconnect For New Queues By HAMZA KHALIL \"\r\
    \n/ip hotspot active remove [find]"
/system scheduler
add interval=1d name=day on-event=day policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
    start-date=feb/28/2016 start-time=07:00:00
add interval=1d name=night on-event=night policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-date=feb/28/2016 start-time=\
    22:00:00

No comments:

Post a Comment