RhysB / Project-Poseidon

A CraftBukkit CB1060 fork for Beta 1.7.3 fixing bugs and adding basic features
https://discord.gg/FwKg676
GNU General Public License v3.0
85 stars 29 forks source link

Add HAProxy's Proxy Protocol Support #74

Closed cube-builder closed 6 months ago

cube-builder commented 1 year ago

Newer versions of PaperMC have a proxy protocol option to forward IPs from a proxy (with proxy protocol on) to the server. image

It would be good to have this option in the config as I am running a VPS with DDoS Protection that has an NGINX TCP Proxy setup that goes to my backend/mc server without DDoS Protection, NGINX has an option to enable HAProxy's proxy protocol support which is what I do for my servers that I run on newer versions. It would be nice to have this for Project Poesidon so player IPs from my NGINX proxy can be forwarded to my backend/mc server.

Example with an NGINX TCP proxy:

stream {
    server {
        listen 25565;
        proxy_pass backend:25565;
        proxy_protocol on;
    }
}
ghost commented 1 year ago

Duplicate of #40

RhysB commented 6 months ago

More than happy to accept pull requests for this functionality as started in #40.

Closing this as it is a duplicate.