VPNaaS - restarting the service¶
Sometimes it can be necessary to restart the IPsec connection that has been set up. For example, if problems arise with traffic flow (e.g. the gateway of the remote private network is accessible but there is no access to the hosts on that network).
Restarting a connection consists in shutting it down and then starting it up again:
Restart IPsec connection via SIM-Cloud web interface¶
- Go to “PROJECT” → “NETWORK” → “VPN” in the SIM-Cloud dashboard.
- Open the “IPSEC SITE CONNECTIONS” tab.
- Next to the required connection, click “EDIT CONNECTIONS”.
- A dialog titled ‘Edit IPsec Site Connection’ appears. At the bottom, deselect (untick) ‘Enable Admin State’.
- Check that the contents of the other fields have not changed. Now click ‘SAVE CHANGES‘.
- Click ‘EDIT CONNECTIONS’ again next to the same connection.
- At the bottom of the same ‘Edit IPsec Site Connection’ dialog, tick the checkbox for ‘Enable Admin State’.
- Check that the contents of the other fields have not changed. Now click ‘SAVE CHANGES‘.
- The IPsec connection is restarted. You can check that it is functioning correctly and traffic is flowing.
Restart IPsec connection via command line interface¶
- Ensure that the required software is installed and set up on the managing host.
- Go to “PROJECT” → “NETWORK” → “VPN” in the SIM-Cloud dashboard.
- Open the “IPSEC SITE CONNECTIONS” tab.
- Click on the name of the required connection.
- The properties of the IPsec connection are displayed. Make a note of the identifier. This is the alphanumeric code contained in the ‘ID’ field.
- Use the command-line interface to shut down and restart the IPsec connection
openstack vpn ipsec site connection set --disable <IPSec connection ID> openstack vpn ipsec site connection set --enable <IPSec connection ID>