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

Port Forward/Rules to access web apps

NAT
2
4
544
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 Dec 15, 2021, 12:21 PM

    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?

    J 1 Reply Last reply Dec 15, 2021, 12:40 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @pisistrato
      last edited by johnpoz Dec 15, 2021, 12:41 PM Dec 15, 2021, 12:40 PM

      @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 Dec 15, 2021, 1:09 PM Reply Quote 1
      • P
        pisistrato @johnpoz
        last edited by Dec 15, 2021, 1:09 PM

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

        J 1 Reply Last reply Dec 15, 2021, 1:09 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @pisistrato
          last edited by Dec 15, 2021, 1:09 PM

          @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
          2 out of 4
          • First post
            2/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.