Page 1 of 1

Redierect hotspot expired users to an information page

Posted: Mon Oct 07, 2013 6:42 am
by dannyboy
Hello,

I want to be able to redirect hotspot users to an information page when their account is expired. I have read about pppoe and having to change users to a expired profile. The issue with me its that i am using hotspot. I dont want to have to keep track of who is expired and who is not. I want it to do it automatically when they are rejected by the hotspot.

So if I have a user that his account has expired, I want that user to be redirected to an information page where there will be a list of distributors where they can go buy a recharge card. All I need is the code so I can paste on my terminal and edit what I need to edit.

Does anyone have this workign?


Thansk

Dannyboy

Re: Redierect hotspot expired users to an information page

Posted: Mon Feb 17, 2014 7:17 am
by rickfrey
Many of the RADIUS/ Billing solutions have this ability. How are you authenticating your users?

Re: Redierect hotspot expired users to an information page

Posted: Mon Mar 24, 2014 1:49 am
by dannyboy
Thank you I got it working!!! ;)

Re: Redierect hotspot expired users to an information page

Posted: Mon Mar 24, 2014 4:18 pm
by rickfrey
That's great news! Glad to hear it :D

Re: Redierect hotspot expired users to an information page

Posted: Wed Mar 26, 2014 1:07 am
by obadaabdullah
Thank you I got it working!!! ;)
do you use hotspot?
how you got it work???

Re: Redierect hotspot expired users to an information page

Posted: Wed Mar 26, 2014 3:09 pm
by moazdabsheh
Thank you I got it working!!! ;)
aren't you suppose to share your solution with the rest of the forum members so everyone would benefit ?!

Re: Redierect hotspot expired users to an information page

Posted: Wed Mar 26, 2014 3:47 pm
by dannyboy
Yes Sorry I thought I did but I guess it was on another forum. Here is what I did:

Redirect to Nopay Site
/ip firewall Nat
add chain=dstnat action=redirect to-ports=8081 protocol=tcp src-address=172.16.50.1-172.16.50.254 dst-port=80 comment=”Redirect to Proxy” disable=no
/ip proxy
Set port=8080,8081
/ip proxy Access
add action=allow disabled=no dst-address= 64.118.86.41
add action=deny disabled=no redirect-to="http://navigowifi.com/payment-reminder.html"


You have to create a profile with that ip pool on pppoe server...

Hope this helped!!

Re: Redierect hotspot expired users to an information page

Posted: Fri Apr 11, 2014 12:09 am
by moazdabsheh
it works well but i noticed something like a bug.
https connection aren't blocked or redirected, such as facebook and google.

anyone who have faced this issue or have a solution ?

Re: Redierect hotspot expired users to an information page

Posted: Thu Apr 24, 2014 2:34 pm
by aacable
it works well but i noticed something like a bug.
https connection aren't blocked or redirected, such as facebook and google.
anyone who have faced this issue or have a solution ?
You can simply create a Filter Rule to block the https port 443 for the expired users ip pool.

Re: Redierect hotspot expired users to an information page

Posted: Thu Apr 24, 2014 5:40 pm
by moazdabsheh
it works well but i noticed something like a bug.
https connection aren't blocked or redirected, such as facebook and google.
anyone who have faced this issue or have a solution ?
You can simply create a Filter Rule to block the https port 443 for the expired users ip pool to ensure misuse.
enlighten me.

P.S: i'm a big fan of your blog, helped me alot.