Allow multiple racoon listen ips so that racoon can live on two different wan carp ips (multiple isps)

This commit is contained in:
Scott Ullrich 2007-03-17 19:53:10 +00:00
parent 3e1b00335c
commit 8da8f2f87a
2 changed files with 9 additions and 2 deletions

View File

@ -270,10 +270,15 @@ function vpn_ipsec_configure($ipchg = false) {
}
$interface_ip = $sasyncd['ip'];
$interface_ips = split("\n", $interface_ip);
if($interface_ip <> "") {
foreach($interface_ips as $intip) {
if($intip)
$racoon_ips .= "isakmp {$intip} [500];\n";
}
$racoonconf .= <<<EOD
listen {
isakmp {$interface_ip} [500];
{$racoon_ips}
{$natt}
}

View File

@ -54,7 +54,9 @@
<fielddescr>Failover IP</fielddescr>
<fieldname>ip</fieldname>
<description>Enter the IP address you would like to use for failover. HINT: You normally want to use a public CARP ip.</description>
<type>input</type>
<type>textarea</type>
<rows>3</rows>
<cols>20</cols><type>input</type>
</field>
</fields>
<custom_add_php_command>