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
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_Tips_and_Tricks/blob/master/Enhanced-haproxy.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.