hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
25.4k stars 6.34k forks source link

Static IPs IKEv2 #1582

Closed inercya-github closed 4 months ago

inercya-github commented 4 months ago

Checklist

Describe the issue I've done a refresh install. Everything works ok, but the problem is when I assign static ips. It always assign 192.168.43.10

To Reproduce I've edited this file: /etc/ipsec.d/ikev2.conf with this config:

conn client1 rightid=@vpnclient rightaddresspool=192.168.43.4-192.168.43.4 also=ikev2-cp

conn client2WIN rightid="CN=vpnclient, O=IKEv2 VPN" rightaddresspool=192.168.43.5-192.168.43.5 also=ikev2-cp

and restarted with service ipsec restart

When I check the connection with sudo ipsec trafficstatus, I always see 192.168.43.10

Expected behavior It shoud be 192.168.43.4 or 5 if i connect it from windows.

Server (please complete the following information)

**Client