Page 1 of 1
forward users from one page to another automatically
Posted: Sun Dec 28, 2014 11:14 am
by David1234
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,
Re: forward users from one page to another automatically
Posted: Tue Dec 30, 2014 10:24 pm
by ShayanFiroozi
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
Re: forward users from one page to another automatically
Posted: Wed Dec 31, 2014 2:43 pm
by David1234
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,
Re: forward users from one page to another automatically
Posted: Wed Dec 31, 2014 7:08 pm
by ShayanFiroozi
i'm not sure and never done something like this , but i think the solution is to use redirect action
Re: forward users from one page to another automatically
Posted: Thu Jan 01, 2015 9:51 am
by David1234
in the NAT or in the Filter?
also to do input\forward?
can you show me an example?
Thanks,
Re: forward users from one page to another automatically
Posted: Thu Jan 01, 2015 11:01 am
by ShayanFiroozi
in Filter
Forwards means packet going through the router , input means which packet going to your router itself.
you should use input my friend
it's good for you :
http://wiki.mikrotik.com/wiki/Manual:Packet_Flow
good luck
Re: forward users from one page to another automatically
Posted: Thu Jan 01, 2015 3:49 pm
by David1234
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 ,
Re: forward users from one page to another automatically
Posted: Thu Jan 01, 2015 11:05 pm
by ronix
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
Re: forward users from one page to another automatically
Posted: Sun Jan 04, 2015 9:41 am
by David1234
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 ,