mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 18:15:50 +03:00
[GH-ISSUE #353] Cannot connect to any host on Android with StrongSwan #327
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 @ArchiDevil on GitHub (Mar 5, 2023).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/353
Checklist
Describe the issue
When I connect to the server via StrongSwan I cannot open any site.
Tried it on multiple VPS and multiple Android devices.
To Reproduce
Steps to reproduce the behavior:
.sswanfile)Expected behavior
Sites should be opened and applications should connect.
Server (please complete the following information)
Client (please complete the following information)
Additional context
Logs from StrongSwan are here:
charon.log
It works as expected if I use IPsec/L2TP auth.
@hwdsl2 commented on GitHub (Mar 6, 2023):
@ArchiDevil Hello! Thanks for reporting this issue. I tested this use case (Android using strongSwan VPN client and IKEv2 mode) and it worked fine.
Your strongSwan logs look normal. Because you tried multiple Android devices and multiple hosting providers, and observed the same issue, I suspect that the issue may be with your home router (if applicable). Try connecting via cellular (4G/5G) and see if the VPN works fine. If so, the issue may be with your router.
For additional troubleshooting information please see:
https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto.md#cannot-open-websites-after-connecting-to-ikev2
You can also try setting up the VPN directly on a new server without Docker.
@ArchiDevil commented on GitHub (Mar 9, 2023):
I tried everything from these instructions, of course. Nothing helped. How can I debug the issue? It seems like traffic from my device is not routed, but iptables output looks fine. What can I do to find the issue?
@hwdsl2 commented on GitHub (Mar 12, 2023):
@ArchiDevil Try connecting via cellular (4G/5G) and see if the VPN works fine. If so, the issue may be with your router. To check whether it's a DNS issue (unlikely), try visiting e.g. https://1.1.1.1 after connecting to the VPN.
For further troubleshooting, you may enable and check Libreswan (IPsec) logs on the server, see Enable Libreswan logs.