configure windows firewall to allow RDP and Shared folder access through the VPN

Alain Bensimon 46 Reputation points
2021-05-09T20:33:10.513+00:00

Hello.
I have configure Windows Server 2019 Essentials for VPN connections.
I'm able to connect to the server using the VPN, but I'm unable to make an RDP connection or to access the shared folder, unless I disable the Windows firewall public profile.
I can't point which rule is blocking the access, or which one to enable or create to allow it, or is there a way to get a live monitoring that would tell me whhy the inbound connection has been denied.
Thank you

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,169 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2021-05-10T00:40:52.213+00:00

    Well actually not "my" way but the "microsoft windows" way to define firewall rules. You might try some firewall logging in case some custom ports have been set.

    95081-image.png

    --please don't forget to Accept as answer if the reply is helpful--


4 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2021-05-09T22:25:57.963+00:00

    File sharing == TCP ports 445,139 and UDP ports 137, 138
    RDP == port 3389

    --please don't forget to Accept as answer if the reply is helpful--


  2. Dave Patrick 426.1K Reputation points MVP
    2021-05-09T22:44:55.86+00:00

    That isn't quite right

    Start > Run and type firewall. ...
    Click on the Advanced Settings in the left pane. ...
    Click on the Inbound Rules
    In left pane, click on New rule.
    Under Rule Type select option Port and click next.
    Select TCP and or UDP specific local ports options.
    Allow the connection
    Select the profile in use
    Give the rule some meaningful name

    --please don't forget to Accept as answer if the reply is helpful--


  3. Candy Luo 12,656 Reputation points Microsoft Vendor
    2021-05-10T05:29:42.84+00:00

    Hi ,

    Try to add the subnet of your VPN clients in Remote IP address section for File and Printer Sharing rules and then see if you can access shared folder. As picture below:

    95085-image.png

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  4. Dave Patrick 426.1K Reputation points MVP
    2021-05-10T12:58:50.833+00:00

    Just checking if there's any progress or updates?

    --please don't forget to Accept as answer if the reply is helpful--