Cannot access docker image behind pfsense haproxy

Hi, Everyone.

I have a problem where a server hosted in a docker cannot be accessed when behind pfsense haproxy. Please help me identify what configuration mistake I have done or a setting that I may have overlook.

I have setup a docker server and setup portainer, freshrss and joplin in it. All of those will only be accessed internally via haproxy. If I access them directly they are working fine:

Once I have place them behind the haproxy and access them by name it failed:

image

Below are my haproxy settings:

  1. Virtual IP

  2. Backend

  3. Frontend

  1. Joplin settings:
    image

Joplin has a GitHub issue for reverse proxies. I don’t know it right off the top of my head but I ran into this when I was setting up a Joplin server in docker.

EDIT:
The issue is closed but you will need to find a way to add what people are suggesting in the comments.

2 Likes

Hi, xMAXIMUSx.

Thanks for providing this link, as I read the article the configuration is very challenging. I will evaluate if I will have time to do it or not.

Sounds like you are treating HAProxy as a security service, like a VPN. This is arguably incorrect.

Also, keep in mind you are running a high profile and very exposed piece of code directly on your router. This is bad design. Instead of running this service on a separate device, tucked away in a isolated VLAN, you have it running naked on your router. I think Netgage should remove this from their repository.

Apologies for the late reply, why did you say I am using HAProxy as a VPN? As mention in my initial post, I am using this to access Joplin internally and not exposed to the Internet.