( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0006415888{main}( ).../index.php:0
20.09454721192Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.433614251776Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.433814251720Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.433914252096Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.433914252096Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.434114252192Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.434914292112require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.442914589800GKTemplate->__construct( ).../component.php:31
100.451314759176GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.452414804032require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0006415888{main}( ).../index.php:0
20.09454721192Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.433614251776Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.433814251720Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.433914252096Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.433914252096Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.434114252192Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.434914292112require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.442914589800GKTemplate->__construct( ).../component.php:31
100.454814931976GKTemplateMenu->getMenuType( ).../gk.framework.php:85
给openvpn客户分配固定ip
Logo
Print this page

给openvpn客户分配固定ip

ifconfig-pool-persist ipp.txt

ipp.txt 内 就是固定 ip

 

 

 

在/etc/openvpn/server.conf中增加\
client-config-dir /etc/openvpn/ccd

然后在 /etc/openvpn/ccd目录中放针对每个客户端的个性化配置文件。
文件名就用客户端名 生成key的时候输入的 "Common Name" 名字

比如要设置客户端 liushiwei为 192.168.2.24 
只要在 /etc/openvpn/ccd/liushiwei文件中包含一行:

ifconfig-push 192.168.2.24 255.255.255.0


就可以了

 

sudochown-R nobody:nogroup /etc/openvpn/ccd

Last modified onWednesday, 07 August 2013 18:16

( ! ) 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.0003415968{main}( ).../index.php:0
20.07274721272Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.07274721272Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.249112449520Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.249912474040Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.250812529368Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.251012558192require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.258712993600K2ControllerItem->execute( ).../k2.php:64
90.258712993600K2ControllerItem->display( ).../BaseController.php:710
100.268313718800K2ControllerItem->display( ).../item.php:78
110.268313718800K2ControllerItem->display( ).../controller.php:19
120.271914115168Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.273414135536K2ViewItem->display( ).../ViewController.php:102
140.353817103288K2ViewItem->display( ).../view.html.php:742
150.353817103288K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.356117283488include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Openvpn
  • Read 3509 times

( ! ) 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.0003415968{main}( ).../index.php:0
20.07274721272Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.07274721272Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.249112449520Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.249912474040Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.250812529368Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.251012558192require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.258712993600K2ControllerItem->execute( ).../k2.php:64
90.258712993600K2ControllerItem->display( ).../BaseController.php:710
100.268313718800K2ControllerItem->display( ).../item.php:78
110.268313718800K2ControllerItem->display( ).../controller.php:19
120.271914115168Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.273414135536K2ViewItem->display( ).../ViewController.php:102
140.353817103288K2ViewItem->display( ).../view.html.php:742
150.353817103288K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.356117283488include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.