I have RB951G. I need for some local IPs block internet acces with costum browser message. “They are block because do not pay fee or something like that”.
How this can be setup in mikrotik 5.26?
Can You tell me how to build virtual or webserver within mikrotik to store page to redirect?
You don’t have a server on your localnet?
You can use the proxy to do what you want, but you need a server and page to redirect your clients to.
How to setup redirecting using proxy?
It is pretty easy. If the web server is 192.168.0.2 with the “you need to pay” message on a payme.html page, and the client you want to redirect is 192.168.0.8, then after enabling the transparent proxy:
/ip proxy access
add src-address=192.168.0.8 action=deny redirect-to="192.168.0.2/payme.html"
If you need an example of how to set up a transparent proxy, here is the stuff:
http://wiki.mikrotik.com/wiki/Manual:IP/Proxy#Transparent_proxy_configuration_example
Insure you enable the proxy.
/ip proxy
set enabled=yes
BTW, the server does not need to be on the same localnet, or even on your router. It can be on the internet with a public ip and it will redirect ok.
OK great Thnks