{"id":18302,"date":"2017-04-17T16:32:09","date_gmt":"2017-04-17T21:32:09","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=18302"},"modified":"2022-08-04T13:34:49","modified_gmt":"2022-08-04T18:34:49","slug":"ovpn_tunnels","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/collection-endpoints\/ovpn_tunnels\/","title":{"rendered":"ovpn"},"content":{"rendered":"<p><strong>Description: list of ovpn (OpenVPN tunnels) : ARRAY<\/strong><\/p>\n<table style=\"width: 600px; border-collapse: collapse; border-color: #1e90ff; border-width: 1px; border-style: solid;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"border-color: #4f81bd; background-color: #4f81bd; border-style: solid; border-width: 1px;\"><span style=\"color: #ffffff;\"><strong>Element<\/strong><\/span><\/td>\n<td style=\"border-color: #4f81bd; background-color: #4f81bd; border-style: solid; border-width: 1px;\"><span style=\"color: #ffffff;\"><strong>Type<\/strong><\/span><\/td>\n<td style=\"border-color: #4f81bd; background-color: #4f81bd; border-style: solid; border-width: 1px;\"><span style=\"color: #ffffff;\"><strong>Description<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">name<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">Open VPN tunnel instance name.<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">enabled<\/td>\n<td valign=\"top\" width=\"75\">BOOL<\/td>\n<td valign=\"top\" width=\"350\">Enable or disable this tunnel.<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">type<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">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.<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"150\">config<\/td>\n<td valign=\"top\" width=\"75\">STRING<\/td>\n<td valign=\"top\" width=\"350\">The content of OpenVPN configuration file required for establishing OpenVPN connection.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>Example of server configuration file with static key authorization:<\/strong><br \/>\ndev tun<br \/>\nproto udp<br \/>\nport 1194<br \/>\ncomp-lzo adaptive<br \/>\nifconfig 10.8.0.1 10.8.0.2<br \/>\n&lt;secret&gt;<br \/>\n&#8212;&#8211;BEGIN OpenVPN Static key V1&#8212;&#8211;<br \/>\ne1dde2c640914be21614afac364def4f<br \/>\n90f6aa012f541939532dbb3d70c5fa6a<br \/>\n01d68aea5917a6ffc964f87dd2c264c9<br \/>\n418dea3a58897f31fe983caf5aafa631<br \/>\n182783b5bc1d57d25fed8b81c821e093<br \/>\n752baac711e2d8318bc5cd5b90f16444<br \/>\n8b122bb227c35e2b0b49d8ea36c8ff2e<br \/>\nb831617eead728bf3c32938d55c96947<br \/>\n46dd27d861d8d37501a507a54253c74d<br \/>\n93f46ff8870a989c41273592f94f20be<br \/>\ne8a461703379372698c518a492915756<br \/>\nfbe5afe8f4a26418a9e411c896237681<br \/>\n6a907ef6e0c0aca8d7b1c16d9e048377<br \/>\n6589871059db35c9f785553bc5c3c95a<br \/>\n162facf9ca4ff649f935bb6c6867e23e<br \/>\n73998bec585d4dd9c76acfc19ba53938<br \/>\n&#8212;&#8211;END OpenVPN Static key V1&#8212;&#8211;<\/p>\n<p>&lt;\/secret&gt;<br \/>\nkeepalive 10 60<\/p>\n<p><strong>Example of client configuration file with static key authorization:<\/strong><br \/>\ndev tun<br \/>\nproto udp<br \/>\nremote 1.2.3.4 1194<br \/>\nclient<br \/>\ncomp-lzo adaptive<br \/>\nifconfig 10.8.0.2 10.8.0.1<br \/>\n&lt;secret&gt;<br \/>\n&#8212;&#8211;BEGIN OpenVPN Static key V1&#8212;&#8211;<br \/>\ne1dde2c640914be21614afac364def4f<br \/>\n90f6aa012f541939532dbb3d70c5fa6a<br \/>\n01d68aea5917a6ffc964f87dd2c264c9<br \/>\n418dea3a58897f31fe983caf5aafa631<br \/>\n182783b5bc1d57d25fed8b81c821e093<br \/>\n752baac711e2d8318bc5cd5b90f16444<br \/>\n8b122bb227c35e2b0b49d8ea36c8ff2e<br \/>\nb831617eead728bf3c32938d55c96947<br \/>\n46dd27d861d8d37501a507a54253c74d<br \/>\n93f46ff8870a989c41273592f94f20be<br \/>\ne8a461703379372698c518a492915756<br \/>\nfbe5afe8f4a26418a9e411c896237681<br \/>\n6a907ef6e0c0aca8d7b1c16d9e048377<br \/>\n6589871059db35c9f785553bc5c3c95a<br \/>\n162facf9ca4ff649f935bb6c6867e23e<br \/>\n73998bec585d4dd9c76acfc19ba53938<br \/>\n&#8212;&#8211;END OpenVPN Static key V1&#8212;&#8211;<\/p>\n<p>&lt;\/secret&gt;<\/p>\n<p>nobind<br \/>\nkeepalive 10 60<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1478,"featured_media":0,"parent":13129,"menu_order":41,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-18302","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/18302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1478"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=18302"}],"version-history":[{"count":11,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/18302\/revisions"}],"predecessor-version":[{"id":18305,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/18302\/revisions\/18305"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13129"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=18302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}