I
I
Ingvarr2021-04-10 23:36:06
Mikrotik
Ingvarr, 2021-04-10 23:36:06

Mikrotik change wan address?

Good time! I would like to clarify. Suddenly there is some kind of "wonderful potion"

There is a mikrotik with an external ip 1.1.1.1 and a locale 192.168.1.0/24
There is a PC with ip 192.168.1.150 and a port let's say tcp 3388
There is a port forwarding, and when accessing from outside to the address 1.1.1.1 port 3388 we actually get to 192.168.1.150 the same port.
The trouble is that in this situation on the server 192.168.1.150 in the logs I will be displayed as ip 192.168.1.1 and it is necessary that the external ip from which I connect is identified, for example 2.2.2.2 or some other, nat dictates its own rules and sends the address of the router!

Is there a solution to this problem or is it possible only if 1.1.1.1 is physically plugged into the car!?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zvl, 2021-04-11
@zvl

Look closely at the SNAT rules
No need to translate external addresses.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question