Hub-and-Spoke VPN Configuration Overview
For the hub router to be able to distinguish between packets going to and coming from the spoke routers, you must configure it with two routing instances.
The following instructions describe how to configure both the hub and the spokes in a hub-and-spoke VPN:
- Configure Phase 1 of the IPsec tunnel:
- Configure proposals. In Phase 1 proposal configuration,
set the authentication method and authentication and encryption algorithms
that will be used to open a secure channel between participants.
Note: When configuring a Phase 1 proposal for the dynamic VPN feature, note that you must set the authentication method to preshared keys.
- Configure policies. During policy configuration, you must set the mode in which the Phase 1 channel will be negotiated, specify the type of key exchange to be used, and reference the Phase 1 proposal.
- Configure the gateway. When creating the gateway, you must reference the Phase 1 policies.
- Configure proposals. In Phase 1 proposal configuration,
set the authentication method and authentication and encryption algorithms
that will be used to open a secure channel between participants.
- Configure Phase 2 of the IPsec tunnel:
- Configure proposals. In Phase 2 proposal configuration, you must create proposals for the two spokes, specify a security protocol, and select authentication and encryption algorithms for the traffic that will flow through the tunnel.
- Configure policies. In Phase 2 IPsec policy configuration, you must create policies and reference the Phase 2 proposals.
- Configure the AutoKey IKE. In Phase 2 AutoKey IKE configuration, you must create a VPN tunnel name, specify a gateway, and reference a Phase 2 policy. For route mode, you must bind the tunnel to an interface.
- Configure a security policy.
- Configure routing options.
- Enable Next Hop Tunnel Binding (nhtb).
Related Topics
- JUNOS Software Feature Support Reference for SRX Series and J Series Devices
- Understanding Hub-and-Spoke VPNs
- IPsec VPN Configuration Overview
- Example: Configuring the Hub in a Hub-and-Spoke VPN (CLI)
- Example: Configuring Spoke 1 in a Hub-and-Spoke VPN (CLI)
- Example: Configuring Spoke 2 in a Hub-and-Spoke VPN (CLI)