mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #31] 我在本地win7电脑的vm虚拟机上搭建了一个vpn,为什么手机连不上去? #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zouhuigang on GitHub (Jul 13, 2017).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/31
已经把win7的防火墙关了,用的极路由的没有关闭防火墙的选项,请问要怎样才能成功呢?是要开什么端口么?
@hwdsl2 commented on GitHub (Jul 13, 2017):
@zouhuigang 你好!首先你的vm虚拟机必须使用bridge networking,不能用 NAT。然后需要在你的路由器上设置端口转发 UDP 500 和 UDP 4500 到你的虚拟机的 IP 地址。建议设置路由器的 DHCP 的 MAC 地址绑定,以保证虚拟机的 IP 不变。最后你的 ISP 必须分配一个公有 IP (不是 carrier-grade NAT)。
@zouhuigang commented on GitHub (Jul 14, 2017):
谢谢!!你真是太厉害啦~~已经成功连接啦!!!