hwdsl2 / setup-ipsec-vpn

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

the connection is disconnected. #1114

Closed ylrykurunovadan closed 2 years ago

ylrykurunovadan commented 2 years ago

**Server

**Client

Additional context When I do a speed test, the connection is disconnected.

hwdsl2 commented 2 years ago

@ylrykurunovadan Hello! The issue you mentioned (disconnected when doing a speed test) is most likely caused by network issues on your VPN server, rather than an issue with IPsec VPN itself. It could be a transient issue, please try again.

ylrykurunovadan commented 2 years ago

When I retested it, it turned off again.

hwdsl2 commented 2 years ago

@ylrykurunovadan Please check the VPN logs for errors: https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#check-logs-and-vpn-status

ylrykurunovadan commented 2 years ago

image xl2tpd output does not arrive

hwdsl2 commented 2 years ago

@ylrykurunovadan The retransmission errors in your logs indicate that this is most likely caused by network issues on your VPN server. Firstly, please make sure that both UDP port 500 and UDP port 4500 are open on the VPN server or its external firewall (if any).

In addition, make sure that the server address you specify on VPN client devices exactly match the server address in the output of the IKEv2 helper script. If you need to change the IKEv2 server address, see [1].

[1] https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto.md#change-ikev2-server-address