Netgate SG-1000 microFirewall

Author Topic: HAProxy configuration help  (Read 128 times)

0 Members and 1 Guest are viewing this topic.

Offline paultop6

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
HAProxy configuration help
« on: December 27, 2017, 09:00:59 am »

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 ->

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.

Offline PiBa

  • Hero Member
  • *****
  • Posts: 872
  • Karma: +140/-1
  • PiBa-NL(on IRC)
    • View Profile
Re: HAProxy configuration help
« Reply #1 on: December 27, 2017, 12:59:53 pm »
The acl should probably check for the hostname.
Code: [Select]
acl                     Plex    hdr(host) -i