Hi
This is my first post here
I have buy MikroTik RouterBoard that with help of a friend have make it work in my home network.
I have even got port forward for http to work to one of my webserver
so when I write http://domain.se it go to 192.168.1.5 that run a apache server on linux.
I use
Problem 1)
When I trying to connec to a subdomain that I http://subdomain.domain.se it was going to same IP address but I have config the apache server with Proxypass to another webserver.
It have work with my old router so I don’t know why it does not working now.
well I did find out today when I was not at home that it works greate when I’m not inside my LAN.
So when I’m not trying to connect from my computer that is connect to my home LAN then everythings works fine.
but when I try to connect frome inside the LAN I get error.
More strange here
With a friend of my I got and set a static DNS in my MikroTik so http://domain.se go to 192.168.1.5
But I use Nextcloud and it does work with https://domain.se and I get a error when I try from my LAN to connect to nextcloud but is ok when I go outside my network.
So https://domain.se from LAN = ERROR https://domain.se from outside my LAN = OK
A little update
I dont know how but I got it to work with my domain.se (still not https).
I guess it have something with the static DNS I have set.
But I can’t connect to a subdomain like subdomain.domain.se
the subdomain go to same server but then proxy to another webserver that I have in my LAN.
as always I have no problem to connect from outside my LAN.
Going to see what more I can do, is funny but strange problem
But now I have no access to HTTPS from WAN or LAN??
Going to try something more but have one question about the config
if I pick
action=masquerade
then I can’t write any
to-addresses or to-ports
Did have to see if the other webserver still working and it does 192.168.1.8 (I did change the 192.168.1.5 to 192.168.1.8 for the HTTPS in the config)
/UPDATE
I have try a little and found something strange.
I have also a CSGO server that run on 27015 and I did copy both config for HTTP and just change the IP and port to 192.168.1.12 and 27015
When I now try to connect to the server from CSGO console
connect domain.se
it try to connec to 192.168.1.5
even if I try with domain.se:27015
/UPDATE 2
Have notice that if I ping from my LAN my domain it go to 192.168.1.5 even if I have disable forwarding and remove it from Static DNS.
Have also look inside my hosts file but that looks fine so something is not right.
Finally, assign the Mikrotik’s LAN IP as the DNS server in your internal DHCP (IP > DHCP-Server > Networks > 192.168.2.0/24 > DNS Servers: 192.168.2.1
is that a good way to go?
or is that some kind of security risk?
ok I think I have found the problem
When I did add the name and address in the static DNS everything works fine.
But I was just trying and now when I going to run in real I change the IP of the server to the right now, I did go to static DNS and change the IP to the right one but still when I ping it go to the old IP address??
Even when I flush the Cache it still go to the old IP??