I have a site-to-site VPN where there's one subnet on the remote side and two on the local one:
conn site-to-site
leftsubnet = 10.10.0.0/16,10.11.0.0/16
rightsubnet = 10.50.0.0/16
Everything works fine, but I'm having an issue where the "wrong" local IP is inserted into strongSwan's routing table:
$ ip route show table 220
10.50.0.0/16 via <REDACTED> dev eth-ext src 10.11.0.1
strongSwan chooses the local IP of the 10.11.0.0/16
subnet as source IP for the IPsec tunnel (i.e. 10.11.0.1
), but I'd like to use the second one (10.10.0.1
).
I've tried setting leftsourceip
to 10.10.0.1
, but that didn't seem to have an effect. Is there another configuration item I can use to tell strongSwan which local IP to use as source IP for its routing table?