Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

完全按照指引操作但是VPN client连不上 #433

Closed
huahuayu opened this issue Aug 13, 2018 · 24 comments
Closed

完全按照指引操作但是VPN client连不上 #433

huahuayu opened this issue Aug 13, 2018 · 24 comments

Comments

@huahuayu
Copy link

重现步骤:
新开的阿里云服务器执行:
wget https://git.io/vpnsetup -O vpnsetup.sh && sh vpnsetup.sh

成功后返回vpn账号密码等信息

IPsec VPN server is now ready for use!
Connect to your new VPN with these details:
Server IP: 47.52.241.187
IPsec PSK: JVRVWodzFUz75mtV
Username: vpnuser
Password: {password}
Write these down. You'll need them to connect!
Important notes:   https://git.io/vpnnotes
Setup VPN clients: https://git.io/vpnclients

按照OSX平台VPN client配置指引配置VPN client

最后VPN连接失败:
image

@jovetove
Copy link

会不会是端口没有开?阿里云端口要在阿里云服务的控制台设置相应端口

@huahuayu
Copy link
Author

@zjianfa 请问要开哪个端口?如何判断是端口没开

@jovetove
Copy link

为VPN打开UDP端口500和4500。阿里云是默认不打开额外端口的,一般没开

@jovetove
Copy link

参考这篇博文试试?https://yq.aliyun.com/articles/225815

@huahuayu
Copy link
Author

@zjianfa 出方向还是入方向呢,这样对吗
image

@jovetove
Copy link

对的,出入都许可

@huahuayu
Copy link
Author

huahuayu commented Aug 13, 2018

@zjianfa it works!
我把配置文件导出了,以后的同学可以从这里 https://gist.github.com/huahuayu/afa81064ea2a79e09da3f3840c5436ef 下载配置文件按下图方式导入即可
image

@huahuayu
Copy link
Author

@hwdsl2 建议把开放端口内容放到readme中,我注意到readme中并没有说明

@JimmieMax
Copy link

为什么我的udp端口还报你的那个错误啊?需要怎么重启吗?

@ziguilp
Copy link

ziguilp commented Feb 1, 2019

没有用啊,还是连不上

nebulabox pushed a commit to nebulabox/setup-ipsec-vpn that referenced this issue Feb 12, 2019
@Leonning
Copy link

Leonning commented Mar 5, 2019

香港轻量应用服务器设置成功。服务器tdp/udp都开放500;4500端口

@liuser
Copy link

liuser commented Apr 10, 2019

出入\tcp\udp全部开启,依然无效,绝望!

@titusmok
Copy link

@Leonning 能send一份guideline给我吗?我设置发现没成功,用的也是香港轻量应用服务器

@mzF414
Copy link

mzF414 commented Aug 4, 2019

@titusmok 在防火墙那里加

This was referenced Sep 19, 2019
andyvip pushed a commit to andyvip/setup-ipsec-vpn that referenced this issue Oct 28, 2019
@wy-ruby
Copy link

wy-ruby commented Nov 5, 2019

配置了udp 500 450端口后手机可以连接了,但是mac连不上

@justrustc
Copy link

EC2配置了udp 500 4500还是不行

@funny-dog
Copy link

配置好端口,手机可以连,win10和ubuntu还是连不上

@leolongpy
Copy link

华为云的 配置了udp 500 4500还是不行

@huahuayu
Copy link
Author

说开放了端口还不行的同学 ,试下netstat看下vpn在哪个端口服务,然后telnet对应端口通不通

@ghost
Copy link

ghost commented Jul 2, 2020

cisco 不是 L2TP

denmojo pushed a commit to denmojo/setup-ipsec-vpn that referenced this issue Sep 23, 2020
@BlueSkyXXp
Copy link

mac能连接上,但是安卓手机连接失败

Repository owner deleted a comment from jovetove Nov 23, 2023
@Noobyj2233
Copy link

按照步骤安装好了,PSK、client、密码都有了,端口也打开了,安卓strongswan用户鉴权失败,windows也不行
求助求助

@ZhangDapao121388
Copy link

跑完脚本还连不上的,除了放开指定500 4500 1701 udp端口外,试一下把文档里那两个注册表文件导入试试

@jovetove
Copy link

jovetove commented Apr 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests