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.0004406976{main}( ).../index.php:0
20.04954928624Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.04954928624Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.290613311544Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ).../SiteApplication.php:233
50.291013335960Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_k2', $params = ??? ).../SiteApplication.php:194
60.291513391312Joomla\CMS\Component\ComponentHelper::executeComponent( $path = '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:377
70.291613422792require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php ).../ComponentHelper.php:402
80.296913828256K2ControllerItem->execute( $task = '' ).../k2.php:64
90.296913828256K2ControllerItem->display( $cachable = ???, $urlparams = ??? ).../BaseController.php:710
100.303114684784K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../item.php:78
110.303114684784K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../controller.php:19
120.305915143784Joomla\CMS\Cache\Controller\ViewController->get( $view = class K2ViewItem { public $document = class Joomla\CMS\Document\HtmlDocument { public $_links = [...]; public $_custom = [...]; public $template = NULL; public $baseurl = NULL; public $params = NULL; public $_file = NULL; protected $_template = ''; protected $_template_tags = [...]; protected $_caching = NULL; private $_html5 = NULL; public $title = 'tomato VPN 设置'; public $description = '1、为路由器刷好tomato的VPN版 2、下载vpn客户端软件openvpngui 3、安装了openvpnGUI后,在程序组中,选择Generate a static OpenVPN key 程序提示在C:\\Program Files\\OpenVPN\\config生成key.txt文件。 4、在...'; public $link = ''; public $base = 'https://www.shan.info/item/91-tomato-vpn-%E8%AE%BE%E7%BD%AE.html'; public $language = 'en-gb'; public $direction = 'ltr'; public $_generator = 'Joomla! - Open Source Content Management'; public $_mdate = ''; public $_tab = '\t'; public $_lineEnd = '\n'; public $_charset = 'utf-8'; public $_mime = 'text/html'; public $_namespace = ''; public $_profile = ''; public $_scripts = [...]; public $_script = [...]; protected $scriptOptions = [...]; public $_styleSheets = [...]; public $_style = [...]; public $_metaTags = [...]; public $_engine = NULL; public $_type = 'html'; protected $mediaVersion = '15dbf078d61dbbf76811992dd0143dd9' }; protected $_name = 'item'; protected $_models = ['itemlist' => class K2ModelItemlist { ... }, 'item' => class K2ModelItem { ... }]; protected $_basePath = '/var/www/vhosts/shan.info/httpdocs/components/com_k2'; protected $_defaultModel = 'item'; protected $_layout = 'item'; protected $_layoutExt = 'php'; protected $_layoutTemplate = '_'; protected $_path = ['template' => [...], 'helper' => [...]]; protected $_template = '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php'; protected $_output = NULL; protected $_escape = 'htmlspecialchars'; protected $_charset = 'UTF-8'; protected $_errors = []; public $baseurl = ''; public $addLink = NULL; public $inlineCommentsModeration = FALSE; public $item = class stdClass { public $id = '91'; public $title = 'tomato VPN 设置'; public $alias = 'tomato-vpn-设置'; public $catid = '43'; public $published = '1'; public $introtext = '<p>1、为路由器刷好tomato的VPN版<br /> <br /> 2、下载vpn客户端软件openvpngui<br /> <br /> 3、安装了openvpnGUI后,在程序组中,选择Generate a static OpenVPN key<br /> <br /> 程序提示在C:\\Program Files\\OpenVPN\\config生成key.txt文件。<br /> <br /> 4、在C:\\Program Files\\OpenVPN\\config目录中新建一个vpn.ovpn文件,写入下面内容(红色部分是注释,不用写)<br /> <br /> dev tap0<br /> secret key.txt <br /> proto udp<br /> remote ak1011.3322.org'; public $fulltext = ''; public $video = NULL; public $gallery = NULL; public $extra_fields = NULL; public $extra_fields_search = ''; public $created = '2010-07-21 20:06:42'; public $created_by = '63'; public $created_by_alias = ''; public $checked_out = '0'; public $checked_out_time = '0000-00-00 00:00:00'; public $modified = '2013-01-05 12:21:11'; public $modified_by = '63'; public $publish_up = '2010-07-21 20:06:15'; public $publish_down = '0000-00-00 00:00:00'; public $trash = '0'; public $access = '1'; public $ordering = '1'; public $featured = '0'; public $featured_ordering = '0'; public $image_caption = ''; public $image_credits = ''; public $video_caption = ''; public $video_credits = ''; public $hits = '5188'; public $params = class Joomla\Registry\Registry { ... }; public $metadesc = ''; public $metadata = 'robots=\nauthor='; public $metakey = ''; public $plugins = ''; public $language = '*'; public $category = class TableK2Category { ... }; public $link = '/item/91-tomato-vpn-设置.html'; public $printLink = '/item/91-tomato-vpn-设置.html?tmpl=component&amp;print=1'; public $tags = [...]; public $imageXSmall = ''; public $imageSmall = ''; public $imageMedium = ''; public $imageLarge = ''; public $imageXLarge = ''; public $attachments = [...]; public $rawTitle = 'tomato VPN 设置'; public $author = class Joomla\CMS\User\User { ... }; public $videoType = 'allvideos'; public $text = '<p>1、为路由器刷好tomato的VPN版<br /> <br /> 2、下载vpn客户端软件openvpngui<br /> <br /> 3、安装了openvpnGUI后,在程序组中,选择Generate a static OpenVPN key<br /> <br /> 程序提示在C:\\Program Files\\OpenVPN\\config生成key.txt文件。<br /> <br /> 4、在C:\\Program Files\\OpenVPN\\config目录中新建一个vpn.ovpn文件,写入下面内容(红色部分是注释,不用写)<br /> <br /> dev tap0<br /> secret key.txt <br /> proto udp<br /> remote ak1011.3322.org'; public $event = class stdClass { ... }; public $jcfields = [...]; public $image = ''; public $imageWidth = '600'; public $comments = [...]; public $numOfComments = 0; public $nextLink = '/item/531-dhcp租期.html'; public $nextTitle = 'DHCP租期...'; public $nextImageXSmall = ''; public $nextImageSmall = ''; public $nextImageMedium = ''; public $nextImageLarge = ''; public $nextImageXLarge = ''; public $absoluteURL = 'https://www.shan.info/item/91-tomato-vpn-%E8%AE%BE%E7%BD%AE.html'; public $langTagForFB = 'en_GB'; public $langTagForTW = 'en-gb'; public $langTagForLI = 'en_GB'; public $sharinglink = 'https://www.shan.info/item/91-tomato-vpn-%E8%AE%BE%E7%BD%AE.html'; public $socialLink = 'https%3A%2F%2Fwww.shan.info%2Fitem%2F91-tomato-vpn-%25E8%25AE%25BE%25E7%25BD%25AE.html'; public $twitterURL = 'https://twitter.com/intent/tweet?text=tomato+VPN+%E8%AE%BE%E7%BD%AE&amp;url=https%3A%2F%2Fwww.shan.info%2Fitem%2F91-tomato-vpn-%25E8%25AE%25BE%25E7%25BD%25AE.html'; public $langTagForGP = ''; public $emailLink = '/component/mailto/?tmpl=component&amp;template=gk_publisher&amp;link=1bfa81dc58b830555e3390f355b7d8041ecb957c' }; public $user = class Joomla\CMS\User\User { protected $isRoot = FALSE; public $id = 0; public $name = NULL; public $username = NULL; public $email = NULL; public $password = NULL; public $password_clear = ''; public $block = NULL; public $sendEmail = 0; public $registerDate = NULL; public $lastvisitDate = NULL; public $activation = NULL; public $params = NULL; public $groups = [...]; public $guest = 1; public $lastResetTime = NULL; public $resetCount = NULL; public $requireReset = NULL; protected $_params = class Joomla\Registry\Registry { ... }; protected $_authGroups = NULL; protected $_authLevels = [...]; protected $_authActions = NULL; protected $_errorMsg = NULL; protected $userHelper = class Joomla\CMS\User\UserWrapper { ... }; protected $_errors = [...]; public $aid = 0; public $gid = 1 }; public $params = class Joomla\Registry\Registry { protected $data = class stdClass { ... }; protected $initialized = TRUE; public $separator = '.' }; public $pagination = class Joomla\CMS\Pagination\Pagination { public $limitstart = 0; public $limit = 10; public $total = 0; public $prefix = ''; public $pagesStart = 1; public $pagesStop = 0; public $pagesCurrent = 1; public $pagesTotal = 0; public $hideEmptyLimitstart = FALSE; protected $viewall = FALSE; protected $additionalUrlParams = [...]; protected $app = class Joomla\CMS\Application\SiteApplication { ... }; protected $data = NULL } }, $method = 'display', $id = ???, $wrkarounds = ??? ).../BaseController.php:663
130.307015164152K2ViewItem->display( $tpl = ??? ).../ViewController.php:102
140.351318312432K2ViewItem->display( $tpl = NULL ).../view.html.php:742
150.351318312432K2ViewItem->loadTemplate( $tpl = NULL ).../HtmlView.php:230
160.353218514480include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php ).../HtmlView.php:701
  • Published in 路由
  • Read 5188 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.0004406976{main}( ).../index.php:0
20.04954928624Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.04954928624Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.290613311544Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ).../SiteApplication.php:233
50.291013335960Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_k2', $params = ??? ).../SiteApplication.php:194
60.291513391312Joomla\CMS\Component\ComponentHelper::executeComponent( $path = '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:377
70.291613422792require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php ).../ComponentHelper.php:402
80.296913828256K2ControllerItem->execute( $task = '' ).../k2.php:64
90.296913828256K2ControllerItem->display( $cachable = ???, $urlparams = ??? ).../BaseController.php:710
100.303114684784K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../item.php:78
110.303114684784K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../controller.php:19
120.305915143784Joomla\CMS\Cache\Controller\ViewController->get( $view = class K2ViewItem { public $document = class Joomla\CMS\Document\HtmlDocument { public $_links = [...]; public $_custom = [...]; public $template = NULL; public $baseurl = NULL; public $params = NULL; public $_file = NULL; protected $_template = ''; protected $_template_tags = [...]; protected $_caching = NULL; private $_html5 = NULL; public $title = 'tomato VPN 设置'; public $description = '1、为路由器刷好tomato的VPN版 2、下载vpn客户端软件openvpngui 3、安装了openvpnGUI后,在程序组中,选择Generate a static OpenVPN key 程序提示在C:\\Program Files\\OpenVPN\\config生成key.txt文件。 4、在...'; public $link = ''; public $base = 'https://www.shan.info/item/91-tomato-vpn-%E8%AE%BE%E7%BD%AE.html'; public $language = 'en-gb'; public $direction = 'ltr'; public $_generator = 'Joomla! - Open Source Content Management'; public $_mdate = ''; public $_tab = '\t'; public $_lineEnd = '\n'; public $_charset = 'utf-8'; public $_mime = 'text/html'; public $_namespace = ''; public $_profile = ''; public $_scripts = [...]; public $_script = [...]; protected $scriptOptions = [...]; public $_styleSheets = [...]; public $_style = [...]; public $_metaTags = [...]; public $_engine = NULL; public $_type = 'html'; protected $mediaVersion = '15dbf078d61dbbf76811992dd0143dd9' }; protected $_name = 'item'; protected $_models = ['itemlist' => class K2ModelItemlist { ... }, 'item' => class K2ModelItem { ... }]; protected $_basePath = '/var/www/vhosts/shan.info/httpdocs/components/com_k2'; protected $_defaultModel = 'item'; protected $_layout = 'item'; protected $_layoutExt = 'php'; protected $_layoutTemplate = '_'; protected $_path = ['template' => [...], 'helper' => [...]]; protected $_template = '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php'; protected $_output = NULL; protected $_escape = 'htmlspecialchars'; protected $_charset = 'UTF-8'; protected $_errors = []; public $baseurl = ''; public $addLink = NULL; public $inlineCommentsModeration = FALSE; public $item = class stdClass { public $id = '91'; public $title = 'tomato VPN 设置'; public $alias = 'tomato-vpn-设置'; public $catid = '43'; public $published = '1'; public $introtext = '<p>1、为路由器刷好tomato的VPN版<br /> <br /> 2、下载vpn客户端软件openvpngui<br /> <br /> 3、安装了openvpnGUI后,在程序组中,选择Generate a static OpenVPN key<br /> <br /> 程序提示在C:\\Program Files\\OpenVPN\\config生成key.txt文件。<br /> <br /> 4、在C:\\Program Files\\OpenVPN\\config目录中新建一个vpn.ovpn文件,写入下面内容(红色部分是注释,不用写)<br /> <br /> dev tap0<br /> secret key.txt <br /> proto udp<br /> remote ak1011.3322.org'; public $fulltext = ''; public $video = NULL; public $gallery = NULL; public $extra_fields = NULL; public $extra_fields_search = ''; public $created = '2010-07-21 20:06:42'; public $created_by = '63'; public $created_by_alias = ''; public $checked_out = '0'; public $checked_out_time = '0000-00-00 00:00:00'; public $modified = '2013-01-05 12:21:11'; public $modified_by = '63'; public $publish_up = '2010-07-21 20:06:15'; public $publish_down = '0000-00-00 00:00:00'; public $trash = '0'; public $access = '1'; public $ordering = '1'; public $featured = '0'; public $featured_ordering = '0'; public $image_caption = ''; public $image_credits = ''; public $video_caption = ''; public $video_credits = ''; public $hits = '5188'; public $params = class Joomla\Registry\Registry { ... }; public $metadesc = ''; public $metadata = 'robots=\nauthor='; public $metakey = ''; public $plugins = ''; public $language = '*'; public $category = class TableK2Category { ... }; public $link = '/item/91-tomato-vpn-设置.html'; public $printLink = '/item/91-tomato-vpn-设置.html?tmpl=component&amp;print=1'; public $tags = [...]; public $imageXSmall = ''; public $imageSmall = ''; public $imageMedium = ''; public $imageLarge = ''; public $imageXLarge = ''; public $attachments = [...]; public $rawTitle = 'tomato VPN 设置'; public $author = class Joomla\CMS\User\User { ... }; public $videoType = 'allvideos'; public $text = '<p>1、为路由器刷好tomato的VPN版<br /> <br /> 2、下载vpn客户端软件openvpngui<br /> <br /> 3、安装了openvpnGUI后,在程序组中,选择Generate a static OpenVPN key<br /> <br /> 程序提示在C:\\Program Files\\OpenVPN\\config生成key.txt文件。<br /> <br /> 4、在C:\\Program Files\\OpenVPN\\config目录中新建一个vpn.ovpn文件,写入下面内容(红色部分是注释,不用写)<br /> <br /> dev tap0<br /> secret key.txt <br /> proto udp<br /> remote ak1011.3322.org'; public $event = class stdClass { ... }; public $jcfields = [...]; public $image = ''; public $imageWidth = '600'; public $comments = [...]; public $numOfComments = 0; public $nextLink = '/item/531-dhcp租期.html'; public $nextTitle = 'DHCP租期...'; public $nextImageXSmall = ''; public $nextImageSmall = ''; public $nextImageMedium = ''; public $nextImageLarge = ''; public $nextImageXLarge = ''; public $absoluteURL = 'https://www.shan.info/item/91-tomato-vpn-%E8%AE%BE%E7%BD%AE.html'; public $langTagForFB = 'en_GB'; public $langTagForTW = 'en-gb'; public $langTagForLI = 'en_GB'; public $sharinglink = 'https://www.shan.info/item/91-tomato-vpn-%E8%AE%BE%E7%BD%AE.html'; public $socialLink = 'https%3A%2F%2Fwww.shan.info%2Fitem%2F91-tomato-vpn-%25E8%25AE%25BE%25E7%25BD%25AE.html'; public $twitterURL = 'https://twitter.com/intent/tweet?text=tomato+VPN+%E8%AE%BE%E7%BD%AE&amp;url=https%3A%2F%2Fwww.shan.info%2Fitem%2F91-tomato-vpn-%25E8%25AE%25BE%25E7%25BD%25AE.html'; public $langTagForGP = ''; public $emailLink = '/component/mailto/?tmpl=component&amp;template=gk_publisher&amp;link=1bfa81dc58b830555e3390f355b7d8041ecb957c' }; public $user = class Joomla\CMS\User\User { protected $isRoot = FALSE; public $id = 0; public $name = NULL; public $username = NULL; public $email = NULL; public $password = NULL; public $password_clear = ''; public $block = NULL; public $sendEmail = 0; public $registerDate = NULL; public $lastvisitDate = NULL; public $activation = NULL; public $params = NULL; public $groups = [...]; public $guest = 1; public $lastResetTime = NULL; public $resetCount = NULL; public $requireReset = NULL; protected $_params = class Joomla\Registry\Registry { ... }; protected $_authGroups = NULL; protected $_authLevels = [...]; protected $_authActions = NULL; protected $_errorMsg = NULL; protected $userHelper = class Joomla\CMS\User\UserWrapper { ... }; protected $_errors = [...]; public $aid = 0; public $gid = 1 }; public $params = class Joomla\Registry\Registry { protected $data = class stdClass { ... }; protected $initialized = TRUE; public $separator = '.' }; public $pagination = class Joomla\CMS\Pagination\Pagination { public $limitstart = 0; public $limit = 10; public $total = 0; public $prefix = ''; public $pagesStart = 1; public $pagesStop = 0; public $pagesCurrent = 1; public $pagesTotal = 0; public $hideEmptyLimitstart = FALSE; protected $viewall = FALSE; protected $additionalUrlParams = [...]; protected $app = class Joomla\CMS\Application\SiteApplication { ... }; protected $data = NULL } }, $method = 'display', $id = ???, $wrkarounds = ??? ).../BaseController.php:663
130.307015164152K2ViewItem->display( $tpl = ??? ).../ViewController.php:102
140.351318312432K2ViewItem->display( $tpl = NULL ).../view.html.php:742
150.351318312432K2ViewItem->loadTemplate( $tpl = NULL ).../HtmlView.php:230
160.353218514480include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php ).../HtmlView.php:701
back to top