hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
25.19k stars 6.32k forks source link

修改远程端口问题 #1607

Open 465108069 opened 4 hours ago

465108069 commented 4 hours ago

我现在使用docker 版本布置完了一个服务器,工作正常,现在我想用macOS用ikev2连接,所以下载了vpnclient.mobileconfig文件,然后我发现udp4500端口被封锁了,我可以将udp4500端口映射到了其它端口。 我想问一下,是否可以在mobileconfig文件中修改配置修改远程连接的端口。

ArcCal commented 4 hours ago

You can open the mobileconfig file with Apple Configurator, then locate and modify the key-value pair related to the port. However, since the traffic characteristics of IKEv2 VPN are quite distinct, firewalls can easily detect and block your connection.

465108069 commented 4 hours ago

ArcCal

感谢您的回复,但是我打开文件后,未找到原有的设置端口的位置;

我也试着在

RemoteAddress x.x.x.x

的后面插入

RemotePort 80

这样的配置文件,但是不起作用,是key的名字不对?还是位置放错了?或都mac不支持修改? 我不清楚,请指点一下。

ArcCal commented 4 hours ago

Open the mobileconfig file with Apple Configurator, locate "VPN" on the left panel, then add a colon and the port number after the server address. The result should look like this: 1.1.1.1:9000, or vpn.example:9500.

465108069 commented 3 hours ago

我刚才试了一下,不能正常工作。

Open the mobileconfig file with Apple Configurator, locate "VPN" on the left panel, then add a colon and the port number after the server address. The result should look like this: 1.1.1.1:9000, or vpn.example:9500.