• 検索結果がありません。

IPsec

通信が必要なパケットを、

IPsec

インタフェースに転送します。

9.2. アグレッシブモードの IPsec 接続を行う

IPsec

アグレッシブモードを使用してインターネット上に

VPN

を構築する設定を説明しま

す。

本設定は、以下の環境を想定した設定例です。

IPsec

アグレッシブモード(装置Aはイニシエータ、装置Bはレスポンダ)を使用しま

す。

・暗号化アルゴリズムは

AES-CBC

、認証アルゴリズムは

HMAC-SHA2

とします。

・装置Aではデータ通信端末(

3G/LTE

、動的

IP

アドレス)を使用します。

・インターネットアクセスと

IPsec

による

VPN

接続(拠点間通信)の両方を行います。

・動的

IP

が付与される拠点側は、ローカル

ID

を指定します。

・固定

IP

が付与される拠点側は、リモート

ID

を指定します。

・対向先(

Peer

)の

IP

アドレスが動的アドレスとなる場合は、

peer any

を指定します。

■接続構成

■設定概要

以下の設定を行います。

LAN

インタフェース設定

WAN

インタフェース設定

IPsec

インタフェース設定

IKE

プロポーザル設定

IKE

ポリシー設定

IPsec

プロポーザル設定

IPsec

ポリシー設定

IPsec

プロファイル設定

・ ルーティング設定

NAPT

除外設定 メモ

Version 3.0.x

3.1.x

ではトンネルモードのみサポートのため、本コマンドの有無に関わ

らず

"tunnel"

以外の動作は出来ません。

GE1.0 ME0.0

データ通信端末

(((

モバイル 通信事業者 インターネット サービスプロバイダ 3G/LTE

UNIVERGE

WA1510 動的IP

固定IP 192.0.2.2/32 IPsec

端末B

IKEモード : Aggressive IPsec通信モード : Tunnel 暗号 : AES(256bit)

認証 : SHA2 DH-group : 768bit

192.168.1.0/24 192.168.2.0/24

GE1.0 GE0.0

端末A

装置B UNIVERGE WA2610-AP

装置A

■設定(コンフィグ作成バージョン:

Ver7.5.4

[

装置A:

WA1510

設定

]

! hostname WA1510

! no wireless-adapter enable

! interface GigaEthernet1.0 ip address 192.168.1.254/24 no shutdown

! interface Loopback0.0 ip address 127.0.0.1/8 no shutdown

! interface MobileEthernet0.0 ip address dhcp

ip napt enable ip napt reserve esp ip napt reserve udp 500 ip napt reserve icmp mobile id IP example.net mobile username test mobile password plain test auto-connect

no shutdown

! interface IPsec0

ip address unnumbered ipsec map ipsecprof1 ip tcp adjust-mss auto no shutdown

! ip route default MobileEthernet0.0 ip route 192.168.2.0/24 IPsec0

! proxy-dns ip enable

proxy-dns server default MobileEthernet0.0 dhcp

! ike proposal ikeprop1

encryption-algorithm aes256-cbc

authentication-algorithm hmac-sha2-256 lifetime 28800

! ike policy ikepol1 mode aggressive local-id key-id test2

dpd-keepalive enable ph1 20 3 proposal ikeprop1

pre-shared-key plain test

! ipsec proposal ipsecprop1

protocol esp enc-algo aes256-cbc auth-algo hmac-sha2-256 lifetime 28800

! ipsec policy ipsecpol1 local-id 192.168.1.0/24 remote-id 192.168.2.0/24 proposal ipsecprop1

! ipsec profile ipsecprof1 mode tunnel

ipsec policy ipsecpol1 ike policy ikepol1

source MobileEthernet0.0 peer 192.0.2.2

!

[

装置B:

WA2610-AP

設定

]

! hostname WA2610-AP

! interface GigaEthernet0.0 ip address 192.0.2.2/32 ip napt enable

ip napt reserve esp ip napt reserve udp 500 ip napt reserve icmp no shutdown

! interface GigaEthernet1.0 ip address 192.168.2.254/24 no shutdown

! interface Loopback0.0 ip address 127.0.0.1/8 no shutdown

! interface IPsec0

ip address unnumbered ip tcp adjust-mss auto ipsec map ipsecprof1 no shutdown

! ip route default GigaEthernet0.0 ip route 192.168.1.0/24 IPsec0

! proxy-dns ip enable

proxy-dns server default 192.0.2.3

! ike proposal ikeprop1

encryption-algorithm aes256-cbc

authentication-algorithm hmac-sha2-256 lifetime 28800

! ike policy ikepol1 mode aggressive

dpd-keepalive enable ph1 20 3 proposal ikeprop1

pre-shared-key plain test

! ipsec proposal ipsecprop1

protocol esp enc-algo aes256-cbc auth-algo hmac-sha2-256 lifetime 28800

! ipsec policy ipsecpol1 local-id 192.168.2.0/24 remote-id 192.168.1.0/24 commit-bit enable

proposal ipsecprop1

! ipsec profile ipsecprof1 mode tunnel

ipsec policy ipsecpol1 ike policy ikepol1 source GigaEthernet0.0 peer any

!

■解説

[

装置A:

WA1510

設定

] ike proposal ikeprop1

IKE

プロポーザルを

"ikeprop1"

で設定します。

encryption-algorithm aes256-cbc

authentication-algorithm hmac-sha2-256

使用するセキュリティプロトコルとアルゴリズムを設定します。

暗号アルゴリズムを

"aes256-cbc"

、認証アルゴリズムを

"hmac-sha2-256"

に設定します。

lifetime 28800

IKE SA

の有効期間を

"28800"

に設定します。(初期値:

28800

ike policy ikepol1

IKE

ポリシーを

"ikepol1"

で設定します。