Answer the question
In order to leave comments, you need to log in
How to make a redirect to a specific site, from unwanted ones?
There is a pool of locked social networks, VK, YouTube, etc. Is it possible to redirect to the company's website when trying to access these sites? Now it just shows a DNS error, actually. The firewall rule works, but the possibility of redirecting to a specific site is of interest. Let's say a user wants to go to VK, tries to get on vk.com and redirects him to Google (for example). In order to avoid calls saying "Internet is not working"
Answer the question
In order to leave comments, you need to log in
You make a rule in
this chain = dst
protocol = 6
source-addr-list = list of addresses of users you want to send
dst-aadr-list = addresses of your unwanted
actions = d-nat
to-addr = target resource (in the latest version of ROS, according to idea, you can specify the domain directly)
this is the minimum set of arguments for the REDIRECT rule .
but in fact, you can also replace the DNS, you can send the name to the target address - but this is not Feng Shui if you have hell and other perversions (I didn’t like this solution)
Deploy your dns server and instead of real ip addresses of unwanted domains, return the ip address of a stub with a warning (or Google or your site).
Here is a ready-made instruction on how to easily do this in mikrotik.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question