Overview
The oblien network command manages VM network configuration including public access, internet access, ingress ports, private links, and dedicated outbound IPs.
Commands
VM firewall
Read the current port rules and their shared revision before editing.
oblien network firewall-get <vm-id> --jsonWith SDK 4, add one rule to the current policy using oblien network firewall-add <vm-id> 3000 --expected-revision 7. The default selects Private and Oblien Edge. Supply --exposure edge for an Edge-only rule on a host with separate enforcement. For a range, use a value such as 8000-8100. Public TCP requires an explicit selection.
To replace the port lists, use oblien network firewall-set <vm-id> --expected-revision 7 --private-ports 5432 --public-tcp-ports 443 with the revision you just read.
On v2, add an Edge rule with --edge-port-ranges 3000-3000. An empty value clears Edge rules. An omitted flag preserves them. Supply both private and public port lists. Use --private-ports '*' to allow all private ports, or '' for an empty list. Changing public exposure requires the owner. Add inclusive ranges with --private-port-ranges 8000-8100 or --public-tcp-port-ranges 8000-8100. Each exposure permits at most 50 combined port/range entries. Public ranges exclude 9990 and 9999. --public-tcp-allow-all true with empty public ports and ranges exposes every listening TCP service when IPv6 is enabled, including future services; runtime ports remain blocked. Use false to disable it. Omitted range/all flags preserve the saved policy. Neither private allow-all nor enabling IPv6 publishes private services automatically.
Public IPv6
Requires SDK/CLI 3.2.0 or later. Read the current policy, then pass its revision when saving:
oblien network ipv6-get <vm-id> --json
oblien network ipv6-set <vm-id> --enable --tcp-ports 5432 --expected-revision 0
oblien network ipv6-set <vm-id> --disable --expected-revision 1Replace the example revisions with the values returned by the API. Omit --tcp-ports to retain saved firewall rules; pass an explicit empty string to clear public ports. Firewall updates and IPv6 activation share one revision. Only the owner can update public IPv6. A conflict requires reading the latest state and reviewing the change before trying again. See Public IPv6 for connectivity, limits and lifecycle behavior.
Get Network Config
oblien network get <ws-id>Update Network Config
oblien network update <ws-id> [flags]Flags
| Flag | Description |
|---|---|
--public-access | Enable public access |
--no-public-access | Disable public access |
--allow-internet | Allow outbound internet |
--no-allow-internet | Block outbound internet |
--ingress-ports <ports> | Comma-separated ingress ports |
--private-links <ws-ids> | Comma-separated VM IDs for private links |
--egress <hosts> | Comma-separated allowed egress hosts |
Apply Dedicated Outbound IP
oblien network apply-outbound-ip <ws-id> --ip <ip>Examples
oblien network get ws_abc123
oblien network update ws_abc123 --public-access --ingress-ports 3000,8080
oblien network update ws_abc123 --private-links ws_def456,ws_ghi789
oblien network update ws_abc123 --no-allow-internet --egress api.example.com
oblien network apply-outbound-ip ws_abc123 --ip 203.0.113.10Rotate IPv6
SDK/CLI 3.3.0 adds oblien network ipv6-rotate <vm-id> --expected-revision <revision> --request-id <lowercase-uuid-v4> --json. Read ipv6-get first to inspect rotation availability and limits. Save the UUID and revision before calling, and reuse both after an uncertain response. The CLI never chooses a second ID or automatically retries a failed mutation. Rotation breaks connections to the retired address; update DNS and allowlists afterward. See rotation and retry rules.