# How to protect your Rust server

***

### Opening game-port(s)

There are a few ports (by default) that we will need to whitelist to allow users to connect to your server through our firewall.

Head to the **Firewall Rules** page, and open **UDP Port 28015** this is the default rust game-port and will allow regular game traffic through to your server.

<figure><img src="https://1974706686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOVdhe6ew9IpfPpowigvO%2Fuploads%2FIzR9ey7TLsvokQAcd2Bx%2FScreenshot-Iker-Macbook-Pro%202024-10-15%20at%2016.40.%402x.png?alt=media&#x26;token=6dd5c61f-b474-4085-a570-e0af0d9b496c" alt="" width="375"><figcaption></figcaption></figure>

### BattleMetrics (Optional)

You may need to whitelist RCON solely for BattleMetric IP's as listed below

BattleMetric IP's as of 04/2021

&#x20;   51.79.45.167

&#x20;   142.44.175.123

&#x20;   167.114.219.233

&#x20;   51.222.127.205

&#x20;   51.222.127.206&#x20;

&#x20;   51.222.127.207&#x20;

&#x20;

You can do this by creating a rule similar to the image below (allow rule with strict source ip):

<figure><img src="https://1974706686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOVdhe6ew9IpfPpowigvO%2Fuploads%2FjXCkP8xUCWK9VDTnoyim%2Fimage.png?alt=media&#x26;token=7b4c4a0a-bfbe-4b25-9255-ade7bb71829a" alt="" width="380"><figcaption></figcaption></figure>

### Applying the filters

Once you have verified that your server is responding on port 28015/UDP and the game-server is functional we can go ahead and apply the application specific filter to fine-tune the protection for your server.

Proceed to head over to the **Filters** page on the left hand side of the portal page.

You should be directed to a page that looks similar to below:

<figure><img src="https://1974706686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOVdhe6ew9IpfPpowigvO%2Fuploads%2FN8MCvtP8BLspUSXdFlfk%2Fimage.png?alt=media&#x26;token=bcaafa06-f92c-412e-852b-a9696a3c46fc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1974706686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOVdhe6ew9IpfPpowigvO%2Fuploads%2FzrElQQ2RF1nvwZvrHlY0%2Fimage.png?alt=media&#x26;token=6204ca70-cf53-4302-83de-b427b551c75d" alt=""><figcaption></figcaption></figure>

Your Rust server is ready to go and is setup to best defend from attacks. If you have any issues or concerns with this setup feel free to reach out to us via the support!


---

# 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.vibeshost.com/g/rust/how-to-protect-your-rust-server.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.
