On the nexus server, it's a good idea to limit incoming connections to nexus-server only (and also ssh).
The `ufw` tool provides an easy way to configure the Linux kernel firewall. Install it with:
```
sudo apt-get install -y ufw
```
Then, make sure to configure the fiewall to match open ports specified in `nexus-server/config/nexus.conf`. There is the API port and the range of ports for Spice.
Let's assume the API port is 1077 and the range of Spice ports is [42000-43000]. Use `ufw` to add the following firewall rules with:
```
ufw allow 1077/tcp
ufw allow 42000:43000/tcp
```
To remove some firewall rules, list their numbers with:
```
ufw status numbered
```
Then delete a rule by specifying its number (here 42):