tomato VPN 设置

1、为路由器刷好tomato的VPN版

2、下载vpn客户端软件openvpngui

3、安装了openvpnGUI后,在程序组中,选择Generate a static OpenVPN key

程序提示在C:\Program Files\OpenVPN\config生成key.txt文件。

4、在C:\Program Files\OpenVPN\config目录中新建一个vpn.ovpn文件,写入下面内容(红色部分是注释,不用写)

dev tap0
secret key.txt
proto udp
remote ak1011.3322.org 1194 (ak1011.3322.org是路由器的动态域名,1194是端口,这个端口要和第5步所配置的端口一致)
keepalive 10 60
resolv-retry infinite
nobind
persist-key
persist-tun
cipher BF-CBC
comp-lzo
verb 3
float

填写后,保存。

5、访问tomato管理界面,进入 VPN通道->服务器 ,点击服务器1,进行如下设置:

接口类型:TAP

协议: UDP

端口:1194 (这个端口和第4步配置的端口一致)

认证模式:静态密钥

加密密码:默认

压缩:使用

自定义设置:保留空,不用填

静态密钥:把C:\Program Files\OpenVPN\config\key.txt的文件内容填写进这里。

6,点击保存设置,点击立即启动。

7,右击openvpnGUI的图标,选择connect,搞定。

Last modified onSaturday, 05 January 2013 13:21

( ! ) 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.0011412648{main}( ).../index.php:0
20.08984262584Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08984262584Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.433311453544Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.434411477824Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.435711533152Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.436111560552require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.447311960184K2ControllerItem->execute( ).../k2.php:64
90.447311960184K2ControllerItem->display( ).../BaseController.php:710
100.461212610888K2ControllerItem->display( ).../item.php:78
110.461212610888K2ControllerItem->display( ).../controller.php:19
120.473912981928Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.475813002296K2ViewItem->display( ).../ViewController.php:102
140.540215797776K2ViewItem->display( ).../view.html.php:742
150.540215797776K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.541815970712include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in 路由
  • Read 5374 times
More in this category: DHCP租期... »

( ! ) 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.0011412648{main}( ).../index.php:0
20.08984262584Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08984262584Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.433311453544Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.434411477824Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.435711533152Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.436111560552require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.447311960184K2ControllerItem->execute( ).../k2.php:64
90.447311960184K2ControllerItem->display( ).../BaseController.php:710
100.461212610888K2ControllerItem->display( ).../item.php:78
110.461212610888K2ControllerItem->display( ).../controller.php:19
120.473912981928Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.475813002296K2ViewItem->display( ).../ViewController.php:102
140.540215797776K2ViewItem->display( ).../view.html.php:742
150.540215797776K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.541815970712include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top