Community discussions

MikroTik App
 
HAD
just joined
Topic Author
Posts: 16
Joined: Fri Jul 23, 2010 1:25 am

SCRIPTING HELP

Tue Aug 17, 2010 8:52 pm

HI
I'm using usermanager
I want to remaind the user if is having less than 24 hour to close his account
but no success tell now
i tried this script
:foreach i in=[/ip hotspot active find Session-Time-Left < 23:59:59]\
do={
:log info ("payment reminder: " . [/ip hotspot active get $i user]);
/redirect to www.whatever.html ;

}

any possble way to correct the script

thanks
 
HAD
just joined
Topic Author
Posts: 16
Joined: Fri Jul 23, 2010 1:25 am

Re: SCRIPTING HELP

Sat Aug 21, 2010 4:36 am

please help
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: SCRIPTING HELP

Sat Aug 21, 2010 5:51 am

The Hotspot servlets already redirect all HTTP traffic to themselves so this is rather hard to do.

You can't use scripts at all. Scripts cannot affect traffic flowing through the router directly. You have to use the script to populate an address-list. Based on that address list you have to accept all traffic in the pre-hotspot NAT chain to circumvent the servlet. You can the roughly use the guide at http://wiki.mikrotik.com/wiki/Payment_Reminders. Your script should also parse the has-seen-reminder list and use it to remove people from the initial list populated with people that have less than 24 hours left.

Good luck.
 
HAD
just joined
Topic Author
Posts: 16
Joined: Fri Jul 23, 2010 1:25 am

Re: SCRIPTING HELP

Sat Sep 04, 2010 6:10 pm

THANK YOU
still hard task

Who is online

Users browsing this forum: No registered users and 71 guests