# DO - Networking

{{#include ../../../banners/hacktricks-training.md}}

### Domini
```bash
doctl compute domain list
doctl compute domain records list <domain>
# You can also create records
```
### IP riservati
```bash
doctl compute reserved-ip list
doctl compute reserved-ip-action unassign <ip>
```
### Bilanciatori di Carico
```bash
doctl compute load-balancer list
doctl compute load-balancer remove-droplets <id> --droplet-ids 12,33
doctl compute load-balancer add-forwarding-rules <id> --forwarding-rules entry_protocol:tcp,entry_port:3306,...
```
### VPC
```
doctl vpcs list
```
### Firewall

> [!CAUTION]
> Per impostazione predefinita **i droplet vengono creati SENZA UN FIREWALL** (non come in altre nuvole come AWS o GCP). Quindi, se desideri che DO protegga le porte del droplet (VM), devi **crearlo e allegarlo**.
```bash
doctl compute firewall list
doctl compute firewall list-by-droplet <droplet-id>
doctl compute firewall remove-droplets <fw-id> --droplet-ids <droplet-id>
```
{{#include ../../../banners/hacktricks-training.md}}
