HP VPN Firewall Appliances VPN Configuration Guide

183
Figure 128 Network diagram
Configuration procedure
1. Configure Firewall A:
# Define an ACL to identify data flows from subnet 10.1.1.0/24 to subnet 10.1.2.0/24.
<FirewallA> system-view
[FirewallA] acl number 3101
[FirewallA-acl-adv-3101] rule permit ip source 10.1.1.0 0.0.0.255 destination
10.1.2.0 0.0.0.255
[FirewallA-acl-adv-3101] quit
# Configure a static route to Host B.
[FirewallA] ip route-static 10.1.2.0 255.255.255.0 2.2.2.2
# Create an IPsec transform set named tran1.
[FirewallA] ipsec transform-set tran1
# Specify the encapsulation mode as tunnel.
[FirewallA-ipsec-transform-set-tran1] encapsulation-mode tunnel
# Specify the security protocol as ESP.
[FirewallA-ipsec-transform-set-tran1] transform esp
# Specify the algorithms for the IPsec transform set.
[FirewallA-ipsec-transform-set-tran1] esp encryption-algorithm des
[FirewallA-ipsec-transform-set-tran1] esp authentication-algorithm sha1
[FirewallA-ipsec-transform-set-tran1] quit
# Create manual IPsec policy map1.
[FirewallA] ipsec policy map1 10 manual
# Apply the ACL.
[FirewallA-ipsec-policy-manual-map1-10] security acl 3101
# Apply the IPsec transform set.
[FirewallA-ipsec-policy-manual-map1-10] transform-set tran1
# Configure the remote IP address of the tunnel.
[FirewallA-ipsec-policy-manual-map1-10] tunnel remote 2.2.3.1
# Configure the local IP address of the tunnel.
[FirewallA-ipsec-policy-manual-map1-10] tunnel local 2.2.2.1
# Configure the SPIs.
[FirewallA-ipsec-policy-manual-map1-10] sa spi outbound esp 12345
[FirewallA-ipsec-policy-manual-map1-10] sa spi inbound esp 54321
Internet
GE0/2
2.2.2.1/24
GE0/2
2.2.3.1/24
GE0/1
10.1.1.1/24
GE0/1
10.1.2.1/24
Firewall A Firewall B
Host A
10.1.1.2/24
Host B
10.1.2.2/24