手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆

安装VPN。。。debian / centos

首页 > 苹果相关 >

说实话,xen和openVZ安装VPN我真的不是特别了解 ,以前只知道openVZ默认不能装,因为没有ppp和tun设备,但即使有了ppp和tun设备 后,其实,iptables的NAT转发也不是每台机器 都支持。
我在cloud3k上的VPS后台里可以安装ppp和tun设备 ,但安装后无效,发了一个TK给客服,客服说是开通了NAT转发。然后就OK了。
但网上的一些教程中的iptables其实都不能用。因为那句: /sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE,其实是针对xen的VPS的。openVZ根本 就没有MASQUERADE这类的用法,而且。。。eth0,在openVZ上都没有。只有venet0。所以,我又找了一些资料,比如 :
1、http://qiaodahai.com/personal/article/2012/centos-6-pptpd-one-key-installation.htm
2、服务器架设:PPTPD VPN一键安装包 For CentOS 5
3、BuyVM OpenVZ VPS Debian安装PPTP VPN

其实现在网上有openVZ的一键安装包,我这里就不多介绍了,google一下或者百度一下,N多。
安装完后就三个功能
1、安装pptpd服务
2、修复pptpd服务
3、设置帐号
非常方便。但设置帐号后一定要去chep-secrets文件里看一下,理论上是可能有一个所谓的默认帐户存在的。注意删除一下。




本站采用创作共享版权协议, 要求署名、非商业和保持一致. 本站欢迎任何非商业应用的转载, 但须注明出自"易栈网-膘叔", 保留原始链接, 此外还必须标注原文标题和链接.

Tags: vps, vpn, openvz, debian, centos

« 上一篇 | 下一篇 »

只显示10条记录相关文章

让CRONTAB精确到秒的执行任务 (浏览: 26095, 评论: 0)
JS/CSS/images lazyLoader for JQuery (浏览: 25136, 评论: 0)
微信菜单的实现代码 (浏览: 21998, 评论: 0)
apns 二三事 (浏览: 21306, 评论: 0)
淘宝客程序中获取图片尺寸 (浏览: 20792, 评论: 1)
ThinkInLamp Mysql专场之杨涛涛 的PPT (浏览: 20209, 评论: 0)
第二次挂水 (浏览: 19987, 评论: 2)
来自雪候鸟的关于JSON一些提示 (浏览: 19256, 评论: 1)
粗心+jpeg 精度 (浏览: 16964, 评论: 0)
随笔 (浏览: 16515, 评论: 0)

3条记录访客评论

Checking if IPsec got installed and started correctly:

Version check and ipsec on-path                         [OK]
Openswan U2.6.45/K(no kernel code presently loaded)
See `ipsec --copyright' for copyright information.
Checking for IPsec support in kernel                    [FAILED]

The ipsec service should be started before running 'ipsec verify'

Hardware random device check                            [N/A]
Checking rp_filter                                      [ENABLED]
/proc/sys/net/ipv4/conf/all/rp_filter                  [ENABLED]
Checking that pluto is running                          [FAILED]
Checking NAT and MASQUERADEing                          [TEST INCOMPLETE]
Checking 'ip' command                                   [OK]
Checking 'iptables' command                             [OK]

ipsec verify: encountered errors
这个怎么解决,google了一整天也没查出个所以然。
----------------------------------------------
openvz上可能是不能安装vpn的。一般只有buyvm可以

Post by dikeliu on 2015, December 1, 4:05 PM 引用此文发表评论 #1

执行最后一步时出错:
root@freevpndj9969:~# /sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module ip_tables not found.
iptables v1.4.4: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
是192.168.1.0吧

---------------
FATAL: Module ip_tables not found.?
你没有装 ip_tables?
你可以用浏览器打开:http://neatstudio.com/install.sh
然后拷到本地试一下下

Post by temp on 2014, December 17, 8:29 PM 引用此文发表评论 #2

hi.
我配置pptp vpn成功。不过连接上后,不到5分钟就自动断开连接了,估计是g#f#w的影响,博主有遇到类似现象吗?如何解决呢?

-------
没有断过,黑黑....

Post by fish on 2013, February 13, 2:57 PM 引用此文发表评论 #3


发表评论

评论内容 (必填):