# DO - Mrežno

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

### Domeni
```bash
doctl compute domain list
doctl compute domain records list <domain>
# You can also create records
```
### Rezervisane IP adrese
```bash
doctl compute reserved-ip list
doctl compute reserved-ip-action unassign <ip>
```
### Balansiranje opterećenja
```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]
> Po default-u **droplet-i se kreiraju BEZ FIREWALL-a** (ne kao u drugim cloud-ovima kao što su AWS ili GCP). Dakle, ako želite da DO zaštiti portove dropleta (VM), morate **da ga kreirate i povežete**.
```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}}
