### OpenVPN Client Configuration File Example Source: https://wiki.teltonika-networks.com/view/OpenVPN_configuration_examples This is a sample OpenVPN client configuration file. Ensure all paths to certificates and keys are correct for your setup. ```ovpn client dev tun proto udp remote 215.***.***.*** 1194 resolv-retry infinite nobind remote-cert-tls server ca ca.crt cert client.crt key client.key cipher AES-256-CBC auth SHA256 comp-lzo verb 3 ``` -------------------------------- ### Create Page with Quick Start Guide Information Source: https://wiki.teltonika-networks.com/view/Special%3ALog/Paulius.Z This log entry indicates the creation of a page containing the online version of the Quick Start Guide for a specific router model, detailing its components, installation, and specifications. ```WikiText This Wiki page contains the online version of the '''Quick Start Guide (QSG)''' for the '''RUTC42 Dual LTE Cat 4 Router'''. Here you will find an overview of the various components on the front and back of a RUTC42 device, hardware installation instructions, first login information, device specifications, and general safety information. It is highly recommended to acquaint yourself with the Quick Start Guide before using the device. You can also locate a printed version... ``` -------------------------------- ### MQTT Client Configuration Example Source: https://wiki.teltonika-networks.com/view/RUT301_Package_Downloads This example configures an MQTT client. It's useful for IoT applications requiring lightweight messaging. ```lua config.mqtt.enable = true config.mqtt.broker_ip = "mqtt.example.com" config.mqtt.broker_port = 1883 ``` -------------------------------- ### Copy Example API and UI Packages Source: https://wiki.teltonika-networks.com/view/RUTOS_Software_Development_Kit_%28SDK%29_Instruction Copy the example API and UI packages into the SDK VuCI feed directory. Ensure directory names can be changed, but API and UI names must match. ```bash cp "vuci-app-example-api" "vuci-app-example-ui" "RUTC_R_SDK_00.07.21.1/package/feeds/vuci/" ``` -------------------------------- ### Install Zabbix Server on Ubuntu Source: https://wiki.teltonika-networks.com/view/Monitoring_via_Zabbix Example command for installing Zabbix server components on Ubuntu via apt. ```bash sudo apt-get install zabbix-server-mysql zabbix-frontend-php ``` -------------------------------- ### Full Configuration Example Source: https://wiki.teltonika-networks.com/view/Mobile_Data_Connection_Troubleshooting A complete sequence of commands for troubleshooting a mobile connection. ```text root@Teltonika:~# ifdown ppp root@Teltonika:~# /etc/init.d/gsmd stop root@Teltonika:~# microcom /dev/modem_cmd +QCSQ: "LTE",47,-75,166,-10 +QCSQ: "LTE",47,-75,161,-10 +QCSQ: "LTE",47,-75,156,-10 +CREG: 1,"008B","012CD17",7 AT+QCSQ=0 OK +CREG: 1,"008B","012CD0D",7 +CREG: 1,"008B","012CD17",7 AT+CREG=0 OK AT OK ``` ```text AT+CPIN? +CPIN: READY OK AT+CREG OK AT+CREG? +CREG: 0,1 OK AT+CREG OK AT+CGREG? +CGREG: 0,1 OK AT+QICSGP=1,1"bangapro","","",1 OK AT+QIACT=1 OK AT+QIACT? +QIACT: 1,1,1,"88.77.66.55" OK ``` ```text AT+QIOPEN OK AT+QPING=1,"8.8.8.8" OK +QPING: 0,"8.8.8.8",32,54,255 +QPING: 0,"8.8.8.8",32,30,255 +QPING: 0,"8.8.8.8",32,35,255 +QPING: 0,"8.8.8.8",32,34,255 +QPING: 0,4,4,0,30,54,37 ``` -------------------------------- ### API Get Configuration Source: https://wiki.teltonika-networks.com/view/ATRM50_Mobile_Utilities Retrieve configuration options using the API. Example: getting periodic reboot settings. ```bash api get /auto_reboot/periodic/config ``` -------------------------------- ### Create configuration file Source: https://wiki.teltonika-networks.com/view/How_to_generate_TLS_certificates_%28Ubuntu_18%29%3F Creates the vars configuration file by copying the provided example file. ```bash cp vars.example vars ``` -------------------------------- ### MQTT Message Format Examples Source: https://wiki.teltonika-networks.com/view/Modbus_TCP_Master_MQTT_Gateway Examples of message formats for setting relays and getting uptime via MQTT. ```text 0 65432 0 192.168.1.1 502 5 1 6 203 1 ``` ```text 0 65432 0 192.168.1.1 502 5 1 3 2 2 ``` -------------------------------- ### Build Application Source: https://wiki.teltonika-networks.com/view/RUTOS_Software_Development_Kit_%28SDK%29_Instruction For automatic installation mode, clean the build and then compile the entire application. ```bash make clean make ``` -------------------------------- ### Get API Configuration Options Source: https://wiki.teltonika-networks.com/view/RUTM56_Mobile_Utilities Retrieve specified configuration options using the API get method. Example fetches periodic reboot options. ```bash api get /auto_reboot/periodic/config ``` -------------------------------- ### Client Mode Configuration Example Source: https://wiki.teltonika-networks.com/view/RUT900_Wireless Example of configuring the device to work as a WiFi client. ```APIDOC ## Client Mode Configuration Example 1. Click 'Scan' to scan for available WiFi Access Points. 2. Select an Access Point and click 'Join Network'. 3. Enter the WPA passphrase. 4. In 'Device Configuration', ensure values are appropriate for the Access Point. 5. In `Interface Configuration → General Setup`, set **Mode** to **Client** and **Network** to **wifi1**. 6. Click **Save & Apply**. ``` -------------------------------- ### Get UCI Configuration Option Source: https://wiki.teltonika-networks.com/view/ATRM50_Mobile_Utilities Retrieve the value of a specific configuration option using the UCI API. Example: getting the WAN IP address. ```bash uci get network.wan.ipaddr ``` -------------------------------- ### Create Easy-RSA Configuration File Source: https://wiki.teltonika-networks.com/view/Template%3AHow_to_generate_tls_certificates_linux Copy the example variables file to create a new configuration file named 'vars'. This file will store your certificate settings. ```bash cp vars.example vars ``` -------------------------------- ### Install DNP3 Package using opkg Source: https://wiki.teltonika-networks.com/view/Networking Example of installing the DNP3 package using the opkg command. Make sure to run 'opkg update' first. ```bash opkg install dnp3 ``` -------------------------------- ### Stunnel Configuration Example Source: https://wiki.teltonika-networks.com/view/Template%3ANetworking_device_package_downloads_OTD140 Configuration snippet for Stunnel, a proxy designed to add TLS/SSL encryption to clients and servers that do not natively support it. This example shows a basic client setup. ```config # Stunnel Client Configuration # client = yes # [myservice] # accept = 127.0.0.1:8080 # connect = remote.server.com:443 ``` -------------------------------- ### MQTT Publish/Subscribe Example (Retrieve Uptime) Source: https://wiki.teltonika-networks.com/view/RUTM10_Modbus Demonstrates how to retrieve device uptime using MQTT with Eclipse Mosquitto. ```APIDOC ## MQTT Publish/Subscribe Example ### Description This example shows how to publish a request to retrieve device uptime and subscribe to the response using MQTT. ### Publish Command (Request) ```bash mosquitto_pub -h 192.168.1.1 -p 1883 -t request -m "0 65432 0 192.168.1.1 502 5 1 3 2 2" ``` ### Subscribe Command (Response) ```bash mosquitto_sub -h 192.168.1.1 -p 1883 -t response ``` ### Example Response ``` 65432 OK 0 5590 ``` ```