Mark non authorized user pppoe URGENT

Hello
I want to mark non authorized users in pppoe, because i want to redirect them to web page where they can read that they need to pay to get to the internet.

If user have balance he can access internet if not i want to redirect him to webpage.

I am using mikrotik usermanager L6 4.5.
I have public IP for all users.

Please help me to figureout this

Thank you

Enable the web proxy. Add an access rule that denies all access with a redirect action pointing to your announcement page. Use the dst-nat chain to redirect the unauthorized clients to the proxy, make sure you exclude traffic going to the announcement page from being redirected that way.

Hello
Thank you for helping, how i can do this ----> redirect the unauthorized clients to the proxy??

Thank you

Look up the transparent proxy examples on the wiki.

I know how to redirect, but i want to know how i can choose authorized and non authorized, this is my problem

Assign unauthorized clients addresses in a predictable range, or put them on an address-list.

But when client is unauthorized in pppoe he doesnot have ip, yes? how i can make access list if clients dont have ip address

You can’t redirect a client if he doesn’t have an IP address yet. How is the web server going to talk to the client without an IP address on the client to talk to?

But how i can give pppoe user ip if he doesnot authorized yet?

If ‘not authorized’ means that their credentials will not work and they can’t log in then you cannot, and you cannot redirect them to any web page as a result.

Other people leave the credentials of users without payment intact but redirect to a web page as described above and block all other traffic.