Community discussions

MikroTik App
just joined
Topic Author
Posts: 1
Joined: Wed May 31, 2017 2:03 pm

Port forwarding for Webserver

Wed May 31, 2017 2:07 pm

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
User avatar
Posts: 312
Joined: Mon Jul 09, 2012 9:26 am

Re: Port forwarding for Webserver

Thu Jun 01, 2017 1:35 am

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

Who is online

Users browsing this forum: No registered users and 72 guests