Skip to main content

OpenVPN client settings

Use this information to apply Open VPN client settings.

Before applying OpenVPN client settings, make sure the SE350 meets the following prerequisites:
  • Cloud port (Internet connection) has been setup.

  • The system time of the SE350 is correct (Check the upper-right corner in the XCC Web UI).

  • SE350 only supports OpenVPN (SSL VPN) client.

  • Request configuration files from the VPN service provider before VPN setup.

To import OpenVPN configuration files (for example, my-vpn.conf and pass.txt) that are provided by the VPN service provider:
  1. Transfer the configuration files (my-vpn.conf and pass.txt) to /home/oper/openvpn/ using SCP.
    • oper@OpenWrt:~$ scp jackshih@192.168.70.200:/home/jackshih/my-vpn.conf /home/oper/openvpn/my-vpn.conf
    • oper@OpenWrt:~$ scp jackshih@192.168.70.200:/home/jackshih/pass.txt /home/oper/openvpn/pass.txt
    Note
    You can also change the ‘config’ option of the OpenVPN to specify your configuration file name.
    • oper@OpenWrt:~$ sudo uci set openvpn.custom_config.config='/home/oper/openvpn/my-vpn.conf'
    • oper@OpenWrt:~$ sudo uci commit openvpn
  2. Enable the VPN client.
    • oper@OpenWrt:~$ sudo uci set openvpn.custom_config.enabled='1'
    • oper@OpenWrt:~$ sudo uci commit openvpn
  3. Configure the network.
    Note
    The network interface name for the VPN client is based on the tunnel device in your VPN configuration file. For example, you should set to "tun0" if "dev tun0" is in my-vpn.conf.
    • oper@OpenWrt:~$ sudo uci set network.vpn.ifname='tunnel_name'
    • oper@OpenWrt:~$ sudo uci commit network
    • oper@OpenWrt:~$ sudo /etc/init.d/network restart
  4. Restart the service.
    oper@OpenWrt:~$ sudo /etc/init.d/openvpn restart
  5. Check the interface name (for example, “tun0”) a few seconds later to see if the IP address is obtained.