EasyManuals Logo

RFI U-router NGW User Manual

RFI U-router NGW
58 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #55 background imageLoading...
Page #55 background image
The information contained in this document is subject to change. This document contains proprietary information, which is protected by copyright
laws. All rights are reserved. No part of this document may be photocopied, reproduced or translated to another language or program language
without prior written consent of RFI Engineering B.V.
RefGuide_U-routerNGW_v1.01.docx Page: 54(57)
14.12 OpenVPN
The ‘openvpn’ endpoints provide access to the OpenVPN configuration on the system.
ENDPOINTS
GET /api/openvpn
POST /api/openvpn
You can use the GET /api/openvpn endpoint to retrieve the openvpn settings on the system.
For example:
curl https://192.168.168.1/api/openvpn -u rfi:rfi123
Returns:
{
"openvpn": {
"enabled": "0",
"state": "down",
"config_txt": "#paste your OpenVPN configuration here\n\n"
},
"status": "OK"
}
The ‘config_txt’ element contains the complete list of OpenVPN settings. In the Web GUI you can
paste your OpenVPN settings into a text box and upload this to the U-router NGW. On the API you
can post the complete config in one go.
Some OpenVPN capable routers allow for the export of an OpenVPN configuration for use on client
systems. The U-router NGW allows this client configuration file to be POSTed straight into the system
using the config_txtoption.
You can use the POST /api/openvpn endpoint to add, change, delete the openvpn configuration and
to enable/disable the openvpn daemon on the system. The possible POST parameters are:
enable
To enable to OpenVPN subsystem. Possible options are:
ON
OFF
config_txt
The complete client configuration for OpenVPN. Maximum
length of this field is 8192 Bytes.
For example, we can send a complete OpenVPN configuration over the API.
Suppose we want to upload the following OpenVPN configuration to the U-router:
dev tun
persist-tun
persist-key
cipher AES-256-CBC
ncp-ciphers AES-128-GCM
auth SHA1
tls-client
client
resolv-retry infinite
remote 213.212.211.210 1195 udp
auth-user-pass
remote-cert-tls server
<ca>
-----BEGIN CERTIFICATE-----
MIIEcTCCA1mgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCTkwx
V3gF7VJihmHcm2/DOOh5MJ1G72GL+O5TcGIu+hG3hyr/ib1ryg==

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the RFI U-router NGW and is the answer not in the manual?

RFI U-router NGW Specifications

General IconGeneral
BrandRFI
ModelU-router NGW
CategoryNetwork Router
LanguageEnglish