VPN (15)

pptp vpn 有些网站无法访问 problem mtu

  • Published in VPN
在/etc/sysconfig/iptables打开端口1723,gre协议和设置MTU为1356 #在-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited前添加 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1723 -j ACCEPT -A RH-Firewall-1-INPUT -p gre -j ACCEPT -A RH-Firewall-1-INPUT -i ppp+ -j ACCEPT -I FORWARD -p tcp --syn -i ppp+ -j TCPMSS --set-mss 1356
Read more...

CentOS 安装和配置PPTP VPN

  • Published in VPN
PPTP 全称为 Point to Point Tunneling Protocol — 点到点隧道协议,是VPN协议中的一种。 虚拟专用网(VPN)被定义为通过一个公用网络(通常是因特网)建立一个临时的、安全的连接,是一条穿过混乱的公用网络的安全、稳定的隧道。虚拟专 用网是对企业内部网的扩展。虚拟专用网可以帮助远程用户、公司分支机构、商业伙伴及供应商同公司的内部网建立可信的安全连接,并保证数据的安全传输。虚拟 专用网可用于不断增长的移动用户的全球因特网接入,以实现安全连接;可用于实现企业网站之间安全通信的虚拟专用线路,用于经济有效地连接到商业伙伴和用户 的安全外联网虚拟专用网。
Read more...

L2TP 一键安装包

  • Published in VPN
转贴自 http://zeddicus.com/a-key-installation-package-l2tp 这是 L2TP over IPSec Server 一键安装包的发布页,此安装包首发于 VPSYou.com 当前版本:1.2 发行版 版本 兼容性 CentOS 5.2 32/64bit 测试通过 CentOS 5.3 32/64bit 测试通过 CentOS 5.4 32/64bit 测试通过 CentOS 5.5 32/64bit 测试通过 Ubuntu 9.10 Karmic 32/64bit 测试通过 Ubuntu 10.04 Lucid 32/64bit 测试通过 Debian 5.0 Lenny 32/64bit 测试通过 Fedora 13 32/64bit 测试通过 配置步骤: CentOS / Fedora: ?View Code LANGUAGE Ubuntu / Debian: ?View Code LANGUAGE 备注:安装按提示操作,相关截图及细节请移驾至:http://www.vpsyou.com/l2tp-vpn 。 代码 ----------------------------------------------------------------------------------------------------------------- #!/bin/bashif [ $(id -u) != "0" ]; then printf "Error: You must be root to run this tool!\n" exit 1ficlearprintf "##################################################### ## This is a Shell-Based tool of l2tp installation ## Version: 1.2 ## Author:…
Read more...

CentOS PPTP L2TP over IPSec

  • Published in VPN
转贴自 http://logicmd.net/2010/12/setup-pptp-and-l2tp-over-ipsec-on-centos/ CentOS上部署PPTP和L2TP over IPSec简要笔记 22 Comments PPTP部署 安装 PPTP 需要 MPPE 和较高版本的 ppp ( > 2.4.3 ) 支持,不过 CentOS 5.0/RHEL 5 的 2.6.18 内核已经集成了 MPPE 和高版本的 ppp 。因此可以跳过安装配置 MPPE 和 ppp 的过程直接安装 PPTP。 如果需要检查 MPPE 是否存在可以使用以下命令: shell> modprobe ppp-compress-18 && echo ‘MPPE found !’ 1.安装 pptpd ? 32位 1 2 3 4 #确保安装了ppp 和 iptables yum install -y ppp iptables wget http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.i386.rpm rpm -ivh pptpd-1.3.4-1.rhel5.1.i386.rpm Notice: 官网http://poptop.sourceforge.net/已经删掉了1.3.4版的pptpd的RPM,所以只好在这个地方下载 判断CentOS系统是32位还是64位? getconf LONG_BIT 2.配置文件编写 ①.配置文件/etc/ppp/options.pptpd ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 mv /etc/ppp/options.pptpd /etc/ppp/options.pptpd.bak cat >>/etc/ppp/options.pptpd<<EOF name pptpd refuse-pap…
Read more...

centos 5.5 pptpd install

  • Published in VPN
http://space.itpub.net/665930/viewspace-682794 9、设置开机自动运行服务。我们最后一步是将pptp和iptables设置为开机自动运行,这样就不需要每次重启服务器后手动启动服务了。当然你不需要自动启动服务的话可以忽略这一步。输入指令: #chkconfig pptpd on PPTP 全称为 Point to Point Tunneling Protocol — 点到点隧道协议,是VPN协议中的一种。 安装相关软件 yum install -y ppp iptables wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-1.rhel5.1.i386.rpm rpm -ivh pptpd-1.3.4-1.rhel5.1.i386.rpm 配置文件/etc/ppp/options.pptpd mv /etc/ppp/options.pptpd /etc/ppp/options.pptpd.bak vi /etc/ppp/options.pptpd 输入以下内容: #相当于身份验证时的域,一定要和/etc/ppp/chap-secrets中的内容对应 name pptpd #传输加密。ppp-2.4.2以上的版本只支持MPPE加密,内核模块为 ppp_mppe.o #拒绝pap,chap身份验证 refuse-pap refuse-chap #拒绝mschap身份验证 refuse-mschap #采用mschap-v2(Microsoft Challenge Handshake Authentication Protocol, Version 2)身份验证方式 require-mschap-v2 #在采用mschap-v2身份验证方式时要使用MPPE进行加密 require-mppe-128 #启动ARP代理 proxyarp lock nobsdcomp novj novjccomp nologfd #分配给客户的DNS,这里用的是opendns ms-dns 208.67.222.222 ms-dns 208.67.220.220 配置文件/etc/ppp/chap-secrets mv /etc/ppp/chap-secrets /etc/ppp/chap-secrets.bak vi /etc/ppp/chap-secrets 输入以下内容 # Secrets for authentication using CHAP # client server secret IP addresses vi pptpd viyin.net * 用户名vi,密码viyin.net ,*表示任意ip pptpd要和/etc/ppp/options.pptpd中的name 部分的pptpd匹配 配置文件/etc/pptpd.conf mv /etc/pptpd.conf /etc/pptpd.conf.bak vi /etc/pptpd.conf 输入以下内容: option /etc/ppp/options.pptpd…
Read more...

( ! ) 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/category.php on line 191
Call Stack
#TimeMemoryFunctionLocation
10.0001398064{main}( ).../index.php:0
20.02681348408Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.02681348408Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.10672875512Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ).../SiteApplication.php:233
50.10712899912Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_k2', $params = ??? ).../SiteApplication.php:194
60.10752955264Joomla\CMS\Component\ComponentHelper::executeComponent( $path = '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:377
70.10762972320require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php ).../ComponentHelper.php:402
80.11103104560K2ControllerItemlist->execute( $task = 'category' ).../k2.php:64
90.11103104560K2ControllerItemlist->display( $cachable = ???, $urlparams = ??? ).../BaseController.php:710
100.11333128184K2ControllerItemlist->display( $cachable = TRUE, $urlparams = ['limit' => 'UINT', 'limitstart' => 'UINT', 'id' => 'INT', 'tag' => 'STRING', 'searchword' => 'STRING', 'day' => 'INT', 'year' => 'INT', 'month' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'ordering' => 'CMD', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../itemlist.php:49
110.11333128184K2ControllerItemlist->display( $cachable = TRUE, $urlparams = ['limit' => 'UINT', 'limitstart' => 'UINT', 'id' => 'INT', 'tag' => 'STRING', 'searchword' => 'STRING', 'day' => 'INT', 'year' => 'INT', 'month' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'ordering' => 'CMD', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ).../controller.php:19
120.11393135696Joomla\CMS\Cache\Controller\ViewController->get( $view = class K2ViewItemlist { 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 = 'VPN'; public $description = ''; public $link = ''; public $base = 'https://www.shan.info/itemlist/category/58-vpn.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 = 'itemlist'; protected $_models = ['item' => class K2ModelItem { ... }, 'itemlist' => class K2ModelItemlist { ... }]; protected $_basePath = '/var/www/vhosts/shan.info/httpdocs/components/com_k2'; protected $_defaultModel = 'itemlist'; protected $_layout = 'category'; 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/category_item.php'; protected $_output = '\n<article class="itemView groupPrimary"> \t\n\t\t<time datetime="2011-05-01T19:36:12+02:00">\n\t\t01 May\t</time>\n\t\t\t\n\t<section>\t\t\n\t\t<header>\n\t\t\t\t\n\t\t\t\t\t\t<h2>\n\t\t\t\t\t\t\t\t\t\t<a href="/item/198-centos-5-5-pptpd-install.html">centos 5.5 pptpd install</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t\n\t\t\t<ul>\n\t\t\t\t\t\t\t\t<li class="itemCategory"> <span>Published in</span> <a href="/itemlist/category/58-vpn.html">VPN</a> </li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<li class="it'; protected $_escape = 'htmlspecialchars'; protected $_charset = 'UTF-8'; protected $_errors = []; public $baseurl = ''; public $now = '2021-09-19 22:34:03'; public $nullDate = '0000-00-00 00:00:00'; public $category = class TableK2Category { public $id = '58'; public $name = 'VPN'; public $alias = 'vpn'; public $description = ''; public $parent = '0'; public $extraFieldsGroup = '0'; public $published = '1'; public $image = '/components/com_k2/images/placeholder/category.png'; public $access = '1'; public $ordering = '37'; public $params = '{"inheritFrom":"0","theme":"","num_leading_items":"0","num_leading_columns":"1","leadingImgSize":"Large","num_primary_items":"10","num_primary_columns":"1","primaryImgSize":"Medium","num_secondary_items":"0","num_secondary_columns":"1","secondaryImgSize":"Small","num_links":"0","num_links_columns":"1","linksImgSize":"XSmall","catCatalogMode":"0","catFeaturedItems":"1","catOrdering":"","catPagination":"2","catPaginationResults":"1","catTitle":"1","catTitleItemCounter":"1","catDescription":"0","catImage":"0",'; public $trash = '0'; public $plugins = ''; public $language = '*'; protected $_tbl = '#__k2_categories'; protected $_tbl_key = 'id'; protected $_tbl_keys = [...]; protected $_db = class JDatabaseDriverMysqli { ... }; protected $_trackAssets = FALSE; protected $_rules = NULL; protected $_locked = FALSE; protected $_autoincrement = TRUE; protected $_observers = class JObserverUpdater { ... }; protected $_columnAlias = [...]; protected $_jsonEncode = [...]; protected $_errors = [...]; public $metaDescription = NULL; public $metaKeywords = NULL; public $metaRobots = NULL; public $metaAuthor = NULL; public $link = '/itemlist/category/58-vpn.html'; public $text = ''; public $jcfields = [...]; public $event = class stdClass { ... } }; 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 $feed = 'https://www.shan.info/itemlist/category/58-vpn.html&format=feed&Itemid=53'; public $leading = []; public $primary = [0 => class stdClass { ... }, 1 => class stdClass { ... }, 2 => class stdClass { ... }, 3 => class stdClass { ... }, 4 => class stdClass { ... }, 5 => class stdClass { ... }, 6 => class stdClass { ... }, 7 => class stdClass { ... }, 8 => class stdClass { ... }, 9 => class stdClass { ... }]; public $secondary = []; public $links = []; 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 = 15; public $prefix = ''; public $pagesStart = 1; public $pagesStop = 2; public $pagesCurrent = 1; public $pagesTotal = 2; public $hideEmptyLimitstart = FALSE; protected $viewall = FALSE; protected $additionalUrlParams = [...]; protected $app = class Joomla\CMS\Application\SiteApplication { ... }; protected $data = NULL }; public $item = class stdClass { public $id = '198'; public $title = 'centos 5.5 pptpd install'; public $alias = 'centos-5-5-pptpd-install'; public $catid = '58'; public $published = '1'; public $introtext = 'http://space.itpub.net/665930/viewspace-682794 9、设置开机自动运行服务。我们最后一步是将pptp和iptables设置为开机自动运行,这样就不需要每次重启服务器后手动启动服务了。当然你不需要自动启动服务的话可以忽略这一步。输入指令: #chkconfig pptpd on PPTP 全称为 Point to Point Tunneling Protocol — 点到点隧道协议,是VPN协议中的一种。 安装相关软件 yum install -y ppp iptables wget http://poptop.sourceforge.net/yum'; public $fulltext = ''; public $video = NULL; public $gallery = NULL; public $extra_fields = NULL; public $extra_fields_search = ''; public $created = '2011-05-01 17:36:12'; public $created_by = '63'; public $created_by_alias = ''; public $checked_out = '0'; public $checked_out_time = '0000-00-00 00:00:00'; public $modified = '2012-10-14 02:07:15'; public $modified_by = '0'; public $publish_up = '2011-05-01 17:35:46'; public $publish_down = '0000-00-00 00:00:00'; public $trash = '0'; public $access = '1'; public $ordering = '11'; public $featured = '0'; public $featured_ordering = '0'; public $image_caption = ''; public $image_credits = ''; public $video_caption = ''; public $video_credits = ''; public $hits = '1908'; public $params = class Joomla\Registry\Registry { ... }; public $metadesc = ''; public $metadata = ''; public $metakey = ''; public $plugins = ''; public $language = '*'; public $categoryname = 'VPN'; public $categoryid = '58'; public $categoryalias = 'vpn'; public $categoryparams = '{"inheritFrom":"0","theme":"","num_leading_items":"0","num_leading_columns":"1","leadingImgSize":"Large","num_primary_items":"10","num_primary_columns":"1","primaryImgSize":"Medium","num_secondary_items":"0","num_secondary_columns":"1","secondaryImgSize":"Small","num_links":"0","num_links_columns":"1","linksImgSize":"XSmall","catCatalogMode":"0","catFeaturedItems":"1","catOrdering":"","catPagination":"2","catPaginationResults":"1","catTitle":"1","catTitleItemCounter":"1","catDescription":"0","catImage":"0",'; public $itemGroup = 'primary'; public $category = class TableK2Category { ... }; public $link = '/item/198-centos-5-5-pptpd-install.html'; public $printLink = '/item/198-centos-5-5-pptpd-install.html?tmpl=component&amp;print=1'; public $tags = [...]; public $imageXSmall = ''; public $imageSmall = ''; public $imageMedium = ''; public $imageLarge = ''; public $imageXLarge = ''; public $rawTitle = 'centos 5.5 pptpd install'; public $author = class Joomla\CMS\User\User { ... }; public $text = 'http://space.itpub.net/665930/viewspace-682794 9、设置开机自动运行服务。我们最后一步是将pptp和iptables设置为开机自动运行,这样就不需要每次重启服务器后手动启动服务了。当然你不需要自动启动服务的话可以忽略这一步。输入指令: #chkconfig pptpd on PPTP 全称为 Point to Point Tunneling Protocol — 点到点隧道协议,是VPN协议中的一种。 安装相关软件 yum install -y ppp iptables wget http://poptop.sourceforge.net/yum'; public $event = class stdClass { ... }; public $jcfields = [...]; public $image = ''; public $imageWidth = '400' } }, $method = 'display', $id = ???, $wrkarounds = ??? ).../BaseController.php:663
130.11453156384K2ViewItemlist->display( $tpl = ??? ).../ViewController.php:102
140.18506489800K2ViewItemlist->display( $tpl = NULL ).../view.html.php:1407
150.18506489800K2ViewItemlist->loadTemplate( $tpl = NULL ).../HtmlView.php:230
160.18566566624include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category.php ).../HtmlView.php:701