openvpn如何配置HTTP代理、断线重连和自动运行

在配置文件里面添加

http-proxy-retry # retry on connection failures

http-proxy [proxy server] [proxy port #]

自动运行则需要在注册表的启动项里面添加启动命令:d:\tools\openvpn\bin\openvpn.bat

其中openvpn.bat中

openvpn-gui-1.0.3 –connect client.ovpn


( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0007415112{main}( ).../index.php:0
20.12244265352Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.12244265352Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.437911456488Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.439411481024Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.440211536352Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.440511563752require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.452211963384K2ControllerItem->execute( ).../k2.php:64
90.452211963384K2ControllerItem->display( ).../BaseController.php:710
100.467812614088K2ControllerItem->display( ).../item.php:78
110.467812614088K2ControllerItem->display( ).../controller.php:19
120.473312985128Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.475513005496K2ViewItem->display( ).../ViewController.php:102
140.609315796816K2ViewItem->display( ).../view.html.php:742
150.609315796816K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.613015969752include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Openvpn
  • Read 4210 times
More in this category: « 给openvpn客户分配固定ip

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0007415112{main}( ).../index.php:0
20.12244265352Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.12244265352Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.437911456488Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.439411481024Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.440211536352Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.440511563752require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.452211963384K2ControllerItem->execute( ).../k2.php:64
90.452211963384K2ControllerItem->display( ).../BaseController.php:710
100.467812614088K2ControllerItem->display( ).../item.php:78
110.467812614088K2ControllerItem->display( ).../controller.php:19
120.473312985128Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.475513005496K2ViewItem->display( ).../ViewController.php:102
140.609315796816K2ViewItem->display( ).../view.html.php:742
150.609315796816K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.613015969752include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top