Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Block access to webserver, allow just specific addresses

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 31 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      daro
      last edited by

      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

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        SteveITS Galactic Empire @daro
        last edited by

        @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.

        Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
        Upvote 👍 helpful posts!

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          daro @SteveITS
          last edited by

          @SteveITS
          Thank you for your quick answer!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.