User-Profile-Image
hankin
  • 5
  • 首页
  • 分类
    • Windows
    • Web
    • VoIP
    • Virtualization
    • Trading
    • Smart Home
    • SEO
    • Security
    • Python
    • Program
    • PHP
    • OSX
    • OS
    • OpenSource
    • Nginx
    • MySQL
    • Mood
    • Linux
    • Life
    • Injection
    • Hosting
    • Finance
    • Exploits
    • CDN
  • 页面
    • About
  • 友链
    • 维酷科技
    • Tesra超算网络
Help?

Please contact us on our email for need any support

Support
  • 首页
    首页   ›   OS   ›   Linux   ›   正文
Linux

Linux(CentOS)VPN/PPTP/L2TP一键安装包收集

2013-04-08 01:56:54
3644  0 0

1.Diahosting(PPTP)

系统要求:CentOS 5 32bits/64bits。

使用方法:

wget https://prodigyu.com/dl/pptpd.sh
sh pptpd.sh

安装完成后会提示vpn用户名和密码。

VPN用户管理:
直接编辑/etc/ppp/chap-secrets文件,按照相同格式添加用户名和密码即可。

此脚本出自Diahosting,Xen及OpenVZ架构VPS都能正常安装,但是CentOS 64位会出现无法安装的问题。

2.VPSYOU(L2TP)

此脚本可在 Xen-base VPS 上自动配置 L2TP over IPSEC 的 VPN Server,在 Las Vegas 上的一台 Xen-Base VPS 上测试成功,系统为 Centos 5.5 32bit.

Xen-Base VPS 安装步骤:

CentOS / Fedora:

1
2
3
wget https://prodigyu.com/dl/centos.l2tp.sh
chmod +x l2tp.sh
./l2tp.sh

Ubuntu / Debian:

1
2
3
wget https://prodigyu.com/dl/ubuntu.l2tp.sh
chmod +x l2tp.sh
./l2tp.sh

此时需要输入IP段与PSK,值得注意的是,如果希望L2TP的IP段是 10.0.0.0 的话,则在脚本的IP-RANGE中输入 “10.0.0″。PSK 是 l2tp client 共同使用的密匙,同样是必填的。

输入了IP段和PSK之后,程序会显示你的VPS当前的IP(IPV4)、L2TP的本地IP、分配给客户端的IP段以及你所设置的PSK,请确认无误后,按任意键,程序便会开始自动配置。

安装完毕后会运行 ipsec verify,如果与上图一致,证明配置成功!用于测试的用户名与密码分别是:test / test123,记录于 /etc/ppp/chap-secrets 文件当中。

CentOS经过测试成功安装,Ubuntu没有测试

3.CentOS 6专用PPTPD一键安装包 (OpenVZ & Xen 32位/64位均适用)

安装方法:

wget https://prodigyu.com/dl/centos6_pptpd.sh

chmod +x centos6_pptpd.sh

./centos6_pptpd.sh

针对CentOS 64位出问题的机器,可以考虑使用这个脚本。

ProdigYu
180文章 77评论 4点赞 554057浏览
随机文章
N2N中心节点的编译和部署
9年前
如何成为一名黑客
15年前
收集的一些有些历史的注入命令
13年前
Win7桌面右键反应慢
11年前
群晖Docker服务卡死通过命令重启
3年前
Tags
Apache CentOS CMD DDOS Debian DNS Docker FastCGI Google IIS IP iptables Linux Mac MySQL Nginx Opensource PHP Python Skill SSH Ubuntu Vim VMware VPN web.py Windows 删除 命令 命令提示符 安装 开源 技巧 插件 漏洞 百度 系统 组件 终端 缓存 网络电话 脚本 自建 详解 错误
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2025
主页
页面
  • About
博主
ProdigYu 管理员
Something about myself
180 文章 77 评论 554057 浏览
测试
测试