ubergarm / l2tp-ipsec-vpn-client

A tiny Alpine based docker image to quickly setup an L2TP over IPsec VPN client w/ PSK.
MIT License
157 stars 124 forks source link

I cannot connect with the vpn server. note:we require IKEv1 peer to have ID 'xxx.xxx.xxx.xxx', but peer declares '%any'. Can you help me? #15

Open 9599 opened 3 years ago

sautvaste commented 4 months ago

Hello, I have the same issue as you. Maybe it's late for you, but I hope it's useful for others who are in trouble with this.

The issue arises because your server is behind NAT. Just add the following line into your IPsec client config file /etc/ipsec.conf

rightid=xxx.xxx.xxx.xxx (your server IP address of lan interface)