Mikrotik source address from dst nat problem
Budget: $10 – $30 USD
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 port not the source IP.
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
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 port not the source IP.
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