publish internal web server

Hello everyone,

I am new to mikrotik world and I would like to publish my internal web server to internet I have tried all the solution provided by the intelligent members of the forum to make available my internal web server, but i didn’t get success.

the version of Mikrotik is 2.9.27

I have two interface connected on mikrotik one is connected to internal network address range 192.168.0.0 ip address of my web server is 192.168.0.80 and one is connected to my isp, ip address 210.211.***.74.

i am using masquerading for internal users to access internet.

i also tried
chain=dstnat action=dst-nat to-addresses=192.168.0.80 to-ports=80 in-interface=lan dst-address=210.211.***.74 dst-port=80 protocol=tcp

chain=srcnat out-interface=wan0 action=masquerade

i am also not able to go to web server through external ip address.

please help me how do i configure Mikrotik, so i can make my web server available on internet.

please please help…

NIRAV

Upgrade from 2.9.27 til the latest 2.9.xx!

I too had problems with masquerade, and had to go with NAT both directions:

/ ip firewall nat 
add chain=dstnat dst-address=216.x.y.18 action=dst-nat \
    to-addresses=192.168.50.18 to-ports=0-65535 comment="" disabled=no 
add chain=srcnat src-address=192.168.50.18 action=src-nat \
    to-addresses=216.x.y.18 to-ports=0-65535 comment="" disabled=no

Try that first in the NAT chain, and then masquerade the other IP addresses (?) later in the chain

PS make sure your ISP forwards port 80, you can test by trying port 8080 in NAT and on your web server first to verify the NAT rules work (if you’re not sure about ISP forwarding port 80)