Overview
1. Basic Introduction
IPSec (Internet Protocol Security) is a common security protocol on the Internet. It is the most widely used security protocol standard in the development of VPN technologies and various network security solutions. It offers a wide range of mechanisms and strong security.
2. Application
An underlying issue between IPSec tunnels and dynamic routing protocols is that dynamic routing relies on multicast or broadcast packets for routing scope notification, while IPSec tunnels do not support encryption of multicast or broadcast packets. Our company proposed a solution to this problem by adopting the combination of GRE and IPSec to simplify configuration.
Device GRE configuration:
Device 1
Device 2
| Parameter | Description |
| VPN enabled | Enable VPN, select GRE |
| GRE tunnel name | Enter the tunnel name |
| Remote IP | Enter remote IP |
| Local IP | Enter local IP |
| Local tunnel IP | Enter the local tunnel IP |
| Remote tunnel IP | Enter the opposite tunnel IP |
| Remote destination | Fill in the destination segment |
IPSec configuration
| Parameter | Description |
| IPSec connection | Select the name of the IPSec connection or create a new IPSec |
| Connection name | Enter the IPSec connection name |
| Activate IPSec | Enable IPSec |
| Interface |
Select the connection type for IPSec
|
| IPSec network type | Choose IPSec network mode, there are two options, one is the site‑to‑site path, the other is remote access. |
| Authentication type | The authentication type here can only be the pre‑shared key option |
| PSK | Enter a password; the remote and local passwords must be identical |
| Local ID type | Choose one of the three types Default / FQDN / ID as local ID |
| Local WAN IP/FQDN | Enter the local device WAN address |
| Remote ID type | Choose one of the three types Default / FQDN / ID as remote ID |
| Remote WAN IP address/FQDN | Enter the remote device's IP address that establishes the tunnel with the local device |
| Local LAN IP address / Subnet mask length | Enter the subnet mask length of the local network |
| Remote LAN IP Address / Subnet mask length | Enter the LAN pair subnet mask length |
| Policy protocol | Choose a policy agreement, any or L2TP |
| Encapsulated mode | IPSec has two encapsulation modes, tunnel mode and transport mode. The purpose of transport mode is to protect end-to-end secure communication. The purpose of tunnel mode is to protect some or all data between stations. Users can choose the model based on their actual needs. |
| NAT enabled | Select to enable or disable NAT disabling |
| First phase | |
| Mode | The first phase of the model has two variants, one is the main mode, the other is the wild mode (also called positive mode). |
| Encryption algorithm |
Choose the encryption algorithm you need
|
| Integrity algorithm | There are two authentication algorithms, one is SHA‑1 and the other MD5 |
| Diffie-Hellman Group (DH) |
Choose one of the three algorithm key models
|
| Phase 1 SA Lifetime | The SA lifecycle is 10800 by default, you can set it yourself |
| DPD | Select to enable or disable DPD, DPD is disabled by default |
| The second phase | |
| Encryption algorithm |
Choose the encryption algorithm you need
|
| Integrity algorithm | There are two authentication algorithms and the first phase, one is SHA‑1, the other is MD5 |
| Phase 2 SA Lifetime | The SA lifecycle is 10800 by default, you can set it yourself |
| PFS | Select to enable or disable PFS, DPD is enabled by default. |

Select the connection type for IPSec
Choose the encryption algorithm you need
Choose one of the three algorithm key models
Choose the encryption algorithm you need