# Universal Firewall (UFW)

## Turn on Universal Firewall (UFW)

These steps will enable Universal Firewall and allow ports for Geth and Lighthouse

### Deny incoming traffic:

```
sudo ufw default deny incoming
```

### Allow outgoing traffic:

```
sudo ufw default allow outgoing
```

### Allow Go Ethereum on port 30303

```
sudo ufw allow 30303
```

### Allow Lighthouse on port 9000

```
sudo ufw allow 9000
```

### Enable UFW

```
sudo ufw enable
```

### Show UFW Status

```
sudo ufw status numbered
```

### It should look something like this:

![](https://1909644549-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mf-NdEjHOrQMjMjT9E7%2F-MkLPe6vbVf0JCDSsp8q%2F-MkLPqxDf528eHJuOY8_%2Fimage.png?alt=media\&token=02756d7c-edad-47f0-8249-ec5857bcbdd7)

{% hint style="info" %}
Once you've confirmed the firewall is active, you can proceed to Geth installation
{% endhint %}
