... and it works.
Code: Select all
/ip firewall nat add chain=dstnat dst-address-type=local protocol=tcp dst-port=443 action=dst-nat to-address=192.168.0.190 to-port=443 /ip firewall nat add chain=srcnat src-address=192.168.0.0/23 dst-address=192.168.0.190 protocol=tcp dst-port=443 out-interface=bridge action=masquerade
192.168.0.190 is the IP address of my RaspberryPi and the port 443 is pointing to my Apache server running there.
However, when I look into the Apache's logs, the source IP of the request is always 192.168.0.1, which is the IP of the Mikrotik router.
Is there any way how to change the router IP in the request (192.168.0.1) to my WAN IP (213.x.x.x) in this case, so it would show in the logs?
The reason why I'm asking is that my old router did that automatically and I was used to it.