# Proxy Protocol

<mark style="color:$warning;">WARNING</mark>\
\ <mark style="color:$warning;">If you don't enable Proxy Protocol, you can't use the protection.</mark>\
\
Once you enabled Proxy Protocol all connections must be proxied through our service and normal (direct) connections won't work anymore.

***

### 1. Why are we using Proxy Protocol

1. Disabling Proxy Protocol can cause many problems with your backend server, e.g., IP banning, as an example if you ip ban a cheater from your server, then all players got banned.
2. Proxy Protocol provides lower latency.

***

## 2. How to enable Proxy Protocol

#### Bungeecord / Waterfall

Open config.yml and set:

```yaml
proxy_protocol: true
```

***

#### Velocity

Open velocity.toml and set:

```toml
haproxy-protocol = true
```

***

### Paper 1.19+ <a href="#paper-1-19" id="paper-1-19"></a>

Only enable it if you are not running a proxy like BungeeCord/Velocity in front of your server.

Since version 1.19 Paper supports Proxy Protocol natively and doesn't require any plugin.

Just open config/paper-global.yml and set:

```yaml
proxy-protocol: true
```

***

#### Geyser

Open config.yml and set:

```yaml
geyser:
  enable-proxy-protocol: true
remote:
  use-proxy-protocol: true
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cubeguard.co/setup/editor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
