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

    RDP/RemoteApp via FQDN only!

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 5 Posters 2.0k Views
    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.
    • E
      entr0py
      last edited by

      I'm hoping to find a way to restrict RDP/RemoteApp access via WAN IP and only allow connections using FQDN. In other words, when connecting remotely via "any.domain.com:port" a RDP/RemoteApp connection would be established, but RDP/RemoteApp connections using "WAN IP (x.xx.x.xx):port" would get blocked. Is this at all possible and what is the best way to accomplish this?

      1 Reply Last reply Reply Quote 0
      • GrimsonG
        Grimson Banned
        last edited by

        @entr0py:

        Is this at all possible…

        Nope, all connections use the IP to connect, whether they resolve it via DNS or use it directly is not known by the firewall.

        You really should learn the basics of networking first.

        1 Reply Last reply Reply Quote 0
        • keyserK
          keyser Rebel Alliance
          last edited by

          You can’t do that with RDP directly.
          But if you install “Remote Desktop Gateway Services” on a Windows Server, that will provide RDP access tunneled through HTTPS.
          When going through HTTPS you can do exacly what you are looking for with fx. HAproxy as a reverse proxy on pfsense. There you can do an ACL that only allows connections over HTtPS with the proper URL entered by the client.

          Love the no fuss of using the official appliances :-)

          1 Reply Last reply Reply Quote 0
          • H
            Harvy66
            last edited by

            An analogy would be "I want people to get to my house using a map and not just driving from memory". The only way to do this is to directly control the client, nothing you can know when someone shows up at your house.

            1 Reply Last reply Reply Quote 0
            • M
              Mats
              last edited by

              @keyser:

              You can’t do that with RDP directly.
              But if you install “Remote Desktop Gateway Services” on a Windows Server, that will provide RDP access tunneled through HTTPS.
              When going through HTTPS you can do exacly what you are looking for with fx. HAproxy as a reverse proxy on pfsense. There you can do an ACL that only allows connections over HTtPS with the proper URL entered by the client.

              This works - I have it running on my home fw.

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