forward users from one page to another automatically

hello ,
let my explain what I want to do
I want whenever a user on my WiFi try to goto the router (10.0.0.254) on port 80 HTTP
he will get a page with my image that say “you can’t go here”

can I do this without a proxy ?

only NAT to another address inside the router?

is it possible?

Thanks,

Hi
Use IP firewall , chain = input src address : "your wifi client’s network(for example 192.168.1.0/24) destination address : your router address chain drop (means kill packets and deny access to the router) or redirect (means redirect packets to any ip orport than you want !)

good luck

Yes , it’s working
Thanks !

now I want to put a HTML page when someone try to enter to router we will get my HTML page (that will be inside the router called NoEnter.html)
can I do this?

Thanks,

i’m not sure and never done something like this , but i think the solution is to use redirect action

in the NAT or in the Filter?
also to do input\forward?

can you show me an example?

Thanks,

in Filter

Forwards means packet going through the router , input means which packet going to your router itself.

you should use input my friend :slight_smile:

it’s good for you : http://wiki.mikrotik.com/wiki/Manual:Packet_Flow

good luck

but I still don’t see how it help me
I still can’t make a rule that said -
"if someone go to 192.168.0.254 redirect him to 192.168.0.254\NoEnter.html "
there isn’t an option to do redirect …

Thanks ,

I don’t know if you can redirect to router it self

but you can redirect to any server in your local network
Tray this rule (in NAT before masquerade) :

/ip firewall nat
add action=dst-nat chain=dstnat comment="To My Page" dst-address=192.168.0.254 dst-port=80 protocol=tcp to-addresses=x.x.x.x to-ports=80

where x.x.x.x is your server ip

this I know how to do ,
I want to be able to redirect to a page into my router , not to another server in the network…

Thanks any way ,