7

2022-06-30 00:07:13 浏览数 (2)

创建vpn账户

代码语言:javascript复制
[root@pptp-server ~]# vim /etc/ppp/chap-secrets 
[root@pptp-server ~]# cat /etc/ppp/chap-secrets 
# Secrets for authentication using CHAP
# client	server	secret			IP addresses
#
testvpn  pptpd  testvpnabc *
[root@pptp-server ~]# 

Tip:

  1. 密码是可以在线修改的
  2. 密码可以使用字母大小写Aa!@$%^&*()-_ ={}[];’:”<>,.?|不能使用# (密码纯是人肉测出来的)

启动服务

代码语言:javascript复制
[root@pptp-server ~]# /etc/init.d/iptables  restart 
iptables: Setting chains to policy ACCEPT: nat filter      [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules:                         [  OK  ]
[root@pptp-server ~]# /etc/init.d/pptpd  start 
Starting pptpd:                                            [  OK  ]
[root@pptp-server ~]#  chkconfig  --list | grep -E "(pptp|iptables)" 
pptpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
[root@pptp-server ~]# chkconfig  iptables on 
[root@pptp-server ~]# chkconfig  pptpd on 
[root@pptp-server ~]# chkconfig  --list | grep -E "(pptp|iptables)" 
iptables       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
pptpd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
[root@pptp-server ~]# 

客户端成功连接后会出现 ppp适配器 (这是在windows下)

0 人点赞