Redierect hotspot expired users to an information page

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

Many of the RADIUS/ Billing solutions have this ability. How are you authenticating your users?

Thank you I got it working!!! :wink:

That’s great news! Glad to hear it :smiley:

do you use hotspot?
how you got it work???

aren’t you suppose to share your solution with the rest of the forum members so everyone would benefit ?!

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!!

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.

enlighten me.

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