Tartan NetworksStart free

Docs / The tartan CLI

tartan nat

For tartan 0.9.36

For your AI: tartannetworks.com/docs/cli/nat.md

tartan nat add

make a LAN IPv4 host reachable: by default an IPv6 address in the site's NAT /96 and a name; --ipv4 maps it into the site's IPv4 slice instead (a 1:1 NAT, no name)

tartan nat add --org <string> --site <string> --lan_ip <string>

Role: admin · Writes: yes · Steps up: always · Dry run: --dry-run · Batch: may share one passkey prompt

Person acts: passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words; it can share one passkey prompt with other writes (tartan batch run)

Flag Type Required What
--org string yes org handle or id
--site string yes the site's id or name
--lan_ip string yes the LAN host's IPv4 address, inside one of the site's LAN CIDRs
--name string no the DNS label (required for IPv6)
--ipv4 bool no the non-default IPv4 path (a 1:1 NAT, no name)
--nat_ip string no --ipv4 only: allocated from the site's slice if absent
--ports list no the ports it is reachable on (443/tcp, 3389/tcp, ...)
--zone string no the resource's zone
--profiles list no its port profiles (a zone that takes them)
--icon string no a glyph name from brand's library (printer, scale, camera, ...): the resource's icon
--https string no IPv6 only: an HTTPS front on the gateway pair to <lan-port>[:http|https]
--state string no the name's state: internal (default) or gated

tartan nat list

the org's NAT resources: family, address, name and site

tartan nat list --org <string>

Role: viewer · Writes: no · Steps up: never

Flag Type Required What
--org string yes org handle or id

tartan nat remove

remove a NAT mapping

tartan nat remove --org <string> --id <string>

Role: admin · Writes: yes · Steps up: always · Dry run: --dry-run · Batch: may share one passkey prompt

Person acts: passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words; it can share one passkey prompt with other writes (tartan batch run)

Flag Type Required What
--org string yes org handle or id
--id string yes the NAT resource's id, as nat list shows it

tartan nat set

change a NAT resource's name, ports, zone, profiles or HTTPS front (the family isn't changeable: remove and add)

tartan nat set --org <string> --id <string>

Role: admin · Writes: yes · Steps up: always · Dry run: --dry-run · Batch: may share one passkey prompt

Person acts: passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words; it can share one passkey prompt with other writes (tartan batch run)

Flag Type Required What
--org string yes org handle or id
--id string yes the NAT resource's id, as nat list shows it
--name string no the DNS label
--ports list no the ports it is reachable on (replaces them)
--zone string no the resource's zone
--profiles list no its port profiles (replaces them)
--https string no <lan-port>[:http|https]
--no_https bool no remove the HTTPS front
--ipv4 bool no refused: the family isn't changeable
--icon string no a glyph name from brand's library; '' clears it