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

    Port Forward/Rules to access web apps

    Scheduled Pinned Locked Moved NAT
    4 Posts 2 Posters 546 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.
    • P
      pisistrato
      last edited by

      So I have on a ESXi server multiple VMs connected via a LAN to a VM running pfSense, which in turn is connected to the WAN (company network).

      I was able to establish RDP connection between a computer in the company network and the VMs behind pfSense by creating NAT/Port Forward rules,. Now I am now puzzling to get access to web apps deployed by one of these VMs.

      Basically I use one VM to deploy R Shiny web apps on ports 1000-1010. If this VM would have been directly connected to the WAN network, one could simply access the web apps by surfing e.g. WAN-IP:1001 or WAN-IP:1010
      Since this VM is behind pfSense, how do I set rules so that if someone surfs WAN-IP:1000 gets redirected to the VM that is deploying the apps?

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

        @pisistrato same way you port forwarded your remote desktop port.

        https://docs.netgate.com/pfsense/en/latest/nat/port-forwards.html

        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.7.2, 24.11

        P 1 Reply Last reply Reply Quote 1
        • P
          pisistrato @johnpoz
          last edited by

          @johnpoz Right, the first time did not work, that is why I asked. I guess I needed to reboot first. Now works perfectly!

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

            @pisistrato said in Port Forward/Rules to access web apps:

            I guess I needed to reboot first

            No you would not need to reboot.

            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.7.2, 24.11

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