I have strongswan ipsec setup installed in ubuntu OS. I have static public ip 103.x.x.x and vpn clients subnet 10.100.100.2/24. I have 2 clients with ubuntu OS. I was able to ping client 1 to client 2 and vice versa and they have 103.x.x.x public ip. I want to limit my rightsubnet to 10.100.100.2/24 only. When I changing rightsubnet in clients from 0.0.0.0/0 to 10.100.100.2/24, the connection is established but when I run curl https://checkip.amazonaws.com, the returned IP is the client public IP vs the server public IP (expected). What will be the correct config with my use case?
here's my server config:
client config: