Hello @Levente Török ,
Apologies for the delay in response.
Below are some steps that can be taken to troubleshoot a point-to-site VPN connection on Linux/ StrongSwan, if the VPN connection is not connecting:
1) Ping the gateway name from the client to ensure that it has Internet connectivity and that the gateway name is not mistyped.
2) Run "tail -f /var/log/syslog | grep "charon-nm" on the Ubuntu client to see the related log. After running this command you should try to connect the VPN and the related logs will be displayed in the terminal window in real-time. You can also add "| log.txt" to send the output to log.txt file, if needed. The log would give you an indication as to what is wrong.
For example:
- "building CRED_PRIVATE_KEY - RSA failed" message indicates that the private key is not correct.
- "no trusted RSA public key found for 'C=US, ST=Washington, L=Redmond, O=Microsoft Corporation, CN=<gatewayID>" indicates that the Gateway certificate is not correct.
Other things to check in the GUI:
1) "Request an inner IP address" is checked under the options section.
2) DNS and Routes are set to "Automatic" under IPv4 tab.
Refer : https://learn.microsoft.com/en-us/azure/vpn-gateway/point-to-site-vpn-client-configuration-azure-cert#install
If above issues check out and the problem is still not resolved, then a deeper investigation would be needed. Hence, if you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.