A
A
antonwx2022-03-09 15:38:56
Mikrotik
antonwx, 2022-03-09 15:38:56

How, with the help of Mikrotik, redirect requests to another address?

The situation is as follows, there is a program in which the server's IP address is "hardcoded" (conditionally, say, 1.2.3.4). And there is a server with another IP address located in the LAN with this very Mikrotik (Mikrotik 172.16.0.1, server 172.16.1.1).
Accordingly, is it possible in principle to redirect any outgoing requests to 1.2.3.4 to the server 172.16.1.1? And if this is really done on Mikrotik, then how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TheBigBear, 2022-03-09
@TheBigBear

Regular NAT. It works in both directions
. For me, the real IP of the RDP server is hidden
; the IP of the "white" server-dummy is registered for users, and in this way the real "working" server is registered in Mikrotik
/ip firewall nat
add action=dst-nat chain=dstnat dst-address =1.2.3.4 protocol=tcp to-addresses=172.16.1.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question