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

    pfsense to nat ports 80 and 443 to 2 VM? nginx? haproxy?

    Scheduled Pinned Locked Moved Cache/Proxy
    natnginx2 static ip add
    2 Posts 1 Posters 804 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.
    • C
      compiz
      last edited by

      Hi guys, I am new in pfsense and I am trying to learn :)
      I have a dedicated server abroad where I am hosting some sites and game servers.
      every single domain name I am using is behind CloudFlare, with strict SSL.
      1)proxmox 7.2 as the host O/S with 1 static true IP
      2)pfsense is in autostart very first so I can access my vms (internal IP:10.2.100.254)
      3)I have a myvestacp on Debian 15 VM for my websites and it works perfectly with NAT.(internal IP:10.3.100.2)
      4)I have a windows server 2022 for some game servers where I am also using NAT for the ports of the games and it works good.(internal IP:10.3.100.4)
      5)Here is where I need help. I have a freepbx VM which I also want to use HTTPS and I can't NAT ports 80 and 443 on myvestacp and on freepbx.(internal IP:10.3.100.6)

      I have tried to make another VM with Debian 11.5 and nginx proxy manager and changed the NAT of ports 80 and 443 to this VM (internal IP:10.3.100.10), and from there added the domains and send them towards the VM they belong to, for example freepbx.mydomain.gr > 10.3.100.6 and all the other domains > 10.3.100.2
      None of my websites was accessible after that with error of infinite redirects.

      So what I am asking can it be done? Can I NAT somehow ports 80 and 443 on 2 different VMs?
      I have read about haproxy but I am totally unfamiliar with it, can someone write a few steps on how to do it with haproxy if nginx proxy manager can't?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • C
        compiz
        last edited by

        No ideas or suggestions?

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