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

    RDP on second NIC

    Scheduled Pinned Locked Moved General pfSense Questions
    11 Posts 4 Posters 2.9k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      Well you can not forward the same port to 2 different addresses

      I assume you only have 1 public IP.

      So you could forward say publicIP:3389 to 10.1.0.101:3389

      and then
      publicIP:3390 to 10.2.0.202:3389

      But you you can forward publicIP:3389 to both 10.1 and 10.2 addresses.

      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 24.11 | Lab VMs 2.8, 24.11

      1 Reply Last reply Reply Quote 0
      • R
        riversr54
        last edited by

        I'm sorry, I didn't make that clear in my original post.

        I have a classroom with 20 computers, each with it's own static IP address. My students need to connect to their assigned system using a provided port number. If my public IP address was 100.100.100.100, the students would create a RDP connection with an address like this:

        100.100.100.100:8001  Computer 01
        100.100.100.100:8002  Computer 02
        etc…

        I have created NAT rules for each port number that we use on the LANCR202 network and it works fine. It's my second network that I have a problem with.

        Hopefully that makes more sense.

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          Time to post the screenshots of working and not working configuration.

          1 Reply Last reply Reply Quote 0
          • K
            kejianshi
            last edited by

            When you created the pfsense originally, as default it started with a LAN and a set of default allow rules on the LAN subnet.  Do you have an equivilant set of allow rules on the second LAN?  Also, is this actually RDP or some other RDPish thing?

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

              "I have a classroom with 20 computers"

              So is this some internal network, or is that an actual public IP address they connect too from the internet?  From say their houses?

              Wouldn't it just be easier to have the kids vpn in, and then access the IP of their computer directly via just normal rdp port, etc.  That would clearly be a more secure option then opening up rdp to the public internet.

              If kids are somewhere else on the network when they need to access - why are you natting?

              But to your exact issue, even if seems to be the wrong way to tackle the problem in the first place.  As mentioned by kejianshi - what are the lan rules on your other segment?  By default when you install pfsense your lan has unfiltered outbound access.. But when you create a secondary segment on say opt1 or opt2, etc.  There are no lan rules setup for that interface - so no outbound traffic would be allowed.  Which could explain why your port forwards are not working.

              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 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                @johnpoz:

                Wouldn't it just be easier to have the kids vpn in, and then access the IP of their computer directly via just normal rdp port, etc.

                Yeah, a whole LOT easier to maintain and use.

                1 Reply Last reply Reply Quote 0
                • K
                  kejianshi
                  last edited by

                  Are you suggesting that opening a bunch of WAN ports to forward RDP directly to a bunch of computers is somehow less wise and convenient than using secure VPN on a single port?

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

                    Yeah goes against your "I hate simple" mantra but yeah ;)

                    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 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • K
                      kejianshi
                      last edited by

                      In this case I'll make an exception…  Wonder if he knows how well pfsense does openvpn?

                      1 Reply Last reply Reply Quote 0
                      • R
                        riversr54
                        last edited by

                        Ok…sorry for the delay in getting back...school starting has kept me very busy...

                        I have considered VPN and even tried to implement it but had zero luck with that. I'm not sure why, it was several weeks ago now. I know that opening multiports for RDP is not the best solution, but it seemed like one that I could make work, at least for now. I would love to get VPN up and going but I'm not sure my Firewall/VPN skills are up to it.

                        If someone could point me to a beginners guide to VPN, espeically if it was specifically related to setting it up on pfSense, I would really appreciate it. I am under the gun timewise for getting this working...so that students can have remote access.

                        Regards,

                        riversr54

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