给openvpn客户分配固定ip
- font size decrease font size increase font size
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
就可以了
sudo
chown
-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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0003 | 414456 | {main}( ) | .../index.php:0 |
2 | 0.0940 | 4265128 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0940 | 4265128 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3331 | 11456256 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3340 | 11480696 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3350 | 11536024 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3354 | 11563424 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3462 | 11963056 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3462 | 11963056 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3588 | 12613760 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3588 | 12613760 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3648 | 12984800 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3666 | 13005168 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4449 | 15839912 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4449 | 15839912 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4472 | 16012848 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in Openvpn
- Read 3503 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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0003 | 414456 | {main}( ) | .../index.php:0 |
2 | 0.0940 | 4265128 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0940 | 4265128 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3331 | 11456256 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3340 | 11480696 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3350 | 11536024 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3354 | 11563424 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3462 | 11963056 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3462 | 11963056 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3588 | 12613760 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3588 | 12613760 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3648 | 12984800 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3666 | 13005168 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4449 | 15839912 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4449 | 15839912 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4472 | 16012848 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |