开发者社区> 问答> 正文

PPTP VPN配置无法访问

服务端情况:


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地址
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服务器端口:
telnet 公网IP 1723
Trying 公网IP...
telnet: connect to address 公网Ip: Connection refused
客户端连接PPTP:


[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都能本地访问。
求助~~










展开
收起
lamyuqing 2017-02-17 14:45:44 11244 0
2 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    楼主您好,

    因为外网访问pptpd的端口失败,且服务器本地测试端口正常,

    或许您需要重点检查一下ECS实例的“安全组”规则了: https://help.aliyun.com/document_detail/25471.html
    2017-02-17 19:19:48
    赞同 展开评论 打赏
  • 回 楼主lamyuqing的帖子
    教程是按照

    来的(系统不让发链接),系统 centos6.8

    -------------------------

    RePPTP VPN配置无法访问
    我按照要求开放了端口还是不行,我的配置文件:
    [root@aliyun ~]# cat /etc/pptpd.conf |egrep -v "^($|#)"
    option /etc/ppp/options.pptpd
    localip 192.168.0.1
    remoteip 192.168.0.234-238,192.168.0.245

    请问localip 和 remoteip是要填写公网Ip吗 还是内网IP
    2017-02-17 14:50:36
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
探索连接的最后十秒钟“落时”的网关 立即下载
企业级弹性公网IP发布 立即下载
BGP公网省钱秘密: 共享带宽/共享流量包 立即下载