Hello friends,
thanks in advance for help, Iam for first time doing port forward.
I set port forward like everything that comes from internet to port 80 go to my local server to port 80 where I have IIS with aplication, and this works fine.
My problem is i can't get the source ip when someone is connecting to my server and it always return address of LAN intefrace, not the source IP.
On log in my IIS source ip is allways LAN port of Mikrotic 10.6.1.201, its looks like this:
2021-07-14 11:53:50 10.6.0.85 GET /images/categories/5.jpg - 80 - 10.6.1.201 Mozilla/5.0+(Linux;....etc.
Where first addres is address of server and second addres is address of Mikrotik LAN intefrace
Here's my configuration for NAT:
add action=masquerade chain=srcnat src-address=192.168.100.0/24
add action=masquerade chain=srcnat src-address=10.6.0.0/21
add action=masquerade chain=srcnat
add action=dst-nat chain=dstnat dst-port=80 in-interface=ether1 l
protocol=tcp to-addresses=10.6.0.85 to-ports=80
add action=dst-nat chain=dstnat dst-port=3389 in-interface=ether1
to-addresses=192.168.100.253 to-ports=3389
add action=dst-nat chain=dstnat dst-port=8181 in-interface=ether1
to-addresses=192.168.100.253 to-ports=8181
Once again, thanks in advance for help.