Cloud Service Mesh の転送ルールの IP アドレスは、Virtual Private Cloud(VPC)ネットワーク内のサブネットの IP アドレス範囲に対応する必要はありません。特定の VPC ネットワーク、IP アドレス、ポートに対して設定できる内部セルフマネージド転送ルールは 1 つのみです。
たとえば、同じ VPC ネットワークで、0.0.0.0 IP アドレスとポート 80 を使用する転送ルールを 2 つ作成することはできません。
ターゲット gRPC プロキシを使用した IPAddress
validateForProxyless フィールドが TRUE に設定され、その IP アドレスが 0.0.0.0 に設定されたターゲット gRPC プロキシを参照する転送ルール。
xds スキームを使用する gRPC クライアントは、チャネル URI のホスト名を解決するために DNS ルックアップを実行しません。代わりに、このようなクライアントは、Cloud Service Mesh にリスナー ディスカバリ サービス(LDS)リクエストを送信して、ターゲット URI の hostname[:port] を解決します。DNS ルックアップは実行されず、ホスト名の DNS エントリも不要です。
その結果、Cloud Service Mesh は、URI で指定された 0.0.0.0 IP アドレスとポート(デフォルトは 80)を使用して転送ルールを検索します。次に、Cloud Service Mesh は、一致するホストルールを、転送ルールが参照するターゲット プロキシの URL マップの中で探します。
target
✔
この転送ルールがトラフィックを転送するターゲット プロキシ。Cloud Service Mesh は、target-http-proxy、target-https-proxy、target-grpc-proxy をサポートしています。
Google Cloud コンソールを使用して転送ルールを構成すると、ターゲット プロキシが自動的に構成されます。Google Cloud CLI または API を使用する場合は、転送ルールを作成する前にターゲット プロキシが存在している必要があります。特定のプロキシで複数の転送ルールを使用できます。
IPProtocol
✔
この転送ルールが一致するプロトコルのタイプ。サポートされている値は TCP のみです。
loadBalancingScheme
✔
転送ルールの使用方法を指定します。Cloud Service Mesh の有効な値は INTERNAL_SELF_MANAGED です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[],[],null,["# Forwarding rules for Cloud Service Mesh\n=======================================\n\n| **Note:** This guide only supports Cloud Service Mesh with Google Cloud APIs and does not support Istio APIs. For more information see, [Cloud Service Mesh overview](/service-mesh/docs/overview).\n\nThis document applies only to Cloud Service Mesh with the load balancing APIs. We\nstrongly recommend that you use the\n[service routing APIs](/service-mesh/docs/service-routing/service-routing-overview)\nto deploy Cloud Service Mesh.\n\nCloud Service Mesh uses the forwarding rule to determine the target proxy to\nwhich traffic in the mesh is routed.\n\nEach forwarding rule provides a single global IPv4 address for a service. You\ncan use that address to create internal DNS records for your service\n(for example, by using a\n[Cloud DNS managed private zone](/dns/docs/zones#create-private-zone)).\nMetadata filters in the forwarding rule specify the criteria for which an\nxDS-compliant sidecar proxy receives the configuration.\n| **Note:** This page only discusses forwarding rules in the context of Cloud Service Mesh. Forwarding rules are also used to provide forwarding information in the control plane for [protocol forwarding](/load-balancing/docs/protocol-forwarding), [Classic VPN gateways](/network-connectivity/docs/vpn/concepts/overview#classic-vpn), and [Google Cloud load balancers](/load-balancing/docs/using-forwarding-rules). For a more comprehensive overview of forwarding rules, see the [Cloud Load Balancing forwarding rules overview](/load-balancing/docs/forwarding-rule-concepts).\n\nFor the Cloud Service Mesh control plane, the internal, self-managed, and\nglobal forwarding rule routes traffic by IP address, port, and protocol to a\ntarget proxy. The target proxy points to a URL map that contains rules that\ndetermine the destination of the traffic. The URL map also specifies the default\nbackend service. This backend service specifies a health check and determines\nthe appropriate backend, such as a managed instance group (MIG) that contains\nvirtual machine (VM) instances or a\n[network endpoint group (NEG)](/kubernetes-engine/docs/how-to/standalone-neg)\nthat contains Google Kubernetes Engine (GKE) backend Pods.\n\nThe following diagram shows how a forwarding rule fits into the Cloud Service Mesh\narchitecture.\n[](/static/service-mesh/docs/images/td-forwarding-rule.svg) Cloud Service Mesh forwarding rule highlighted (click to enlarge)\n\nForwarding rule properties\n--------------------------\n\nA forwarding rule resource contains the following properties that apply to\nCloud Service Mesh. The forwarding rule handles traffic that matches the\ndestination IP address, protocol, and port number.\n\nA `0.0.0.0` IP address in a forwarding rule is one of the options when\nusing Cloud Service Mesh. A `0.0.0.0` IP address means any IP address.\n\n- With a proxy deployment, a `0.0.0.0` IP address lets a proxy match any\n incoming traffic if no other specific match is found.\n\n- With a proxyless deployment, a `0.0.0.0` IP address provides a way to specify\n that an IP address is not required. More details follow about using\n `0.0.0.0` IP addresses with a target gRPC proxy.\n\nThe following table describes forwarding rule properties in more detail.\n\nAdd a global forwarding rule\n----------------------------\n\nTo learn how to configure a forwarding rule within the overall\nCloud Service Mesh setup with the load balancing APIS, see the following:\n\n- [Set up Cloud Service Mesh for Compute Engine VMs with automatic Envoy deployment](/service-mesh/legacy/load-balancing-apis/set-up-gce-vms-auto)\n- [Set up Cloud Service Mesh for Compute Engine VMs with manual Envoy deployment](/service-mesh/legacy/load-balancing-apis/set-up-gce-vms)\n- [Set up Cloud Service Mesh for GKE Pods with automatic Envoy injection](/service-mesh/legacy/load-balancing-apis/set-up-gke-pods-auto)\n- [Set up Cloud Service Mesh for GKE Pods with manual Envoy injection](/service-mesh/legacy/load-balancing-apis/set-up-gke-pods)\n- [Set up Cloud Service Mesh for Compute Engine VMs and proxyless gRPC services](/service-mesh/legacy/load-balancing-apis/set-up-proxyless-gce)\n- [Set up Cloud Service Mesh for GKE Pods and proxyless gRPC services](/service-mesh/legacy/load-balancing-apis/set-up-proxyless-gke)\n\nWhat's next\n-----------\n\n- To use metadata filters to control which sidecar proxies receive the configuration attached to the forwarding rule, see [Setting up config filtering based on `MetadataFilter` match](/service-mesh/legacy/load-balancing-apis/configure-advanced-traffic-management#config-filtering-metadata).\n- To route traffic, see [Cloud Service Mesh routing rule maps overview](/service-mesh/legacy/load-balancing-apis/routing-rule-maps).\n- To learn more about Cloud Service Mesh, see the [Cloud Service Mesh overview](/service-mesh/docs/overview)."]]