メインコンテンツまでスキップ

AWS Transit Gateway 経由で FCI と AWS を接続する

このガイドでは、Unify Portal 上で AWS と OPS の各プラットフォーム間の VPNaaS を接続する方法を説明します。

  • I. AWS で VPN Site-to-Site を設定する
  • II. AWS の新しい VPN IP を使って FCI Cloud 側の VPN Site-to-Site 設定を更新する

この例では、以下のトポロジーに示すパラメータで VPN Site-to-Site 接続を作成します。

Transit Gateway 経由の FCI と AWS の接続トポロジー

AWS で VPN Site-to-Site を設定する

Step 1. Customer Gateway を作成します。 Customer Gateway は、on-premises ネットワークの gateway 機器を表す AWS 上のリソースです。 Customer Gateway を作成するには:

  1. https://console.aws.amazon.com/vpc/ にアクセスします。
  2. Customer gateways > Create customer gateway を選択します。

必要な項目を入力します。IP address には FCI の VPN Gateway の Local IP public を使用します。

AWS での Customer Gateway 作成

  1. Create Customer gateway を選択します。

作成された Customer gateway の詳細:

Customer Gateway の詳細

Step 2. Transit Gateway を作成します。 Transit Gateway を作成するには:

  1. ナビゲーションペインで Transit gateway > Create transit gateway を選択します。

    Transit Gateway の作成

  2. 作成後の結果。

    Transit Gateway の作成結果

  3. 作成した Transit GatewayVPC に attach します。

    Transit Gateway を VPC に attach

Step 3. VPN connection を作成します。

3.1 上で作成した Customer Gateway(セクション I.4.3)Transit Gateway を使って VPN connection を作成します。 VPN connection を作成するには:

  1. ナビゲーションペインで Site-to-Site VPN connections を選択します。
  2. Create VPN connection を選択します。
  3. Target gateway typeTransit Gateway に設定します。
  4. 先に作成した Transit Gateway と Customer Gateway を選択します。
  5. Routing option で Static を選択します。static IP prefixes には FCI の subnet 範囲(172.16.8.0/24)を入力します。
  6. Local IPv4 network に FCI の subnet 範囲を入力します。
  7. Remote IPv4 network に AWS の subnet 範囲を入力します。
  8. tunnel1tunnel2 のパラメータを編集します。
  9. Create VPN connection を選択します。

AWS での VPN connection 作成

tunnel のパラメータ

3.2 Transit GatewayVPN connection に attach します。

Transit Gateway を VPN connection に attach

結果:

attach の結果

Step 4. routing を設定します。 Transit Gateway を経由して VPC(AWS)から Customer Gateway(FCI)へトラフィックを流すよう routing を設定します。 VPN connection からの route を route table(FCI subnet: 172.16.8.0/16)に追加します。

route table の設定

Step 5. Security groups を更新します。 SSHRDPICMP のアクセスを許可するよう Security groups を更新します。 Security group にルールを追加するには:

  1. ナビゲーションペインで Security groups を選択します。

  2. アクセスを許可したい VPC 内の instance 向けの security group を選択します。

  3. Inbound rules タブで Edit inbound rules を選択します。FCI の subnet 範囲に All Traffic を許可します。

  4. SSH、RDP、ICMP の inbound を許可するルールを追加し、Save rules を選択します。

    Security group の更新

    VPN Connection がステータス 'Available' で正常に作成されます。次に、Route table が正しく設定されているか確認します。

Step 6. 設定ファイルをダウンロードします。 VPN connection の作成後、FCI の VPC で使用する 設定ファイルをダウンロードできます。 設定ファイルをダウンロードするには:

  1. VPN connection のページに移動します。

  2. 作成した接続を選択 > Download configuration を選択します。

  3. Vendor に pfSense、IKE version に IKEv1(または IKEv2) を選択 > Download を選択します。

    設定ファイルのダウンロード

    この設定ファイルを使って FCI 側の VPN Site-to-Site を作成します。

AWS の新しい VPN IP を使って FCI Cloud 側の VPN Site-to-Site 設定を更新する

  1. Tunnel 1 の IP を使って FCI 側の設定を更新します。

    tunnel 1 の IP

  2. Customer Gateway を編集し、Remote IP public 欄に AWS の tunnel IP を入力します。

次に、上記の AWS のパラメータ — tunnel IP、pre-shared key、AWS からダウンロードした設定ファイルの IKE/IPSec 設定 — と一致するように FCI Cloud 側の VPN Connection を設定します。詳細は VPN Connection の作成 を参照してください。

両側の設定が一致すると、接続が完了します。

  • FCI Cloud では、VPN connection の Operating statusOnline と表示されます。
  • AWS では、VPN connections > 対象の VPN connection を選択 > Tunnel details に移動します。Tunnel 1 が UP と表示されます。

結果を確認する

VPN Site-to-Site で設定したネットワーク範囲を使って各 VPC で VM を起動し、両側から ping します。

関連ページ