haproxy for local network path redirection trouble

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Quickolas
Posts: 1
Joined: Sat Aug 24, 2019 9:51 pm

haproxy for local network path redirection trouble

Post by Quickolas » Sat Aug 24, 2019 10:08 pm

Hello, maybe I'm using the wrong tool for the job but I've been trying (to no success) to use haproxy to make routing on my local network a little cleaner.

Here's what I've been trying to accomplish:
I have several pi's on my network (pihole, 3d printer, etc)
On the pihole (local.list) I've forwarded the hostnames ie nick.pi -> 192.168.1.12
However I learned that you cannot specify a port this way, so it directs to port 80 which is fine.
On the pi in question I have a few services on different ports with octoprint being one of them. With haproxy I am trying to make it such that

Code: Select all

nick.pi/octoprint
will be redirected to :5000 and the same with other paths.
I tried to use this strategy https://github.com/PrusaMK2Users/MK2_Ti ... aproxy.cfg but to no avail (503 and 404 errors) and I don't plan on exposing this, just keeping it local.

Any advice would be appreciated, thanks.

Post Reply