Page 1 of 1

Port forwarding for Webserver

Posted: Wed May 31, 2017 2:07 pm
by Grafschafter
x-----------------x x-----------------x
x Fritzbox x x Mikrotik Router x ------------- Webserver
x x ---------------x x
x x x x
x-----------------x x-----------------x

Fritzbox IP Adresse =
Mikrotik Router Ip Adresse =

Behind the Mikrotik Router runs a network

I now want to get out of the net the network the web server on port 80.
What rules should be set up in the firewall

Re: Port forwarding for Webserver

Posted: Thu Jun 01, 2017 1:35 am
by matiaszon
It would be much easier if you post your config from MikroTik. Anyway, will try to guess a bit and you confirm or correct.

I understand, that your Fritzbox works as a modem, connects to the Internet and has some IP assigned to it's WAN port. Generally it looks as below

[INTERNET] ----- [WAN IP - FritzBox - LAN] --- [ MikroTik NAT -]

I believe that:
1) your FritzBox has public IP assigned to it's WAN,
2) you have set DMZ for MikroTik (if it's natting the traffic on your network) or at least forwarded port TCP 80 to MikroTik's IP (
Then you can visit THIS PAGE, look at the example called "Port mapping/forwarding" and adopt the line to your requirements:
/ip firewall nat add chain=dstnat dst-port=1234 action=dst-nat protocol=tcp to-address= to-port=1234