Help With RW Redirect

Hello All,

I am a newbie to RouterOS. Tried searching the forum for answers but could not find one that easily solved my problem.

I am using a RB112 connected to internet using PPPoE. It is configured with NAT. Hotspot and web proxy are not being used.

I would like to redirect my real world IP (which currently goes to Mikrotik Login) to another real world IP or URL. I.e. I type in 216.xxx.xxx.xxx and it redirects to http://www.msn.com or some other address.

Any simple suggestions?

Thanks

Static DNS should help you,

  • enable DNS cache on the server at the ‘ip dns’ menu;
  • add DST-NAT rules to redirect DNS traffic to router DNS cache;
  • add DNS entry that particular DNS address should be resolved for this address.

Thanks for the quick reply. I will give it a shot.

sergejs,

Is it possible to provide an example. I attempted your instructions but was unsuccessful.

Thanks

Which part of the configuration causes problems for you ?

you can check here:
http://www.mikrotik.com/testdocs/ros/2.9/ip/dnscache.php

I am ok with DNS cache and entry of url to IP.

I am unfamiliary how to achieve the following.
“add DST-NAT rules to redirect DNS traffic to router DNS cache;”

I don’t know how to redirect port 80 to a specific url or IP address.

Thanks

You have to create NAT rules for DNS ports like,
ip firewall nat add chain=dstnat protocol=tcp
dst-port=53 action=redirect to-ports=53