I am new to MikrotikOS, and I’m going through a problem.
I want to block my clients who are in debt to the internet service. I would like to redirect these clients for an informational HTML page, saying they are with paying undocumented.
I have researched in various places, but the only way I found to accomplish the redirection would be by adding a NAT filter. The problem is that each customer has a unique IP (I do not use NAT).
Is there any way to do what I want? If anyone knows, please help me.
You can create 1 NAT rule and let the NAT rule make use of an address-list. Add the users in question to the list and they will be redirected.
Are the IP’s dynamic?
Yes, I use DHCP, but the address-list is always updated with the blocked users. I think your solution will be ideal.
So, I just have to masquerade the address-list with the customers with irregular payment, and then I have to create a simple NAT filter redirecting these customers to my webpage, correct?
Can you please show your current NAT rules.
I suppose you already have a ‘normal’ masquerading rule. I suggest to put a new redirect rule just above that, with src-address-list=nasty-people. And then add all the needed IP’s into that list
I don’t have any NAT filters yet cause I don’t use NAT. I have to make a masquerading NAT rule to all the clients that have irregular payement and then I will redirect these clients. I think this will work.