服务端情况:
pptp进程运行情况:
[root@aliyun test]# ps aux |grep pptp
root 19942 0.0 0.0 2232 672 ? Ss 14:17 0:00 /usr/sbin/pptpd
root 20559 0.0 0.0 4420 772 pts/1 S+ 14:37 0:00 grep pptp
服务器端口监听情况:
[root@aliyun test]# netstat -lntp|grep pptp
防火墙端口开放情况:
tcp 0 0 0.0.0.0:1723 0.0.0.0:* LISTEN 19942/pptpd
[root@aliyun test]# iptables -L |grep pptp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:pptp[root@aliyun test]# getenforce
服务器端口测试:
Disabled
[root@aliyun test]# telnet 公网IP 1723
Trying 公网IP...
Connected to 公网IP.
Escape character is '^]'.
Connection closed by foreign host.
客户端情况:
ping服务器:
ping 公网IP地址
telnet服务器端口:
PING 公网Ip (公网IP) 56(84) bytes of data.
64 bytes from 公网IP: icmp_seq=1 ttl=128 time=192 ms
64 bytes from 公网IP: icmp_seq=2 ttl=128 time=193 ms
telnet 公网IP 1723
客户端连接PPTP:
Trying 公网IP...
telnet: connect to address 公网Ip: Connection refused
[root@localhost ~]# pptpsetup --create test --server 公网Ip --username ** --password *** --encrypt --start
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
anon warn[open_inetsock:pptp_callmgr.c:329]: connect: Connection refused
anon fatal[callmgr_main:pptp_callmgr.c:127]: Could not open control connection to 公网IP
anon fatal[open_callmgr:pptp.c:479]: Call manager exited with error 256
Modem hangup
Connection terminated.
win10连接vpn:
注:服务器是美国硅谷节点,上面搭建的其他服务比如Apache都能本地访问。
求助~~
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。