FIREWALL NAT

GOOD MORNING

I have the following problem:

I have configured a Mikritic router with public ip I am redirected ports by NAT / firewall to a web server that I have configured, until there everything is fine.
I can access my page www.vedeim.com without problems but only from another Internet point when you are in my local network redirects me to the link point 192.168.1.1 and not to the web server, the same goes for my camera server from internet access well but in the local network does not want, can you please help me it is surely a configuration that I forget to make

Thanks and regards

if you want to go to a server on your LAN then simply use the LAN IP address.
However if for some strange reason you want to access your web server while on the LAN but through its internet address you will have to setup your router with HAIRPIN NAT.

http://forum.mikrotik.com/t/solved-help-needed-to-configure-hairpin-nat/136630/4

thanks for answering, but I can’t solve on the network wan www.vedeim.com points to the server that I set up, but when I connect to the wifi www.vedeim.com redirects me to 192.168.1.1

You have two basic options, either you can look at your config yourself and find what’s wrong, or you can share it here and maybe someone else will find it for you.

Read up on “split DNS”

Add a static DNS entry on your router for the LAN IP address for your webserver.

Of course you’ll be otherwise landing on the interface page of your router when the router’s WAN IP address is resolved as your webserver.

Even though hairpin NAT is basically a hack, it’s really good. And I mean extremely good. Add one rule, it works transparently for everything, and you don’t need to touch it ever again. DNS’s only advantage is that packets don’t unnecessarily travel to router and back, but that’s it, everything else is worse.