# Port forward

## Allow Ports through the Firewall

You will need to allow your SFTP and game server ports through the firewall

#### On Ubuntu, run the following commands

```
ufw allow <SFTPPort>
ufw allow <StartOfGamePortRange:EndOfGamePortRange>/tcp
ufw allow <StartOfGamePortRange:EndOfGamePortRange>/udp
ufw allow <StartOfInternalPortRange:EndOfInternalPortRange>/tcp
ufw allow <StartOfInternalPortRange:EndOfInternalPortRange>/udp
```

{% hint style="info" %}
Example:

```
ufw allow 2022
ufw allow 2500:2550/tcp
ufw allow 2500:2550/udp
ufw allow 
```

{% endhint %}

{% hint style="danger" %}
DO NOT PORT FORWARD THESE SERVICES:

* Adminer
  {% endhint %}

## Router / Modem

You will need to port forward your SFTP and game ports on your router / modem - you will need to reference Google for this one, sorry!


---

# 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://www.trentbauer.com/guides/installation-guides/pelican/port-forward.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.
