Redirect

hi
i want to redirect any ip and url that type in browser’s address bar to the local web server
i do it with web proxy . bau there is a problem. router must resolve addresses and when there in no valid dns router dosent redirect addresses to local web server.

You could do it with the /ip dns. Redirect all DNS traffic to the router then set a static entry in the /ip dns.

/ip fi nat
add action=redirect chain=dstnat dst-port=53 protocol=udp to-ports=53
add action=redirect chain=dstnat dst-port=53 protocol=tcp to-ports=53



/ip dns
set allow-remote-requests=yes max-udp-packet-size=512 servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.1.5 name=some-domain.com

hi
tnx for ur attention
but i want to use this router in a local network that has no access to any dns and internet
and want to redirect “ANY” url to my web server. so it is not possible add address=192.168.1.5 name=.