little update… did some modifications
/etc/inc/vpn.inc
1042 if (count($rightsourceips)) {
1043 $rightsourceip = "\trightsourceip = " . implode(',', $rightsourceips) . "\n";
1044 }
1045 }
+
+ if (isset($ph1ent['avmvirtualip'])) {
+ $rightsourceip = "\trightsourceip = {$ph1ent['avmvirtualip']}\n";
+ }
1046
1047 if (!empty($ph1ent['caref'])) {
1048 $ca = lookup_ca($ph1ent['caref']);
1049 if ($ca) {
/conf/config.xml (somewhere in phase1)
<avmvirtualip>123.123.123.123</avmvirtualip>
(of course, "avmvirtualip" can be replaced with anything)
I think, this should be an input field in phase 1 of IPsec. Something like "Force virtualip for remote"… If devs agree, I could write a little patch to include it. Perhaps an advanced text input for more individual configs?
For me, this just needs to work the next 2 weeks. But it might be helpful to others?