Community discussions

MikroTik App
 
sleimanr
Member Candidate
Member Candidate
Topic Author
Posts: 176
Joined: Mon Oct 18, 2010 9:31 am

Script

Wed Mar 23, 2011 3:19 pm

Hi all,

I need to create a script that disconnects all PPPoE users at 12:01 (just after midnight) on the third day of the month.
if the customer open any page it must go login.html

plz i need solution....



thx all,
 
User avatar
omega-00
Forum Guru
Forum Guru
Posts: 1167
Joined: Sat Jun 06, 2009 4:54 am
Location: Australia
Contact:

Re: Script

Wed Mar 23, 2011 4:00 pm

There's a couple of things you're asking here that need to be clarified:

1. You want it to log out all pppoe users
2. You want it to redirect users to a login page

These 2 cannot work together, if someone is using pppoe and you're forcibly disconnecting them they won't be able to get to any page.
If you however disconnect them and on relogin apply a filter ID to the users pointing to some dst-nat rules redirecting traffic to a specific website this will work.

Or is the redirect bit you're talking about for hotspot users on the same device?
 
sleimanr
Member Candidate
Member Candidate
Topic Author
Posts: 176
Joined: Mon Oct 18, 2010 9:31 am

Re: Script

Wed Mar 23, 2011 6:07 pm

....If "I want the third day of the month to open any page become a www.global-net.com/recharge
This letter just to remind the customer to pay..
 
sleimanr
Member Candidate
Member Candidate
Topic Author
Posts: 176
Joined: Mon Oct 18, 2010 9:31 am

Re: Script

Fri Mar 25, 2011 12:45 am

i need help plzzz
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Script

Fri Mar 25, 2011 12:50 pm

wouldn't it be better to open this page only to those who have not paid? there is a script for it:

http://wiki.mikrotik.com/wiki/Payment_Reminders

Who is online

Users browsing this forum: lmeira and 8 guests