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

    Firewalling RDP from external source to my LAN

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 824 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.
    • K Offline
      Kyrox
      last edited by

      Hello,

      I have my ISP provider router at 192.168.1.1, and my PFSense in a virtual machine with 192.168.1.2 (this is WAN).
      The LAN side is 192.168.101.1 for PFSense, and I want to be able to RDP to multiple machines from outside the network through EXTERNAL-IP:PORT
      The question is, do I have to redirect all the ports I use from my ISP's router to PFSense's WAN IP (192.168.1.2), but then I guess I have to create some rules inside PFSense firewall in order for it to forward the conexion to the proper machine. For example:

      Imagine I want to set up RDP connection to a Machine called Machine1 with LAN IP: 192.168.101.10 through EXTERNAL-IP:3388 :
      First step would be to change it's RDP port in regedit to 3388 for example. Then through ISP Router's I'll match port 3388 to PFSense's WAN IP 192.168.1.2.
      My problem comes when i have to setup PFSense to redirect that connection from EXTERNAL-IP:3388 that comes through WAN to LAN's IP 192.168.101.10.

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator
        last edited by

        Really bad idea.. If you want to rdp to multiple machines on your network - just VPN into your network and then access.

        Can you just put pfsense wan IP into the "dmz" mode of your isp router?  If so then sure you could forward port X to port Y inside pfsense for your different rdp machines.  But again opening up rdp to the public internet is BAD idea.

        Do you know the IP you will be coming from so you could atleast limit the connections to rdp to that source IP, ie work or something?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.11 | Lab VMs 2.8.1, 25.11

        1 Reply Last reply Reply Quote 0
        • K Offline
          Kyrox
          last edited by

          Got any step-by-step guide about VPN and how I could get that working? I'm new to PFSense so not sure about to handle that. But I need to be able to acces to my LAN machines from external sources in the most secure way.

          1 Reply Last reply Reply Quote 0
          • johnpozJ Offline
            johnpoz LAYER 8 Global Moderator
            last edited by

            https://doc.pfsense.org/index.php/OpenVPN_Remote_Access_Server

            Setting up openvpn on pfsense, just use the wizard and follow the bouncing ball to be honest.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 25.11 | Lab VMs 2.8.1, 25.11

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