hi
i have mikrotik router ver 2.8 and have to generate pop up for the clients when clients 90% of package have been used.
is it possible, if yes please let me know the scripts
(both the case hourly and data transfer based package)
:local sum; :local traf;
:set sum 0
/ip firewall rule accounting{
:foreach i in [find] do={:incr sum}
:for i from=1 to=$sum do={
:set traf [get [find comment=("user" . $i)]
bytes]
:set traf ($traf/1073741824*100)
:if ($traf>90) do={/ip firewall dst-nat add limit-count=1 limit-time=356d dst-port=80 protocol=tcp action=nat to-dst-address=<someIPaddress> to-dst-port=<someport> src-address=[get [find comment=("user" . $i)]dst-address]
:log facility=System-Info message=("user" . $i .
" exceeded 90% of 1Gb limit!")}
}
}
limit-count=1
be placed on the /hotspot folder? or somewhere else?http://someIPaddress:someport/
GET /<some page you want to get> HTTP/1.0