HA Proxy on Router

This may seem silly, but i would like to be able to run HA Proxy on my main router that faces the internet and have HA proxy accessible from the internet instead of the internal IP Address.

I have two servers ( for lack of a better term ) and a laptop that i would like to have normal websites served from my main router via reverse-proxy ( or something similar ).

One is a regular HTML website ( think Jekyll ) and the other is a Python app. The laptop serves as a development platform that i occasionally want others to look at.

Is it possible to have the router itself expose HAProxy ( and the internal machines ) in this fashion?

Users typically try things and report back on questions about experienced obstacles.
A dedicated HAProxy forum might be helpful for you on tips for setting up HAProxy config, but the rest seems straight forward doable for OpenWRT.

Have you tried opkg install haproxy or opkg install haproxy-nossl already?

Have you tried fiddling with firewall traffic rules already? (LuCi -> Network -> Firewall)
e.g. https://www.google.de/search?q=openwrt+traffic+rules

2 Likes

Thanks for the links to the traffic rules! That is an interesting read and I think a great place to start.

I think the first thing i have to do is move uhttpd over to a different port, which i think i know where that is.

Moved uhttpd over to port 8080 by modifying /etc/config/uhttpd.

Installed HAProxy, and did some basic configuring to reflect one of the websites. I was able to get the index page, didn't test much more than that.

I setup a port-forward for port 80 and 443 to point to the internal IP of the router. That seemed to do the trick to get outside folks access to HAProxy!

Thanks for all the help!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.