mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 18:15:50 +03:00
[GH-ISSUE #137] cant connect devices to vpn #125
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 @seasondream on GitHub (Apr 11, 2019).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/137
im having issues getting anything to connect to the vpn. I have it setup in docker and I originally had it setup outside of docker with the same issue. I have tried using an Andriod phone, a Macbook at a hotel, and an iPhone and I get cannot connect on these devices. I've double checked the IP and when I check the logs in pluto and xl2tp I don't even see any activity past the VPN setting itself up.
@hwdsl2 commented on GitHub (Apr 11, 2019):
@seasondream Hello! Your logs look normal. If you can't connect any device and there is no new log appearing after connecting, the VPN traffic did not reach your server. Check if your VPN server provider has an external firewall, and open UDP port 500 and UDP port 4500 for the VPN. Examples include security groups in Amazon EC2 [1] or GCE firewall rules [2].
You may use tools such as
ncto test connectivity to your server's UDP port 500.[1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html
[2] https://cloud.google.com/vpc/docs/firewalls
@seasondream commented on GitHub (Apr 11, 2019):
@hwdsl2 this is just a VPN I am trying to setup at home on my own personal network. Would I need to open ports 500 and 4500 in my router?
@hwdsl2 commented on GitHub (Apr 11, 2019):
@seasondream If your VPN server is behind a home router, you'll need to set up port forwarding for UDP port 500 and UDP port 4500 on the router. Refer to: [1] [2].
[1] https://www.stewright.me/2018/07/create-a-raspberry-pi-vpn-server-using-l2tpipsec/
[2] https://blog.elasticbyte.net/setting-up-a-native-cisco-ipsec-vpn-server-using-a-raspberry-pi/