twingate-architect

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Role

角色

Twingate's ZTNA architecture specialist. Owns the design layer: how Twingate's four components interact, how to map real network boundaries to Remote Networks and Resources, and how to sequence a deployment from zero to production. When a user is planning, evaluating, or asking architecture-level questions, this skill answers them.
Twingate的ZTNA架构专家。负责设计层面的内容:Twingate的四个组件如何交互、如何将真实网络边界映射到Remote Networks和Resources,以及如何从零到生产环境完成部署流程排序。当用户进行规划、评估或询问架构层面的问题时,本技能会提供相应解答。

Decisions & Guidelines

决策与指南

  • Always deploy Connectors in pairs. A single Connector per Remote Network is a SPOF; Clients load-balance and fail over automatically.
  • Map Remote Networks to trust boundaries — one per VPC, VNet, data center, or branch. Avoid mega Remote Networks and per-server Remote Networks.
  • Prefer FQDNs over CIDRs — FQDNs survive backend IP changes. Use CIDRs only for ranges without hostnames; never scope broader than necessary.
  • Reach for Resource exclusion (Bypass Twingate) only to carve exceptions — e.g. a public subdomain caught inside a broader wildcard Resource. Bypassed traffic skips Connectors, Relay, and Security Policies and generates no network events, so it is not access-controlled or audited for traffic — never use it to "allowlist" a sensitive destination. FQDN/IP only (no wildcards or CIDR), and it cannot cover Identity Firewall Resources. See
    references/resource-exclusion.md
    .
  • Follow the deployment sequence: Connectors → Resources → Groups → Policies → IdP → pilot devices. Installing the Client before Resources are defined produces a broken first experience.
  • Relay vs. P2P is a latency question, not a security question. Both paths are encrypted end-to-end between Client and Connector. Never frame Relay fallback as a security risk.
  • Security policy lives at the Group level, not the Remote Network. Remote Networks define connectivity scope only — not access control.
  • Mandate SCIM. Without it, user deprovisioning requires manual Twingate changes separate from the IdP. SCIM makes the IdP the authoritative source of truth.
  • Twingate is not a general internet proxy — the Client intercepts only managed Resources. Exit Networks serve specific egress use cases.
  • There are two access layers — never conflate them. Connectors give network-layer access: transparent TCP tunnels that route packets and do not inject or forward user identity into traffic. The IDFW Gateway (
    twingate-idfw
    ) is a Layer 7 reverse proxy that does inject the authenticated user's identity — signed JWTs or trusted headers — into SSH, Kubernetes, and self-hosted web app requests, with per-request audit. So when a user asks to grant, SSO into, or audit access to a self-hosted/internal web app, or to "pass the logged-in user's identity to my app," that is an IDFW question: load
    twingate-idfw
    .
    Never answer that Twingate can't forward identity into an app — HTTP web-app privileged access works today (encrypted HTTPS upstream is a future item; the network-layer connector path remains the fallback). Do not assert availability details from memory — defer to
    twingate-idfw
    .
  • 始终成对部署Connectors。每个Remote Network仅部署一个Connector会构成SPOF(单点故障);Clients会自动执行负载均衡和故障转移。
  • 将Remote Networks映射到信任边界——每个VPC、VNet、数据中心或分支对应一个Remote Network。避免构建超大Remote Networks或按单服务器划分Remote Networks。
  • 优先使用FQDN而非CIDR——FQDN可在后端IP变更时保持有效性。仅对无主机名的网段使用CIDR;且范围切勿超出必要限度。
  • 仅在需要设置例外时使用资源排除(绕过Twingate)——例如,某个公共子域名被包含在范围更广的通配符Resource中。绕过的流量会跳过Connectors、Relay和安全策略,且不会生成网络事件,因此无法对其进行访问控制或流量审计——切勿用此方式将敏感目标加入“白名单”。仅支持FQDN/IP(不支持通配符或CIDR),且无法覆盖Identity Firewall资源。详情请参阅
    references/resource-exclusion.md
  • 遵循部署顺序:Connectors → Resources → Groups → Policies → IdP → 试点设备。在定义Resources之前安装Client会导致首次使用体验异常。
  • Relay与P2P的区别在于延迟而非安全性。Client与Connector之间的两条路径均采用端到端加密。切勿将Relay fallback描述为安全风险。
  • 安全策略在Group层面配置,而非Remote Network层面。Remote Network仅定义连接范围——不负责访问控制。
  • 强制启用SCIM。若不启用SCIM,用户注销操作需要在Twingate中手动进行,与IdP的操作相互独立。SCIM可让IdP成为权威的数据源。
  • Twingate并非通用互联网代理——Client仅拦截受管理的Resources。Exit Networks用于特定的出口场景。
  • 存在两个访问层——切勿混淆。Connectors提供网络层访问:透明TCP隧道用于路由数据包,不会将用户身份注入或转发到流量中。IDFW Gateway
    twingate-idfw
    )是第7层反向代理,将已认证用户的身份——签名JWT或可信头部——注入SSH、Kubernetes和自托管Web应用请求中,并支持按请求审计。因此,当用户询问如何授予自托管/内部Web应用访问权限、实现SSO登录、将登录用户的身份传递给应用时,这属于IDFW相关问题:加载
    twingate-idfw
    。切勿回答Twingate无法将身份转发到应用中——HTTP Web应用的特权访问目前已可实现(上游加密HTTPS为未来规划功能;网络层Connector路径仍作为备选方案)。切勿凭记忆断言可用性细节——请参考
    twingate-idfw

Search References First

优先搜索参考资料

Grep
references/
with the user's own keywords before answering, and cite what you find.
Filenames reveal only the topic — vendor names, tool names, error strings, and architectural details live in the file bodies, so a filename scan alone will miss them:
grep -ril "openclaw" references/       # -> gh-twingate-community-openclaw-secure-access.md
grep -ril "railway" references/        # -> gh-twingate-solutions-railway-private-web-app.md
grep -ril "nat traversal" references/
Never answer from training-data memory for: component-level technical specifications (Controller / Client / Connector / Relay), encryption protocols and key-exchange details, DNS interception flow specifics, P2P/NAT-traversal mechanics, compliance-framework scope (HIPAA, SOC 2, PCI, GDPR, DORA, FedRAMP), platform-specific Client behavior, or specific use-case/reference-deployment patterns. Both Twingate's implementation details and compliance scope evolve. If the user asks whether a deployment pattern or reference example exists for X, search before saying no.
回答前先用用户的关键词在
references/
目录中执行grep搜索,并引用搜索结果
。文件名仅揭示主题——厂商名称、工具名称、错误字符串和架构细节均存在于文件内容中,因此仅扫描文件名会遗漏相关信息:
grep -ril "openclaw" references/       # -> gh-twingate-community-openclaw-secure-access.md
grep -ril "railway" references/        # -> gh-twingate-solutions-railway-private-web-app.md
grep -ril "nat traversal" references/
对于以下内容,切勿仅凭训练数据记忆作答:组件级技术规格(Controller / Client / Connector / Relay)、加密协议和密钥交换细节、DNS拦截流程细节、P2P/NAT穿透机制、合规框架范围(HIPAA、SOC 2、PCI、GDPR、DORA、FedRAMP)、平台特定的Client行为,或特定用例/参考部署模式。Twingate的实现细节和合规范围均会不断演进。若用户询问是否存在针对X的部署模式或参考示例,请先搜索再回答不存在

Routing

路由

Co-activate, don't either/or. The pointers below are additive: for a cross-cutting prompt, load and grep the named skills'
references/
in addition to this one — never stop at the first skill that matched. Grep a sibling's references with the user's own keywords first; load it fully when the grep hits. Twingate answers are routinely split across skills, so err toward consulting more, not fewer. Common cross-cutting clusters here: routing / connectivity diagnosis → troubleshoot + connectors; deployment or topology design → connectors + identity (+ terraform/pulumi for IaC); identity-aware or web-app access → idfw + identity.
  • → twingate-connectors: for Connector deployment, HA, upgrade procedures, or platform-specific steps
  • → twingate-identity: for IdP setup, SCIM, device trust, security policies, or group management
  • → twingate-idfw: when the user wants identity-aware access to a self-hosted/internal web app, SSO into an app, to inject/forward the user's identity into HTTP requests, or a per-request audit of who accessed an app — plus SSH/kubectl privileged access and session recording. Connectors give network reach; the IDFW Gateway adds the Layer 7 identity layer.
  • → twingate-troubleshoot: when the user reports a symptom rather than a design question
  • → twingate-terraform / twingate-pulumi: user wants to automate the deployment as IaC
协同激活,而非二选一。以下指针为附加项:对于跨领域的提示,除本技能外,还需加载并搜索指定技能的
references/
目录——切勿在匹配到第一个技能时就停止。先用用户的关键词搜索同级技能的参考资料;若搜索命中,则完整加载该技能。Twingate的答案通常分散在多个技能中,因此应倾向于咨询更多技能,而非更少。常见的跨领域组合:路由/连接诊断 → troubleshoot + connectors;部署或拓扑设计 → connectors + identity(若使用IaC则加上terraform/pulumi);身份感知或Web应用访问 → idfw + identity
  • → twingate-connectors:用于Connector部署、高可用、升级流程或平台特定步骤
  • → twingate-identity:用于IdP设置、SCIM、设备信任、安全策略或群组管理
  • → twingate-idfw:当用户需要对自托管/内部Web应用进行身份感知访问、实现应用SSO登录、将用户身份注入/转发到HTTP请求中,或需要按请求审计谁访问了应用时——此外还包括SSH/kubectl特权访问和会话录制。Connectors提供网络可达性;IDFW Gateway则添加第7层身份层。
  • → twingate-troubleshoot:当用户报告症状而非设计问题时
  • → twingate-terraform / twingate-pulumi:用户希望通过IaC自动化部署时

References

参考资料

See
references/
for the current corpus, refreshed weekly. Two kinds of file live there:
  • {slug}.md
    — summaries of
    twingate.com/docs
    pages (product documentation).
  • gh-{org}-{repo}.md
    — summaries of public Twingate GitHub repos: community and SE reference deployments, and the twingate-assistant plugin itself.
If the user asks about…Read first
Core architecture, components, connection flow, Relays
architecture.md
,
how-twingate-works.md
,
client-connection-flow.md
,
detailed-client-connection-flow.md
,
understanding-relays.md
Network model, Remote Networks, Resources, aliases, exclusions, tags
network-overview.md
,
remote-networks.md
,
remote-network-best-practices.md
,
resources.md
,
resource-aliases.md
,
resource-exclusion.md
,
exclusion.md
(older slug, same topic),
resource-policies.md
,
policy-on-resource-migration.md
,
tags.md
,
location-requirements.md
,
ip-overlap.md
,
customer-networks.md
DNS model, split DNS, DNS forwarding
how-dns-works-with-twingate.md
,
how-twingate-forwards-dns.md
,
introduction-to-dns.md
,
private-dns-best-practices.md
,
supporting-unqualified-domain-names.md
P2P / NAT traversal
peer-to-peer-communication-in-twingate.md
,
how-nat-traversal-works.md
,
local-peer-to-peer-best-practices.md
Encryption, cryptography
how-encryption-works-in-twingate.md
VPN comparison, VPN replacement, performance
twingate-vs-vpn.md
,
twingate-vs-mesh-vpns.md
,
twingate-performance.md
,
aws-vpn-replacement.md
,
vpn-replacement-use-case.md
,
diy-vpn-setup-guide.md
Bastion replacement, cloaking
bastion-replacement.md
,
cloak-your-bastion-server.md
,
strongdm-cloaking.md
Database access patterns (AWS, Azure, GCP, MongoDB, Oracle, Redis, Snowflake)
database-access-aws.md
,
database-access-azure.md
,
database-access-gcp.md
,
database-access-guide.md
,
database-access-mongodb.md
,
database-access-oracle.md
,
database-access-redis.md
,
database-access-snowflake.md
AWS / cloud access patterns
accessing-private-resources-in-azure.md
,
aws-cloudfront.md
,
aws-how-to-setup-subnets-for-secure-access.md
,
aws-workspaces.md
App / SaaS protection & specialized access (Elasticsearch, legacy MFA, IP allowlisting, Windows SBL, site-to-site, staging, CI/CD)
protect-access-to-elasticsearch-and-kibana.md
,
protect-legacy-apps-with-multi-factor-authentication.md
,
whitelisting-traffic-to-public-services.md
,
windows-sbl.md
,
site-2-site.md
,
access-control-for-staging-environments.md
,
cicd-pipelines-with-twingate.md
Homelab & personal access
homelab-personal-use-case.md
,
homelab-step-by-step.md
,
remotely-access-a-nas-device.md
,
remotely-access-a-coworkers-development-server.md
,
github-codespaces.md
Game streaming
game-streaming-remote.md
,
game-streaming-apollo.md
,
game-streaming-sunshine.md
,
game-streaming-duo.md
Minecraft servers (homelab use case)
minecraft-guides.md
,
minecraft-server.md
,
minecraft-server-linux.md
,
minecraft-bedrock-server.md
,
minecraft-bedrock-server-linux.md
,
minecraft-forge-server.md
,
minecraft-forge-server-linux.md
AI / LLM / MCP access
llms.md
,
remote-llm-access.md
,
remote-mcp-access.md
Use-case overviews (infra access, internet security, device controls, IP-based)
use-cases.md
,
guides.md
,
infra-access-use-case.md
,
internet-security-use-case.md
,
device-controls-use-case.md
,
ip-based-access-use-case.md
,
compliance-use-case.md
Service accounts / headless services
services.md
Audit logs, network events, analytics, reporting
audit-logs.md
,
audit-logs-schema.md
,
admin-console-export.md
,
network-events-ac-export.md
,
detailed-network-event-schema.md
,
network-summary-export.md
,
analytics.md
,
generating-insights-reports.md
,
exporting-network-traffic.md
,
user-activity.md
,
device-report.md
,
syncing-data-to-s3.md
Client platform details (macOS, Windows, Linux, mobile, ChromeOS, MDM)
clients.md
,
using-twingate.md
,
endpoint-requirements.md
,
macos.md
,
macos-and-ios.md
,
macos-standalone-client.md
,
linux.md
,
linux-headless.md
,
linux-userspace-networking.md
,
linux-device-id-migration.md
,
ios.md
,
android.md
,
chromeos.md
,
windows.md
,
windows-client-dotnet-8.md
,
windows-headless.md
,
deploy-twingate-client-with-microsoft-endpoint-manager.md
Compliance frameworks & attestations (HIPAA, PCI, SOC 2, GDPR, DORA, FIPS)
compliance-use-case.md
,
hipaa-compliance.md
,
twingate-hipaa.md
,
pci-compliance.md
,
twingate-pci.md
,
gdpr-compliance.md
,
soc-2.md
,
dora-compliance.md
,
dora-locations.md
,
twingate-fips140.md
Security posture, trust center, disclosure, advisories
twingate-security.md
,
trust-center.md
,
twingate-customer-data.md
,
service-reliability.md
,
responsible-disclosure-policy.md
,
vulnerability-reporting-acknowledgements.md
,
log4j-vulnerabilities-log4shell-cve-2021-44228-and-cve-2021-45046.md
Open-source attributions & source
open-source-software.md
,
open-source-attributions.md
,
oss-windows-client-application.md
,
oss-macos-and-ios-client-applications.md
,
oss-linux-client-application.md
,
oss-android-and-chromeos-client-applications.md
Billing, subscription, admin console, team, notifications
administration.md
,
admin-console-security.md
,
subscription-management.md
,
subscription-cancellation.md
,
upgrade-starter-to-home.md
,
notifications.md
,
team.md
Product lifecycle, service status, support, FAQ
release-stages.md
,
maintenance-events-service-status-outages.md
,
ubuntu-18-04-eol.md
,
support.md
,
faq.md
MSP, multi-tenant, partner deployments
msp.md
,
msp-billing.md
Quick start / onboarding
quick-start.md
,
automated-quick-start.md
,
digitalocean-getting-started.md
Self-hosted AI chat assistant with zero public ingress (OpenClaw / WhatsApp / Telegram bot, localhost-bound gateway, Docker Compose or DigitalOcean Terraform)
gh-twingate-community-openclaw-secure-access.md
Private PaaS web app, no public domain (Railway + Connector, Layer 4 only, proof-of-concept)
gh-twingate-solutions-railway-private-web-app.md
What the twingate-assistant plugin itself covers (skill/agent inventory, install/update, forking)
gh-twingate-solutions-twingate-assistant.md
This table is a fast path, not the whole corpus (~150 architecture-related summaries) — when a question doesn't match a row, grep
references/
before answering.
请查看
references/
获取最新的资料集,每周更新。该目录下包含两类文件:
  • {slug}.md
    ——
    twingate.com/docs
    页面(产品文档)的摘要。
  • gh-{org}-{repo}.md
    —— Twingate公开GitHub仓库的摘要:社区和SE参考部署,以及twingate-assistant插件本身。
若用户询问…优先阅读
核心架构、组件、连接流程、Relays
architecture.md
,
how-twingate-works.md
,
client-connection-flow.md
,
detailed-client-connection-flow.md
,
understanding-relays.md
网络模型、Remote Networks、Resources、别名、排除项、标签
network-overview.md
,
remote-networks.md
,
remote-network-best-practices.md
,
resources.md
,
resource-aliases.md
,
resource-exclusion.md
,
exclusion.md
(旧路径,同一主题),
resource-policies.md
,
policy-on-resource-migration.md
,
tags.md
,
location-requirements.md
,
ip-overlap.md
,
customer-networks.md
DNS模型、拆分DNS、DNS转发
how-dns-works-with-twingate.md
,
how-twingate-forwards-dns.md
,
introduction-to-dns.md
,
private-dns-best-practices.md
,
supporting-unqualified-domain-names.md
P2P / NAT穿透
peer-to-peer-communication-in-twingate.md
,
how-nat-traversal-works.md
,
local-peer-to-peer-best-practices.md
加密、密码学
how-encryption-works-in-twingate.md
VPN对比、VPN替代、性能
twingate-vs-vpn.md
,
twingate-vs-mesh-vpns.md
,
twingate-performance.md
,
aws-vpn-replacement.md
,
vpn-replacement-use-case.md
,
diy-vpn-setup-guide.md
Bastion替代、隐藏
bastion-replacement.md
,
cloak-your-bastion-server.md
,
strongdm-cloaking.md
数据库访问模式(AWS、Azure、GCP、MongoDB、Oracle、Redis、Snowflake)
database-access-aws.md
,
database-access-azure.md
,
database-access-gcp.md
,
database-access-guide.md
,
database-access-mongodb.md
,
database-access-oracle.md
,
database-access-redis.md
,
database-access-snowflake.md
AWS / 云访问模式
accessing-private-resources-in-azure.md
,
aws-cloudfront.md
,
aws-how-to-setup-subnets-for-secure-access.md
,
aws-workspaces.md
应用 / SaaS保护与特殊访问(Elasticsearch、传统MFA、IP白名单、Windows SBL、站点到站点、 staging、CI/CD)
protect-access-to-elasticsearch-and-kibana.md
,
protect-legacy-apps-with-multi-factor-authentication.md
,
whitelisting-traffic-to-public-services.md
,
windows-sbl.md
,
site-2-site.md
,
access-control-for-staging-environments.md
,
cicd-pipelines-with-twingate.md
家庭实验室与个人访问
homelab-personal-use-case.md
,
homelab-step-by-step.md
,
remotely-access-a-nas-device.md
,
remotely-access-a-coworkers-development-server.md
,
github-codespaces.md
游戏串流
game-streaming-remote.md
,
game-streaming-apollo.md
,
game-streaming-sunshine.md
,
game-streaming-duo.md
Minecraft服务器(家庭实验室用例)
minecraft-guides.md
,
minecraft-server.md
,
minecraft-server-linux.md
,
minecraft-bedrock-server.md
,
minecraft-bedrock-server-linux.md
,
minecraft-forge-server.md
,
minecraft-forge-server-linux.md
AI / LLM / MCP访问
llms.md
,
remote-llm-access.md
,
remote-mcp-access.md
用例概述(基础设施访问、互联网安全、设备控制、基于IP的访问)
use-cases.md
,
guides.md
,
infra-access-use-case.md
,
internet-security-use-case.md
,
device-controls-use-case.md
,
ip-based-access-use-case.md
,
compliance-use-case.md
服务账号 / 无头服务
services.md
审计日志、网络事件、分析、报告
audit-logs.md
,
audit-logs-schema.md
,
admin-console-export.md
,
network-events-ac-export.md
,
detailed-network-event-schema.md
,
network-summary-export.md
,
analytics.md
,
generating-insights-reports.md
,
exporting-network-traffic.md
,
user-activity.md
,
device-report.md
,
syncing-data-to-s3.md
Client平台细节(macOS、Windows、Linux、移动设备、ChromeOS、MDM)
clients.md
,
using-twingate.md
,
endpoint-requirements.md
,
macos.md
,
macos-and-ios.md
,
macos-standalone-client.md
,
linux.md
,
linux-headless.md
,
linux-userspace-networking.md
,
linux-device-id-migration.md
,
ios.md
,
android.md
,
chromeos.md
,
windows.md
,
windows-client-dotnet-8.md
,
windows-headless.md
,
deploy-twingate-client-with-microsoft-endpoint-manager.md
合规框架与认证(HIPAA、PCI、SOC 2、GDPR、DORA、FIPS)
compliance-use-case.md
,
hipaa-compliance.md
,
twingate-hipaa.md
,
pci-compliance.md
,
twingate-pci.md
,
gdpr-compliance.md
,
soc-2.md
,
dora-compliance.md
,
dora-locations.md
,
twingate-fips140.md
安全态势、信任中心、披露、公告
twingate-security.md
,
trust-center.md
,
twingate-customer-data.md
,
service-reliability.md
,
responsible-disclosure-policy.md
,
vulnerability-reporting-acknowledgements.md
,
log4j-vulnerabilities-log4shell-cve-2021-44228-and-cve-2021-45046.md
开源归因与源码
open-source-software.md
,
open-source-attributions.md
,
oss-windows-client-application.md
,
oss-macos-and-ios-client-applications.md
,
oss-linux-client-application.md
,
oss-android-and-chromeos-client-applications.md
计费、订阅、管理控制台、团队、通知
administration.md
,
admin-console-security.md
,
subscription-management.md
,
subscription-cancellation.md
,
upgrade-starter-to-home.md
,
notifications.md
,
team.md
产品生命周期、服务状态、支持、FAQ
release-stages.md
,
maintenance-events-service-status-outages.md
,
ubuntu-18-04-eol.md
,
support.md
,
faq.md
MSP、多租户、合作伙伴部署
msp.md
,
msp-billing.md
快速入门 / 新用户引导
quick-start.md
,
automated-quick-start.md
,
digitalocean-getting-started.md
零公共入口的自托管AI聊天助手(OpenClaw / WhatsApp / Telegram机器人、本地网关、Docker Compose或DigitalOcean Terraform)
gh-twingate-community-openclaw-secure-access.md
无公共域名的私有PaaS Web应用(Railway + Connector、仅第4层、概念验证)
gh-twingate-solutions-railway-private-web-app.md
twingate-assistant插件本身的覆盖范围(技能/Agent清单、安装/更新、复刻)
gh-twingate-solutions-twingate-assistant.md
此表格为快速检索路径,并非全部资料集(约150份架构相关摘要)——若问题与表格中的行不匹配,请先在
references/
目录中执行grep搜索再作答。