> For the complete documentation index, see [llms.txt](https://www.trentbauer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.trentbauer.com/guides/installation-guides/pelican/port-forward.md).

# 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!
