ovpn

Description: list of ovpn (OpenVPN tunnels) : ARRAY

Element Type Description
name STRING Open VPN tunnel instance name.
enabled BOOL Enable or disable this tunnel.
type STRING Type of an OpenVPN tunnel. Can be SERVER, CLIENT, CUSTOM. SERVER and CLIENT types are used for the OpenVPN configuration over WebUI. In this case resulting OpenVPN tunnel configuration file (the config field below) is automatically set. In case specific user-defined configuration file needs to be applied, the CUSTOM type should be set.
config STRING The content of OpenVPN configuration file required for establishing OpenVPN connection.

 

Example of server configuration file with static key authorization:
dev tun
proto udp
port 1194
comp-lzo adaptive
ifconfig 10.8.0.1 10.8.0.2
<secret>
—–BEGIN OpenVPN Static key V1—–
e1dde2c640914be21614afac364def4f
90f6aa012f541939532dbb3d70c5fa6a
01d68aea5917a6ffc964f87dd2c264c9
418dea3a58897f31fe983caf5aafa631
182783b5bc1d57d25fed8b81c821e093
752baac711e2d8318bc5cd5b90f16444
8b122bb227c35e2b0b49d8ea36c8ff2e
b831617eead728bf3c32938d55c96947
46dd27d861d8d37501a507a54253c74d
93f46ff8870a989c41273592f94f20be
e8a461703379372698c518a492915756
fbe5afe8f4a26418a9e411c896237681
6a907ef6e0c0aca8d7b1c16d9e048377
6589871059db35c9f785553bc5c3c95a
162facf9ca4ff649f935bb6c6867e23e
73998bec585d4dd9c76acfc19ba53938
—–END OpenVPN Static key V1—–

</secret>
keepalive 10 60

Example of client configuration file with static key authorization:
dev tun
proto udp
remote 1.2.3.4 1194
client
comp-lzo adaptive
ifconfig 10.8.0.2 10.8.0.1
<secret>
—–BEGIN OpenVPN Static key V1—–
e1dde2c640914be21614afac364def4f
90f6aa012f541939532dbb3d70c5fa6a
01d68aea5917a6ffc964f87dd2c264c9
418dea3a58897f31fe983caf5aafa631
182783b5bc1d57d25fed8b81c821e093
752baac711e2d8318bc5cd5b90f16444
8b122bb227c35e2b0b49d8ea36c8ff2e
b831617eead728bf3c32938d55c96947
46dd27d861d8d37501a507a54253c74d
93f46ff8870a989c41273592f94f20be
e8a461703379372698c518a492915756
fbe5afe8f4a26418a9e411c896237681
6a907ef6e0c0aca8d7b1c16d9e048377
6589871059db35c9f785553bc5c3c95a
162facf9ca4ff649f935bb6c6867e23e
73998bec585d4dd9c76acfc19ba53938
—–END OpenVPN Static key V1—–

</secret>

nobind
keepalive 10 60