Hi,
I trying to configure a DNS server that resolve request from outside. (I want to host a web application behind the router)
I do this : i add a static dns in /ip dns static and I checked if “Allow remove requests” is checked.
From my local network the dns work good but from outside the network when i try to access the web application the router return standard web router os page.
What i do wrong?
Thank you
Bogdan
What exactly are you trying to do? I understand having web server behind router. But usually you just need a dstnat rule for that. What does publicly available DNS server on router have to do with it?
I think you want to publish some web server or other server on the internet. if its true!? you must add DST NAT rule in the IP firewall NAT menu.
Yes. It is true.
I have web application hosted local on VMs , on ip like 192.168.1.x and i want to access this VM with web app from outside by accessing a subdomain like app1.domanin.com, app2.domain.com
Can you help me with this ip firewall rules ?
Thank you in advice
You say VMs, so it’s multiple servers and each hosts different subdomain? E.g. app1.domanin.com on 192.168.1.20, app2.domain.com on 192.168.1.30, etc? And you probably don’t have enough public IP addresses for all of them. Is that so? If the answer is yes, RouterOS probably can’t help you.
There is a way how to make it work with web proxy (see here), but it’s only for unencrypted http (no https) and it’s more hack than proper solution. If http is enough for you and decide to use this, you definitely do not need “Allow remove requests” enabled. Local static DNS record are only for router’s own use. You need to set proper records for public use on your domain’s DNS server. Also do not forget to properly set access rules (see end of article) or you’ll create open proxy and won’t like the results.
@Sob
Thank you for your time and for your answer.
Yes, it the answer that i need.
I will use your solution or another one. (redirect all http traffic to a VM and on that VM i will put a NGinX proxy.
If you have no problem with running another VM with full-featured reverse proxy, then definitely use that.
Hi,
One VM with nginx behind rb i think it would be an elegant solution; easy with port forwarding on rb too.
P.S. Goodluck ( “multa bafta” )
Thank you guys.
janus20 i saw you are from same country as me . Nice.