This Configuration Guide shows how to start and stop a VPN connection to the icom Connectivity Suite remotely using the Command Shell in Cumulocity Cloud or Telekom Cloud of Things.
You may proceed accordingly for any other VPN connection of an INSYS Smart Device.
Situation
Your router is configured for a connection to the icom Connectivity Suite as described in the Configuration Guide Configuring an INSYS Router with icom OS for the icom Connectivity Suite - VPN. You want to start and stop the VPN tunnel via Cloud Control now.
Solution
This can be achieved by adding another WAN chain without a VPN tunnel. If this WAN chain will activated, the WAN connection will be stopped. If the previous WAN chain will activated again, the WAN connection will be restarted. If the device is restarted, the first WAN chain with the VPN interface will always be active.
Prerequsites
-
You have access to the web interface of the router.
-
You have a cloud service account.
-
The router must be registered in the cloud service. [1]
Router configuration
-
Open web interface of the router using a browser: 192.168.1.1 [2]
-
In the WAN → WAN chains menu, add a new WAN chain ().
-
Add an interface to the new WAN chain wan2 () and edit it (): [3]
-
Interface: lte2
-
Start WAN chain in case of failure: wan2
-
Connection check type: none
-
-
Click on Save settings.
-
Activate the profile by clicking the blinking gear in the title bar ().
Command Shell operation
-
Log in to your Cumulocity Cloud account.
-
Click on Other applications () in the top right corner and select Device management.
-
Click on All devices and select your router in the list of all devices.
-
Click on Shell ()
-
In order to stop the VPN connection, enter in the >_ Command field:
M3.help.debug.wan_chain.wan_chain=wan2
[4]
M3.help.debug.wan_chain.submit
[5] -
Click on Execute.
-
In order to restart the VPN connection, enter in the >_ Command field:
M3.help.debug.wan_chain.wan_chain=wan1
[6]
M3.help.debug.wan_chain.submit
[5] -
Click on Execute.
The prefix M3. determines that the commands are sent to the router.
The prefix IDS. would determine that the commands are sent to the icom Data Suite.
|
The commands issued will appear in the command history as PENDING. The commands will start the selected WAN chain. After the WAN chain has established the new WAN connection, the command history will show SUCCESSFUL for the commands issued.
Troubleshooting
-
The commands entered in the Command Shell are case-sensitive.
Back to the Configuration Guides for the icom Data Suite
Back to overview