未分类

PPTP自动安装配置Shell Script For Ubuntu/Debian

Server IP

呵呵,不解释……

使用方法:

wget http://soft.yzs.me/pptpd.sh;sh pptpd.sh

执行后会自动列出你服务器的网卡的IP,挑一个外网的:

Server IP

===========================
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:

wget http://soft.yzs.me/pptpd-adduser.sh

添加账号,就执行:

sh pptpd-adduser.sh

输入账号密码即可……

Good luck……

101 Posts

自信、努力、活出精彩;以前未所见的颜色,绘大千世界!
View all posts

24 thoughts on “PPTP自动安装配置Shell Script For Ubuntu/Debian”

  1. 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 *).
    iptables: Unknown error 4294967295
    Warning: wierd character in interface `venet0:0′ (No aliases, :, ! or *).
    pptpd: unrecognized service
    ————–
    有解否?

  2. 有没有 CentOS 下面好用的
    用了 N 多了 无非是这样那样,要么是 PPTD 启动不来
    要么就是 870 错误。
    现在要翻xxxx强!还是得用 S.S.h…

Leave a reply

Your email address will not be published. Required fields are marked *