forwarding all HTTP to website for non-paying customers

I want to take all requests from a customers CPE and point them to a server. That server will have a webpage on it that says “pay your damn bill” because you have been shut off.

Also any other traffic going through the router for that specific IP won’t work…its all just dropped.

But no matter what website they go to, they will get forwarded to the “Pay Your Damn Bill” webpage.

Ideas???

maybe you can make a secondary hotspot and change the user profile manually to the custome made hotspot or something like that… I like to know the configuration if anyone know how to set it up…

We did it on the following way:

At first, if the user has no “valid” package and need to pay, PPPoE pool for this user gives him a local IP address (192.168.0.x)

On you web server, make a new one on port 81 for example. On this server sits your “damn bill” page :slight_smile:

In Ip->Firewall set up a rule that passes the traffic from 192.168.0.0/24 on port 53 to your DNS server (so the user can resolve)

In Firewall set up a rule that forwards all traffic on port 80 from 192.168.0.0/24 to your.weberver.ip on port 81.

Finally, add a firewall rule that drops all packets from 192.168.0.0./24

In this way, user can ask for any web page in his browser, but all he got is your “damn bill” page :slight_smile:

Hope this helps!

Cheers,
Jager