As shown in Figure 1, the FW connects the headquarters to the Internet. Mobile users use APs to access the headquarters through an IPSec tunnel. The FW negotiates IPSec tunnels with APs in IKEv2 mode. EAP authentication is implemented on APs through the RADIUS server, which allocates IP addresses to the APs. The AP deployment and configuration details are omitted in this example.
Item |
Data |
|---|---|
FW |
Interface number: GigabitEthernet 0/0/3 IP address: 10.1.1.1/24 |
Interface number: GigabitEthernet 0/0/1 IP address: 20.1.1.1/24 |
|
IPSec configuration IPSec policy type: policy template Pre-shared key: Test!123 Security protocol: ESP ESP authentication algorithm: SHA2-256 ESP encryption algorithm: AES-128 Local ID type: IP address Peer ID type: any IKE version: IKEv2 IKEv2 authentication method: EAP |
|
RADIUS configuration Shared key: Testforser!12345 Authentication port: 1812 |
|
Address pool 10.6.1.1 to 10.6.1.254 |
|
AP |
IP address: 20.2.2.3/24 |
IPSec configuration IPSec policy type: ISAKMP IPSec policy Pre-shared key: Test!123 Security protocol: ESP ESP authentication algorithm: SHA2-256 ESP encryption algorithm: AES-128 Remote IP address: 20.1.1.1 Local ID type: IP address Peer ID type: any IKE version: IKEv2 IKEv2 authentication method: EAP |
|
Other configurations |
Configure routes on the AP and RADIUS server to make them reachable to each other. |
Addresses in the address pool cannot be in the same network segment as the headquarters server. To ensure communication between APs and the headquarters, configure a static route on the headquarters server to the network segment of the IP address pool, and specify 10.1.1.1 as the next hop. |
For the detailed AP configuration, see related AP documents. In this example, the default IPSec configurations of the AP are the same as those of the FW. If the IPSec configurations are different, change them to be the same as those of the FW.
Run the display ike sa command on the FW to view the established IKE SAs.
<FW> display ike sa
IKE SA information :
------------------------------------------------------------------------
Conn-ID Peer VPN Flag(s) Phase RemoteType RemoteID
------------------------------------------------------------------------
8388112 20.2.2.3:500 RD|A v2:2 IP 20.2.2.3
8388111 20.2.2.3:500 RD|A v2:1 IP 20.2.2.3
Number of IKE SA : 2
-------------------------------------------------------------------------------
Flag Description:
RD--READY ST--STAYALIVE RL--REPLACED FD--FADING TO--TIMEOUT
HRT--HEARTBEAT LKG--LAST KNOWN GOOD SEQ NO. BCK--BACKED UP
M--ACTIVE S--STANDBY A--ALONE NEG--NEGOTIATING
Run the display ipsec sa command on the FW to view the established IPSec SAs.
<FW> display ipsec sa =============================== Interface: GigabitEthernet0/0/1 =============================== ----------------------------- IPSec policy name: "app" Sequence number : 1 Acl group : 3003 Acl rule : 5 Mode : Template ----------------------------- Connection ID : 41746 Encapsulation mode: tunnel Tunnel local : 20.1.1.1 Tunnel remote : 20.2.2.3 Flow source : 10.1.1.2/255.255.255.255 0/0 flow destination : 10.6.1.10/255.255.255.255 0/0 [Outbound ESP SAs] SPI: 1969821731 (0x75691823) Proposal: ESP-ENCRYPT-AES-256 SHA2-256-128 SA remaining key duration (kilobytes/sec): 3952910/3600 Max sent sequence-number: 1 UDP encapsulation used for NAT traversal: N SA encrypted packets (number/kilobytes): 4/0 [Inbound ESP SAs] SPI: 3482732912 (0xcf964970) Proposal: ESP-ENCRYPT-AES ESP-AUTH-SHA2-256 SA remaining key duration (kilobytes/sec): 8192000/3600 Max received sequence-number: 1 UDP encapsulation used for NAT traversal: N SA decrypted packets (number/kilobytes): 4/0 Anti-replay : Enable Anti-replay window size: 1024
FW configuration file
# sysname FW # ike dpd type on-demand ike dpd retransmit-interval 10 # radius-server template aaa radius-server shared-key cipher %^%#c!;|:_ari9ou6Z4MfQXQS;FF%^%# radius-server authentication 10.1.1.5 1812 # ip pool pool1 section 1 10.6.1.1 10.6.1.254 # aaa authentication-scheme eap authentication-mode radius service-scheme eap ip-pool pool1 domain abcd.org service-type internetaccess ike authentication-scheme eap radius-server aaa service-scheme eap # acl 3003 rule 5 permit ip destination 10.6.1.0 0.0.0.255 # ipsec proposal ap esp authentication-algorithm sha2-256 esp encryption-algorithm aes-256 # ike proposal 1 encryption-algorithm aes-256 dh group14 authentication-algorithm sha2-256 authentication-method pre-share integrity-algorithm hmac-sha2-256 prf hmac-sha2-256 # ike peer ap ike-proposal 1 pre-shared-key %^%#y4li.Io&^K|/RQH(B(6%d2<X%^%# service-scheme eap remote-address ip-pool 0 undo version 1 # ipsec policy-template ap 1 security acl 3003 ike-peer ap proposal ap # ipsec policy app 1 isakmp template ap # interface GigabitEthernet 0/0/3 undo shutdown ip address 10.1.1.1 255.255.255.0 # interface GigabitEthernet 0/0/1 undo shutdown ip address 20.1.1.1 255.255.255.0 ipsec policy app # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # security-policy rule name policy_ipsec_1 source-zone trust destination-zone untrust source-address 10.1.1.0 255.255.255.0 action permit rule name policy_ipsec_2 source-zone untrust destination-zone trust destination-address 10.1.1.0 255.255.255.0 action permit rule name policy_ipsec_3 source-zone local destination-zone untrust source-address 20.1.1.1 255.255.255.255 destination-address 20.2.2.3 255.255.255.255 action permit rule name policy_ipsec_4 source-zone untrust destination-zone local source-address 20.2.2.3 255.255.255.255 destination-address 20.1.1.1 255.255.255.255 action permit # ip route-static 10.6.1.0 255.255.255.0 20.1.1.2 ip route-static 20.2.2.3 255.255.255.0 20.1.1.2 # return