Block access to webserver, allow just specific addresses
-
Hi all
Behind my Netgate/pfsense is a server (LAN network) with port 443 open to be reached for a webservice from outside. Since there is a lot of traffic reaching my server, I would like to block unspecific attempts to reach the server. My question as a newbie: How can I achieve, that this server is not reachable by https://ip or https://mydomain in general. I like the server just to be accessible through some specific addresses e.g https://ip/wordpress or https://mydomain/wordpress
I did try to understand aliases, but failed to have success. Can anyone explain how I can give access to just certain addresses on my server?Thanks a lot for any advice
-
@daro You can’t, with firewall rules. Probably https://docs.netgate.com/pfsense/en/latest/packages/haproxy.html but I’ve never used it. Or maybe .htaccess files on the sites.
-
@SteveITS
Thank you for your quick answer!