I would like some help for my project.
I have an RB1100 which runs hotspot so I can offer free internet to customers with registration.
I want to add a web server (http & https) behide the mikrotik.
Τhe server must me accessible from hotspot network and from public network also.
Accessing the Server local is working but from public I can’t make it work because ports 80, 443
are used from hotspot.
Are you running a dedicated server (with a local IP address) behind mikrotik? If yes, then it’s a matter of proper dst-nat rule. Post some details about the web server (internal IP address) and export of NAT rules - obfuscated if needed.
Public IP is on mikrotik and web server have local IP (192.168.0.1)
So I guess I need a dst-nat rule to forward port 80 & 443 to Web server.
will that affect the hotspot function ?
where is WAN interface (might be ether1, pppoe-out1 or whatever it is) … then only connections to TCP port 80 on that interface will be forwarded to your web server. The rest of TCP port 80 connections will be handled as without this rule. Instead of setting in-interface you can set some other filter (I don’t know complete list of the top of my head).