IOS XEからnative cloud VPNへ接続する2 / 8
IOS XEのlab例
拠点outerは192.0.2.10、対向outerは203.0.113.20、insideは169.254.21.2/30と対向169.254.21.1/30、remote workloadは10.80.0.0/16とする。外側の到達はglobal routingへ構成済みで、対向も以下のalgorithmとPSKを受け付ける練習例である。
crypto ikev2 proposal CLOUD-IKE-PROP
encryption aes-cbc-256
integrity sha256
prf sha256
group 14
!
crypto ikev2 policy CLOUD-IKE-POL
proposal CLOUD-IKE-PROP
!
crypto ikev2 keyring CLOUD-KR
peer CLOUD-A
address 203.0.113.20
pre-shared-key local REPLACE-WITH-TUNNEL-PSK
pre-shared-key remote REPLACE-WITH-TUNNEL-PSK
!
crypto ikev2 profile CLOUD-IKE
match identity remote address 203.0.113.20 255.255.255.255
identity local address 192.0.2.10
authentication remote pre-share
authentication local pre-share
keyring local CLOUD-KR
!
crypto ipsec transform-set CLOUD-TS esp-aes 256 esp-sha256-hmac
mode tunnel
!
crypto ipsec profile CLOUD-IPSEC
set transform-set CLOUD-TS
set ikev2-profile CLOUD-IKE
set pfs group14
!
interface Tunnel100
ip address 169.254.21.2 255.255.255.252
ip mtu 1399
ip tcp adjust-mss 1359
tunnel source GigabitEthernet0/0
tunnel destination 203.0.113.20
tunnel mode ipsec ipv4
tunnel protection ipsec profile CLOUD-IPSEC
!
ip route 10.80.0.0 255.255.0.0 Tunnel100 169.254.21.1
PSK欄は専用値へ置き換える。inside CIDR、lifetime、DPD/keepalive、NAT-Tや必要なtraffic selectorを接続先の設定へ合わせる。この1399/1359はIPv4/TCP header20+20を基準にしたlabのMTU/MSSで、すべてのcloudとalgorithmの固定最適値ではない。外側routeがTunnel100へ再帰しないことも確かめる。