mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 10:05:48 +03:00
[GH-ISSUE #123] length of ISAKMP Identification Payload is larger than can fit #110
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 @rs-development on GitHub (Jan 31, 2019).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/123
i am trying to connect from ubuntu 18.10 to the vpn server running on debian strech
@hwdsl2 commented on GitHub (Jan 31, 2019):
Note: Please first set up your own VPN server.
注:请首先 搭建自己的 VPN 服务器。
@rs-development Your IPsec pre-shared key entered on your VPN client does not match that on the VPN server (in
/etc/ipsec.secrets). Re-enter your PSK and check for typos.@rs-development commented on GitHub (Jan 31, 2019):
Thank you for the fast reply!
I also saw this in the log and checked the psk twice, i also changed the key and tried again but no success. Is there any other option?
@hwdsl2 commented on GitHub (Jan 31, 2019):
@rs-development How did you set up the VPN client? Using the GUI or the command line? That error usually means your PSK does not match that on the server. So the only option is to double check the PSK.
@rs-development commented on GitHub (Jan 31, 2019):
I used the gui on the ubuntu network manager.
@hwdsl2 commented on GitHub (Jan 31, 2019):
@rs-development The error means the PSK does not match. Try changing to a
secure alphanumeric PSK in /etc/ipsec.secrets on the server, then enter it
in the client. You must restart the IPsec service after changing the PSK to
take effect.
@rs-development commented on GitHub (Feb 1, 2019):
Are there any special considerations for the PSK?
I tried a key that was to short in the beginning this error is now gone. I am sure the PSK is exactly the same on the client as on the server.
@hwdsl2 commented on GitHub (Feb 1, 2019):
@rs-development Glad to hear it works. The PSK should not contain these
special characters: “ ' \
If the key is too short Libreswan might show a warning but AFAIK it may
still work.
@rs-development commented on GitHub (Feb 1, 2019):
Ahh i was unclear. The error still exists, at first i was using a short one, after i made the key longer the error described above occured
@hwdsl2 commented on GitHub (Feb 1, 2019):
@rs-development I see. Not really sure what happened. Make sure that the
PSK match and that you restart the IPsec service on the server after
changing the PSK.
@rs-development commented on GitHub (Feb 1, 2019):
I removed the container and created a new one with a new key, after startup i used the PSK from
docker logs -f ipsec-vpn-serverto connect to the vpn server@hwdsl2 commented on GitHub (Feb 1, 2019):
@rs-development Yes that is the correct approach. I forgot that you are
using Docker. You’ll need to remove and recreate the Docker container each
time after you change your “env” file. See README for details. Please do
some further troubleshooting yourself.
@rs-development commented on GitHub (Feb 1, 2019):
thanks for your time, i will try again!
is there a chance the problem is maybe i am behind a big NAT from my ISP?
@hwdsl2 commented on GitHub (Feb 1, 2019):
@rs-development I don’t think NAT might be the issue according to the
errors in your logs.
@felangga commented on GitHub (Dec 20, 2019):
I have the same problem too, actually it works from yesterday morning, but suddenly it won't connect and show the same error. The PSK key is correct.
@ZbigniewRA commented on GitHub (Jun 30, 2020):
I have the same issue. PSK is 100% correct, retried it many, many times.