The VPN connection enables you to access your machine as if you are on-site. The VPN connection between your computer and your device (IXrouter / IXagent) can be seen as two separate VPN connections:
Your device's VPN connection (IXrouter / IXagent to IXON Cloud) is, by default, always enabled. However, you can disable it for moments you don't need it and then enable it again for moments you do need it.
You can toggle the VPN connection in two different ways:
- Remotely, using the IXON Cloud
- Locally, using the IXrouter's digital input
- Locally, using the IXagent's command line
Remotely, using the IXON Cloud
You can easily disable and enable a device's VPN connection using the IXON Cloud.
MQTT connection
If the device's VPN connection is disabled, its lightweight MQTT connection will remain active. This enables you to remotely turn off the VPN connection and turn it back on again.- Go to the IXON Cloud Fleet Manager app, which is accessible from the Apps menu
in the top right corner if you are currently in a different IXON Cloud app.
- Open the main menu
, go to Devices
, and select the concerning device.
- Expand the Network
options and go to [VPN].
- Toggle [Use VPN] in the VPN access section.
Locally, using the IXrouter's digital input
The end user may want to have local control over the VPN connection. This is possible using the IXrouter's digital input (DI). It enables you to locally disable/enable the VPN connection with the use of a switch (giving a high/low signal to the DI).
When the IXrouter's VPN connection is turned off locally, you are not able to turn it back on remotely. This can only be done locally.
Electrical details
The V- from the power supply is used as common ground.
Type | Optocoupler |
---|---|
DI voltage range | 0-29 VDC |
DI OFF state voltage range | 0-3 VDC |
DI ON state voltage range | 7-29 VDC |
DI ON state current range | 2-5 mA (typically) |
Configuration
The digital input can only be configured locally with the use of a configuration file and cannot be remotely changed through the IXON Cloud.
If you have never created a configuration file before, make sure to first view one of our "Connect your IXrouter to the IXON Cloud"-guides.
- Go to the IXON Cloud Fleet Manager app, which is accessible from the Apps menu
in the top right corner if you are currently in a different IXON Cloud app.
- Open the main menu
, go to Tools
, and click [Start configuration] in the "Router config-file"-section.
- Follow the steps and make sure you use the same settings as the IXrouter's current settings.
- At the "Internet"-step, expand the "Local control over remote accessibility"-option and select to disable the VPN connection when the digital input is either high or low.
- Continue following the steps and make sure you use the same settings as the IXrouter's current settings.
- At the last step, click [Download file] to download the generated file, called ixrouter.conf, and save the file to the root directory of a USB flash drive. You may exit the configuration tool by clicking the X in the upper left corner.
- Power on your IXrouter. Skip this step if the IXrouter was already powered on.
- Insert the USB flash drive into the IXrouter's USB port.
ACT LED status
The IXrouter's ACT LED should blink blue quickly shortly after inserting the USB flash drive, indicating that the IXrouter is configuring itself.
If this hasn't happened after 1 minute, please check that the file is located in the root directory of the USB flash drive and that the file name is exactly "ixrouter.conf". Try a different USB flash drive if the problem persists.
DI configured
The digital input on the IXrouter is now configured.Locally, using the IXagent's command line
You can control the VPN connection in the IXON Cloud, but you can also disable the VPN connection directly by sending a command to the IXagent's localhost.
Please use the following commands to start or end the VPN connection between the IXagent and the IXON Cloud.
- Start a VPN connection between the the IXagent and the IXON Cloud:
echo -en "CMD openvpn connect\r\n" | nc localhost 9240
- End a VPN connection between the the IXagent and the IXON Cloud:
echo -en "CMD openvpn disconnect\r\n" | nc localhost 9240
Additionally, you can choose whether you want to start a VPN connection automatically when you start the IXagent. Please use the following commands for allowing or disallowing automatic start for the IXagent's VPN connection.
- Allow the IXagent to automatically set up a VPN connection when it starts:
echo -en "CMD openvpn \"autoconnect on"\r\n" | nc localhost 9240
- Disallow the IXagent to automatically set up a VPN connection when it starts:
echo -en "CMD openvpn \"autoconnect off"\r\n" | nc localhost 9240