キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 
cancel
187
閲覧回数
2
いいね!
0
コメント
jianzh3
Cisco Employee
Cisco Employee

 

はじめに

本ドキュメントは、FMCによって管理されるFTDにおける、Cisco Secure Client(旧Anyconnect)のユーザー認証と証明書認証を組み合わせる設定例と動作確認方法について紹介します。本ドキュメントは、Firepower Management Center Virtual 7.4.1、Firewall Threat Defense Virtual 7.4.1、Cisco Secure Client 5.1.3.62にて確認、作成をしております。

 

 

背景

ユーザーと証明書ベースの認証を組み合わせることが、セキュリティを強化し、不正アクセスへの対策として一般的な実践となります。ユーザー体験とセキュリティを大幅に向上させることができる機能の一つに、Cisco Secure Clientでユーザー名を事前に入力する(pre-filled)機能があります。この機能により、ログインプロセスを簡略化し、リモートアクセスの全体的な効率を向上させます。
本ドキュメントでは、FTDにおける Cisco Secure Client の2要素認証を行う際、クライアントから送信された証明書の中にある共通名(Common Name)を抽出し、それをユーザー名として自動的に入力する設定例を紹介します。

本ドキュメントで使用されている各証明書の共通名(Common Name)を含む証明書チェーンは以下の通りです。

  • CA : ocsp-ca-common-name
  • Client Certificate : sslVPNClientCN
  • Server Certificate 192.168.1.200

 

 

構成例

本ドキュメントは、以下の構成で、設定・動作確認例を紹介します。

Diagram.png

 

 

設定例

FMC側の設定

1. FTD インタフェースの設定

Devices > Device Management」に移動し、対象FTDを編集して「Interfaces」のタブで、インタフェースの情報を入力します。

GigabitEthernet0/0に対し、

  • Name : outside
  • Security Zone : outsideZone
  • IP Address : 192.168.1.200/24

GigabitEthernet0/1に対し、

  • Name : inside
  • Security Zone : insideZone
  • IP Address : 192.168.10.200/24

FTD_Basic_001.png

 

2. Secure Client License の確認

Devices > Device Management」に移動し、対象FTDを編集して「Device」のタブで、Cisco Secure Clientのライセンスが有効化されていることを確認します。

FTD_Basic_002.png

 

3. Policy Assignment の追加

Devices > VPN > Remote Access」に移動し、「Add」ボタンをクリックします。

FTD_VPN_001.png

必要な情報を入力して、「Next」ボタンをクリックします。

  • Name : ftdvpn-aaa-cert-auth
  • VPN Protocols : SSL
  • Targeted Devices : 1.x.x.49

FTD_VPN_002.png

 

4. Connection Profile の設定

必要な情報を入力して、「Local Realm」項目の「+」ボタンをクリックします。

  • Authentication Method : Client Certificate & AAA
  • Authentication Server : LOCAL
  • Username From Certificate : Map specific field
  • Primary Field : CN (Common Name)
  • Secondary Field : OU (Organizational Unit)

FTD_VPN_003.png

Add Realm」プルダウンリストから「Local」をクリックし、新しい「local realm」を追加します。

FTD_VPN_004.png

必要な情報を入力して、「Save」ボタンをクリックします。

  • Name : LocalRealmTest
  • Username : sslVPNClientCN

※ユーザー名(sslVPNClientCN)はクライアント証明書の中にある共通名(Common Name)と同じです。

FTD_VPN_004_1.png

 

5. アドレスプールの追加

IPv4 Address Pools」項目の「edit」ボタンをクリックします。

FTD_VPN_006_2.png

必要な情報を入力し、追加されたアドレスプールをconnection profileにアサインします。

  • Name : ftdvpn-aaa-cert-pool
  • IPv4 Address Range : 172.16.1.40-172.16.1.50
  • Mask : 255.255.255.0

FTD_VPN_007.png

 

6. Group Policyの追加

Group Policy」項目の「+」ボタンをクリックします。

FTD_VPN_009_1.png

 必要な情報を入力し、追加されたgroup policyをconnection profileにアサインします。

  • Name : ftdvpn-aaa-cert-grp
  • VPN Protocols : SSL

FTD_VPN_008.png

 

7. Secure Client Image の設定

事前にFMCにアップロードしたイメージファイルを選択し、「Next」ボタンをクリックします。

FTD_VPN_010.png

 

8. Access & Certificate の設定

必要な情報を入力して、「Certificate Enrollment」項目の「+」ボタンをクリックします。

  • Interface group/Security Zone : outsideZone

FTD_VPN_011.png

必要な情報を入力してから、ローカルから対象証明書のPKCS12ファイルをアップロードし、FTD用のサーバー証明書を作成します。

  • Name : ftdvpn-cert
  • Enrollment Type : PKCS12 File

FTD_VPN_012.png

Next」ボタンをクリックします。

※本ドキュメントでは、「Bypass Access Control policy for decrypted traffic (sysopt permit-vpn)」機能を有効にしています。そのため、復号化されたVPNトラフィックはアクセス制御ポリシーによる検査を受けません。

FTD_VPN_013.png

 

9. Connection Profile 設定内容の確認

上記で設定した内容のサマリを確認し、「Finish」ボタンをクリックします。

FTD_VPN_014.png

 追加されたConnection Profileを確認します。

FTD_VPN_015.png

 

FTD CLI での確認

FMCでの設定内容をFTDにDeployした後、FTDのCLIで設定内容を確認します。

// Defines IP of interface
interface GigabitEthernet0/0
nameif outside
security-level 0
ip address 192.168.1.200 255.255.255.0
interface GigabitEthernet0/1
nameif inside
security-level 0
ip address 192.168.10.200 255.255.255.0

// Defines a pool of addresses
ip local pool ftdvpn-aaa-cert-pool 172.16.1.40-172.16.1.50 mask 255.255.255.0

// Defines a local user
username sslVPNClientCN password ***** encrypted

// Defines Trustpoint for Server Certificate
crypto ca trustpoint ftdvpn-cert
keypair ftdvpn-cert
crl configure

// Server Certificate Chain
crypto ca certificate chain ftdvpn-cert
certificate 22413df584b6726c
3082037c 30820264 a0030201 02020822 413df584 b6726c30 0d06092a 864886f7
......
quit
certificate ca 5242a02e0db6f7fd
3082036c 30820254 a0030201 02020852 42a02e0d b6f7fd30 0d06092a 864886f7
......
quit

// Configures the FTD to allow Cisco Secure Client connections and the valid Cisco Secure Client images
webvpn
enable outside
http-headers
hsts-server
enable
max-age 31536000
include-sub-domains
no preload
hsts-client
enable
x-content-type-options
x-xss-protection
content-security-policy
anyconnect image disk0:/csm/cisco-secure-client-win-5.1.3.62-webdeploy-k9.pkg 1 regex "Windows"
anyconnect enable
tunnel-group-list enable
cache
disable
error-recovery disable

// Bypass Access Control policy for decrypted traffic
// This setting is displayed in the 'show run all' command output
sysopt connection permit-vpn

// Configures the group-policy to allow SSL connections
group-policy ftdvpn-aaa-cert-grp internal
group-policy ftdvpn-aaa-cert-grp attributes
banner none
wins-server none
dns-server none
dhcp-network-scope none
vpn-simultaneous-logins 3
vpn-idle-timeout 30
vpn-idle-timeout alert-interval 1
vpn-session-timeout none
vpn-session-timeout alert-interval 1
vpn-filter none
vpn-tunnel-protocol ssl-client
split-tunnel-policy tunnelall
ipv6-split-tunnel-policy tunnelall
split-tunnel-network-list none
default-domain none
split-dns none
split-tunnel-all-dns disable
client-bypass-protocol disable
vlan none
address-pools none
webvpn
anyconnect ssl dtls enable
anyconnect mtu 1406
anyconnect firewall-rule client-interface public none
anyconnect firewall-rule client-interface private none
anyconnect ssl keepalive 20
anyconnect ssl rekey time none
anyconnect ssl rekey method none
anyconnect dpd-interval client 30
anyconnect dpd-interval gateway 30
anyconnect ssl compression none
anyconnect dtls compression none
anyconnect modules value none
anyconnect ask none default anyconnect
anyconnect ssl df-bit-ignore disable

// Configures the tunnel-group to use the aaa & certificate authentication
tunnel-group ftdvpn-aaa-cert-auth type remote-access
tunnel-group ftdvpn-aaa-cert-auth general-attributes
address-pool ftdvpn-aaa-cert-pool
default-group-policy ftdvpn-aaa-cert-grp
// These settings are displayed in the 'show run all' command output. Start
authentication-server-group LOCAL
secondary-authentication-server-group none
no accounting-server-group
default-group-policy ftdvpn-aaa-cert-grp
username-from-certificate CN OU
secondary-username-from-certificate CN OU
authentication-attr-from-server primary
authenticated-session-username primary
username-from-certificate-choice second-certificate
secondary-username-from-certificate-choice second-certificate
// These settings are displayed in the 'show run all' command output. End
tunnel-group ftdvpn-aaa-cert-auth webvpn-attributes
authentication aaa certificate
pre-fill-username client
group-alias ftdvpn-aaa-cert-auth enable

 

VPN クライアント側の確認

1. クライアント証明書の確認

Certificates - Current User > Personal > Certificates」に移動し、試験用のクライアント証明書(Common Name = sslVPNClientCN)を確認します。

PC_Cert_001.png

クライアント証明書をダブルクリックし、「Details」に移動して、「Subject」の詳細を確認します。

  • Subject : CN = sslVPNClientCN

PC_Cert_002.png

 

2. CA の確認

Certificates - Current User > Trusted Root Certification Authorities > Certificates」に移動し、試験用のCAがクライアント側にインポートされていることを確認します。

  • Issued By : ftd-ra-ca-common-name

PC_Cert_003.png

 

 

動作確認例

1. VPNの接続

エンドポイントでAnyconnect接続を実行します。ユーザー名はクライアント証明書から抽出されますので、VPN認証のためにパスワードのみを入力する必要があります。

※本ドキュメントでは、ユーザー名はクライアント証明書のCN(Common Name)フィールドから抽出しています。

Verify_001.png

 

2. Active セッションの確認

FMCの「Analysis > Users > Active Sessions」に移動し、VPNのActive セッションを確認します。

Verify_002.png

 

3. VPN セッションの確認

FTDのCLIで、「show vpn-sessiondb detail anyconnect」コマンドを実行して、VPNセッションを確認します。

ftd702# show vpn-sessiondb detail anyconnect

Session Type: AnyConnect Detailed

Username : sslVPNClientCN Index : 7
Assigned IP : 172.16.1.40 Public IP : 192.168.1.11
Protocol : AnyConnect-Parent SSL-Tunnel DTLS-Tunnel
License : AnyConnect Premium
Encryption : AnyConnect-Parent: (1)none SSL-Tunnel: (1)AES-GCM-128 DTLS-Tunnel: (1)AES-GCM-256
Hashing : AnyConnect-Parent: (1)none SSL-Tunnel: (1)SHA256 DTLS-Tunnel: (1)SHA384
Bytes Tx : 14780 Bytes Rx : 15386
Pkts Tx : 2 Pkts Rx : 37
Pkts Tx Drop : 0 Pkts Rx Drop : 0
Group Policy : ftdvpn-aaa-cert-grp Tunnel Group : ftdvpn-aaa-cert-auth
Login Time : 02:38:22 UTC Mon Jun 17 2024
Duration : 0h:01m:22s
Inactivity : 0h:00m:00s
VLAN Mapping : N/A VLAN : none
Audt Sess ID : cb00718200007000666fa19e
Security Grp : none Tunnel Zone : 0

AnyConnect-Parent Tunnels: 1
SSL-Tunnel Tunnels: 1
DTLS-Tunnel Tunnels: 1

AnyConnect-Parent:
Tunnel ID : 7.1
Public IP : 192.168.1.11
Encryption : none Hashing : none
TCP Src Port : 50035 TCP Dst Port : 443
Auth Mode : Certificate and userPassword
Idle Time Out: 30 Minutes Idle TO Left : 28 Minutes
Client OS : win
Client OS Ver: 10.0.15063
Client Type : AnyConnect
Client Ver : Cisco AnyConnect VPN Agent for Windows 5.1.3.62
Bytes Tx : 7390 Bytes Rx : 0
Pkts Tx : 1 Pkts Rx : 0
Pkts Tx Drop : 0 Pkts Rx Drop : 0

SSL-Tunnel:
Tunnel ID : 7.2
Assigned IP : 172.16.1.40 Public IP : 192.168.1.11
Encryption : AES-GCM-128 Hashing : SHA256
Ciphersuite : TLS_AES_128_GCM_SHA256
Encapsulation: TLSv1.3 TCP Src Port : 50042
TCP Dst Port : 443 Auth Mode : Certificate and userPassword
Idle Time Out: 30 Minutes Idle TO Left : 28 Minutes
Client OS : Windows
Client Type : SSL VPN Client
Client Ver : Cisco AnyConnect VPN Agent for Windows 5.1.3.62
Bytes Tx : 7390 Bytes Rx : 2292
Pkts Tx : 1 Pkts Rx : 3
Pkts Tx Drop : 0 Pkts Rx Drop : 0

DTLS-Tunnel:
Tunnel ID : 7.3
Assigned IP : 172.16.1.40 Public IP : 192.168.1.11
Encryption : AES-GCM-256 Hashing : SHA384
Ciphersuite : ECDHE-ECDSA-AES256-GCM-SHA384
Encapsulation: DTLSv1.2 UDP Src Port : 56382
UDP Dst Port : 443 Auth Mode : Certificate and userPassword
Idle Time Out: 30 Minutes Idle TO Left : 29 Minutes
Client OS : Windows
Client Type : DTLS VPN Client
Client Ver : Cisco AnyConnect VPN Agent for Windows 5.1.3.62
Bytes Tx : 0 Bytes Rx : 13094
Pkts Tx : 0 Pkts Rx : 34
Pkts Tx Drop : 0 Pkts Rx Drop : 0

 

4. VPN端末とサーバーの疎通性の確認

VPNクライアントからサーバーへのpingを実施し、VPNクライアントとサーバー間の通信が成功していることを確認します。

Verify_003.png

FTDのCLIで、「capture in interface inside real-time」コマンドを実行して、パケットキャプチャを確認します。

ftd702# capture in interface inside real-time
Use ctrl-c to terminate real-time capture

1: 03:39:25.729881 172.16.1.40 > 192.168.10.11 icmp: echo request
2: 03:39:25.730766 192.168.10.11 > 172.16.1.40 icmp: echo reply
3: 03:39:26.816211 172.16.1.40 > 192.168.10.11 icmp: echo request
4: 03:39:26.818683 192.168.10.11 > 172.16.1.40 icmp: echo reply
5: 03:39:27.791676 172.16.1.40 > 192.168.10.11 icmp: echo request
6: 03:39:27.792195 192.168.10.11 > 172.16.1.40 icmp: echo reply
7: 03:39:28.807789 172.16.1.40 > 192.168.10.11 icmp: echo request
8: 03:39:28.808399 192.168.10.11 > 172.16.1.40 icmp: echo reply

 

 

トラブルシューティング

FTDのLinaエンジンのデバッグログやWindows PCのDARTログは、VPN認証の詳細な動作を確認するために役立ちます。

以下は、本ドキュメントで試験時のLinaエンジン側で確認できたデバッグログです。

// Certificate Authentication
Jun 17 2024 02:38:03: %FTD-7-717029: Identified client certificate within certificate chain. serial number: 6EC79930B231EDAF, subject name: CN=sslVPNClientCN,OU=sslVPNClientOU,O=Cisco,L=Tokyo,ST=Tokyo,C=JP.
Jun 17 2024 02:38:03: %FTD-6-717028: Certificate chain was successfully validated with warning, revocation status was not checked.
Jun 17 2024 02:38:03: %FTD-6-717022: Certificate was successfully validated. serial number: 6EC79930B231EDAF, subject name: CN=sslVPNClientCN,OU=sslVPNClientOU,O=Cisco,L=Tokyo,ST=Tokyo,C=JP.

// Extract username from the CN (Common Name) field
Jun 17 2024 02:38:03: %FTD-7-113028: Extraction of username from VPN client certificate has been requested. [Request 5]
Jun 17 2024 02:38:03: %FTD-7-113028: Extraction of username from VPN client certificate has completed. [Request 5]

// User Authentication
Jun 17 2024 02:38:22: %FTD-6-113012: AAA user authentication Successful : local database : user = sslVPNClientCN
Jun 17 2024 02:38:22: %FTD-6-113009: AAA retrieved default group policy (ftdvpn-aaa-cert-grp) for user = sslVPNClientCN
Jun 17 2024 02:38:22: %FTD-6-113008: AAA transaction status ACCEPT : user = sslVPNClientCN

以下のデバッグはFTDのCLIから実行でき、設定のトラブルシューティングに役立つ情報を提供します。

  • debug crypto ca 14
  • debug webvpn anyconnect 255
  • debug crypto ike-common 255

 

 

参考情報

Configure AnyConnect Remote Access VPN on FTD
Configure Anyconnect Certificate Based Authentication for Mobile Access
Getting Started

検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう

シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします