Navigation

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

    HAProxy configuration help

    Cache/Proxy
    2
    2
    260
    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
      paultop6 last edited by

      Hi,

      Im new to pfsense and to haproxy, so there may be some simple things I am missing with how im trying to approach setting up haproxy.

      I have a simple home network setup.  I have one central server that acts as a NAS and has a number of VM's running on it.

      I have one VM that is used for hosting some web services.

      My end goal is that I want each web service on that VM to have a particular FQDN with port 80 forwarding traffic to the associated port on that VM.

      So, for instance

      plex.toptop.com:80 -> 192.168.0.2:32400

      These are only internally accessible, so I don't want to be able to access them via WAN for the moment.

      Im happy to provide details anyone who is willing to help.  Ive attached my haproxy.conf configuration to start with.
      haconfig.txt

      1 Reply Last reply Reply Quote 0
      • P
        PiBa last edited by

        The acl should probably check for the hostname.

        acl                     Plex    hdr(host) -i plex.toptop.com
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post