Description | This article describes how to bring the IPsec VPN tunnel down or up again through the CLI and GUI. |
Scope | FortiGate. |
Solution |
To bring up/down individual phase-2 in the CLI. Replace <phase1 name> and <phase2 name> with the actual phase1 and phase2 name respectively. In the example below, phase2 name is 'VPN-2'.
diag vpn tunnel up <phase2 name> diag vpn tunnel down <phase2 name>
Example :
diag vpn tunnel up VPN-2 --> VPN-2 is the phase-2 tunnel <selectors>.
To bring down all phase2 selectors associated to a specific phase1:
diag vpn tunnel flush <phase1 name>
To bring down a specific phase1:
diag vpn ike gateway clear name <phase1 name>
To bring the tunnel up or down from the GUI:
Navigate to Dashboard -> Network -> IPsec. 'Right-click' on the tunnel and select Bring UP/Bring Down as shown below:
Alternatively, refer to this article: Technical Tip: How to bring up specific phase 2 selectors or all selectors of IPSec VPN from GUI.
To keep the IPsec tunnel down/disable state until the test, disable it from GUI and CLI:
Results:
From the earlier example, keep the internet IPsec tunnel down so it is possible to bring the tunnel up.
Discovery-kvm67 # con system interface Discovery-kvm67 (interface) # edit internet Discovery-kvm67 (internet) # show Discovery-kvm67 (internet) # set status up Discovery-kvm67 (internet) # show
Results: The tunnel is up now.
Related articles: Troubleshooting Tip: IPsec VPNs tunnels Technical Tip: How to flush a VPN tunnel |