呵呵,不解释……
使用方法:
1 |
wget http://soft.yzs.me/pptpd.sh;sh pptpd.sh |
执行后会自动列出你服务器的网卡的IP,挑一个外网的:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
=========================== Which IP is your server IP: IP:42.51.133.125 #这里输入你服务器的外网的IP地址 =========================== Server IP:42.51.133.125 =========================== =========================== eth0 Link encap:Ethernet HWaddr 00:16:3e:4e:25:11 inet addr:42.51.133.125 Bcast:42.51.133.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe4e:2511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1285668 errors:0 dropped:6798 overruns:0 frame:0 TX packets:133636 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:229411554 (229.4 MB) TX bytes:12212001 (12.2 MB) Interrupt:32 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:702 (702.0 B) TX bytes:702 (702.0 B) Please input the netdriver of your server: Net Driver:eth0 #这里输入你刚刚输入的那个IP地址属于哪个网卡(上面已经列出来了) =========================== Net Driver:eth0 =========================== Please input the username of PPTP: Username:vpn #这里输入连接的用户名 =========================== PPTP Username:vpn =========================== Please input the password of PPTP: Password:vpn #这里输入连接的密码 =========================== PPTP Password:vpn =========================== Press any key to continue. #按任意键继续 此处省略几万字…… |
这是添加连接的账号和密码的Shell Script:
1 |
wget http://soft.yzs.me/pptpd-adduser.sh |
添加账号,就执行:
1 |
sh pptpd-adduser.sh |
输入账号密码即可……
Good luck……
Please input the netdriver of your server:
Net Driver:eth0 #这里输入你刚刚输入的那个IP地址属于哪个网卡(上面已经列出来了)
===========================
我这边是venet0:0 ,但是后面提示:
net.ipv4.ip_forward = 0
net.ipv4.tcp_syncookies = 1
Warning: wierd character in interface
venet0:0' (No aliases, :, ! or *).
venet0:0′ (No aliases, :, ! or *).iptables: Unknown error 4294967295
Warning: wierd character in interface
pptpd: unrecognized service
————–
有解否?
是输入venet0,我看貌似pptp也安装失败了,没用错系统?
怎么弄完之后连接不上啊
重启pptp,service pptpd restart
怎么没有 CentOS 的?
因为我不用CentOS……
右侧时钟很给力~~~~~~
有没有 CentOS 下面好用的
用了 N 多了 无非是这样那样,要么是 PPTD 启动不来
要么就是 870 错误。
现在要翻xxxx强!还是得用 S.S.h…
我在Ubuntu 12.04/Debian6上测试过,都能用,RHEL类的就不用试了,肯定不行……
还得用 Debian 系列的啊 – –
为何你们那么喜欢CentOS那个老东西。
Debian 6 不也一样老掉牙
只是主机商都没普遍添加 Debian 7 镜像。
CentOS 6.3 也很少
其实debian6官方源的东西很新的,只是使用时要用点方法……
懒得换系统了
考虑要不要搞个PPTP For CentOS。
搞 CentOS 版的也有好多了
我也一一试了,TUN 什么的都开了
要么 870 要么安装失败 蛋痛
很多VPS死活装不上PPTP d26
OVZ没有tun等能用么?
当然不行
悲剧了
这脚本真不错! d 36
高手自在人间