I have a web server behind mikrotik. Our remote offices connect to this web server. We recently installed mikrotik and this web server with a static IP is not accessible from outside. I can reach to our mikrotik webbox from internet but i cannot reach to the web server behind mikrotik.
We are using NAT with Web Proxy in Transparent mode.
You did not provide specifics, so I will make them up as I go.
Your public IP and internet is on ether1
Your localnet is on ether2, ip 192.168.0.1/24
Your web server is 192.168.0.2/24
Then this should do:
/ip firewall nat add dstnat action=dst-nat dst-address=xxx.xxx.xxx.xxx dst-port=80 to-addresses=192.168.0.2
Replace x’s with your public IP on ether1.
Rule 3 will not be evaluated. Rule 0 (the default masquerade) will catch any srcnat before it gets to rule 3. It causes no problems. Just taking up space.