# Install on Vultr

### Create a new instance (virtual machine)

* On the Vultr desktop, select `Products` and click on the `instance tab`. &#x20;
* Use the  Plus sign on the right side to create a new instance. Click on "Deploy new server".
* Select "Cloud Compute" as server.\ <img src="/files/edPmVPd0HSGIYdmgIaYS" alt="" data-size="original">
* Select a region near you.
* Select "Debian 11 x64" as server type.\ <img src="/files/zDzj9pAm69g1pe9j8BE3" alt="" data-size="original">&#x20;
* Choose the smallest size available, that will cost you 5$USD per month.
* Do not add any additional features.
* If you haven't uploaded your public SSH key yet, do so. Vultr does not support log in via password.
* Finally, enter "Rport Server" into the hostname input field and click the blue button `Deploy now`.\
  ![](/files/2fEoSllMdXMkzeTtMBA5)

### Log in via SSH

After the instance has been deployed, grab the public IP address from the list of instances.<br>

![Grab the public IP address](/files/ykPdeGif1hRPBuH1RLRI)

Log in to the instance using SSH and the root user, for example,  `ssh root@45.76.82.9`.

### Prepare the instance

Vultr installs the Exim Email-Server by default. It's not needed for RPort. \
🧹 Keep your system tidy and uninstall it with `apt purge -y exim4-*`.

### Create a Firewall

{% hint style="danger" %}
By default, new instances are deployed without a firewall. That means all connections except SSH are blocked. **You require a specific firewall for the RPort server.**
{% endhint %}

* On the main products' dashboard, select the firewall tab and click on `Add Firewall Group`.\
  ![](/files/22eZ8pA6wYUGw1eoUU9p)
* Name the firewall group `RPort Server` and click on "Add Firewall Group".\
  ![](/files/MTdnJloy1urUVXVvwqFp)
* On the ipv4 rules, use the plus sign to add rules.\
  ![](/files/DZC6U6mYj6VcZQf6EmAB)
* Add the following rules
  * Accept SSH `22` Anywhere `0.0.0.0/0`
  * Accept TCP(HTTP) `80` Anywhere `0.0.0.0/0`
  * Accept TCP(HTTPS) `443` Anywhere `0.0.0.0/0`
  * Accept TCP `20000-3000` Anywhere `0.0.0.0/0`
  * Accept ICMP `-` Anywhere `0.0.0.0/0` 👈 *Do not skip this rule!*
  * Drop any `0-65535` `0.0.0.0/0`

![Vultr Firewall for the rport server](/files/yIXkWH26KhmPZRyi29Jz)

Finally, click on `Linked Instances`, select the rport server and link it to the new firewall by clicking the plus sign. <br>

![Link the rport server instance to the new firewall](/files/m0iQ8EurBclccTN9gXzI)

{% hint style="info" %}
Vultr also enables a local firewall inside the virtual machine using [`ufw`](https://manpages.ubuntu.com/manpages/bionic/en/man8/ufw.8.html).\
The rport server installer detects ufw and **adds the needed rules automatically**. Usualy you don't need to configure the local firewall manually. When in doubt check with `ufw status`.
{% endhint %}

### Install the RPort server

👉 Now proceed to [Install RPort on any virgin cloud VM](/install-the-rport-server/install-rport-on-any-virgin-cloud-vm.md)


---

# 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://kb.rport.io/install-the-rport-server/install-on-vultr.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.
