PaperMC / Velocity

The modern, next-generation Minecraft server proxy.

Home Page:https://papermc.io/software/velocity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

listen for haproxy on different port

shithubsucks opened this issue · comments

Currently I have noticed that if you enable listening for haproxy protocol in the settings it disables the ability for clients to connect natively without haproxy. This is undesired as haproxy is only being used for IPv6 transition purposes where IPv6 clients can directly connect to the server but IPv4 clients are relayed through Haproxy and converted to IPv6 internally.

It would be much better if Velocity could listen for haproxy on a different port while at the same time still listening for native clients on the normal port.

This realistically should be #1046
An alternative workaround for now would be to host a secondary Velocity instance with HAProxy enabled.

I feel like the scope on #1046 is a bit different but thank you for the workaround suggestion. That should work in the meantime but is massively inefficent. There is some crossover however, as I believe the issue in #1046 could possibly be addresses with the addition of haproxy and it's ability to arbitrarily bind to anything it's host can. The primary purpose of this is to preserve the source ip address to the application servers.

The workaround of running a second velocity daemon seemed to have worked. I appreciate it. This is hardly ideal though.

The scope is the exact same, just with the caveat that you also want haproxy to be configurable per listener; closing as a duplicate of #1046