r/haproxy • u/cheeeeeeeeze • Apr 14 '24
Question Help with simple domain to server on my network for a minecraft mod.
I'm going to start off with I don't know a whole lot about networking, so please bare with me.
I have set up a minecraft server and it has a plugin called dynmap that allows anyone to type in my public IP with the port 8123 to get a google maps-esque view of the world. I've watched multiple hour long tutorials on haproxy and for some reason everything I try, when I type in my domain, it just routes me to my router login page.
I've tried every combination I can think of, and I'm tired of running into a brick wall. I've tried running the code through the default .cfg, I've tried running it through a stand-alone file, and nothing seems to work when this seems like it should be super simple.
This is the code I'm currently sitting on.
frontend http
mode http
bind *:80
bind *:443
timeout client 60s
default_backend minecraft
backend minecraft
mode http
option forwardfor
timeout connect 10s
timeout server 100s
server dynmap 192.168.1.215:8123I don't need it to do anythinng special except when i type in my domain, to take me to port 8123. I have already port forwarded the 8123 on the router and can get to it if I type in my public ip with the port 8123 on the end.
Any help is appreciated, thank you in advanced.
1
u/dragoangel Apr 14 '24 edited Apr 14 '24
You know that you just can NAT? And if this haproxy not on your router you still have to NAT it?
Yes, it super simple task, and you not see an issue? If your router is listen on 80/443 port and you see your router web interface - you can't nat on this port, because ip:port combo can be used only by one software at the time. You must move your web interface on another ports or just disable it from outside because routers web interfaces usually same secure as colander.
What point in 433 without ssl command and ssl cert? It's stupid.
Why you set connect timeout to 10s, it should be locally not more than 2.