Hello everyone,
I have a router Mikrotik CCR1009-8G-1S-1S + PC and Synology DS-713 + Server
It connects to the server via a domain name
My problem is that a friend or me via my tablet and Free computer network or reach us connect to the server via my public IP
I would stop it but how?.
Thank you in advance
Hi,
Drop packets which NOT coming from your LAN subnet and going to Synology device , use IP/Firewall/Filter Rules
Or it’s better to set this rule when you are NATTING your packets to Synology
My server already has a username and password but it’s not my question
My question is how to restrict access to my server via my public IP but only through my domain name
that’s i don’t know ,
Since it’s about DNS and public IP and they are the same now ! i don’t think Mikrotik could help you , but it’s better to wait for an expert
I would try to help… but I just don’t understand the question.
You want someone from the INTERNET or WAN to be able to reach the server when they use the FQDN (Like http://something.somethingelse.com. But not if they use the IP address of 65.54.254.3 which is the FQDNs actual IP?
There’s no simple solution for this. Hostnames get resolved on client side and the following connection to server is same on IP level, you can’t tell the difference. In any case it’s connection to :.
For http, it could be done using reverse proxy and allowing only given hostname (web proxy in RouterOS could be used for this, but I don’t think it’s a good idea) or using L7 filter and closing connections with “Host: ” (but it would not be completely reliable, so I don’t think it’s good idea either).
Most importantly, I fail to see the problem. You have public server. Who cares if it can be accessed also using numeric address? It’s not like it brings any real security problems or anything. If it really bothers you, then configure server to only accept requests for selected hostname.
Sorry for the bad Google translation French → English
Example, with my tablet as if I type link my local ip, http://80.255.74.4 example I arrive on my server
And I do not like, how to avoid this ?
With my domain name that works well
I wonder if it is on the server I get
I feel that it is on the router
I came across a page that tells me this: “The page you are looking for can not be found (errreur 404)”