mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Update to racoon-0.7-cvs with Timo Teras patches.
Use setkey -f because spd loading works normally now.
This commit is contained in:
parent
008da4cf1d
commit
cf7a51617b
@ -573,26 +573,16 @@ EOD;
|
||||
/* flush SPD entries */
|
||||
mwexec("/sbin/setkey -FP");
|
||||
mwexec("/sbin/setkey -F");
|
||||
$i = 0;
|
||||
while($i < 4) {
|
||||
/* load SPD */
|
||||
mwexec("/bin/cat {$g['varetc_path']}/spd.conf | /usr/local/bin/slowdownpipe.sh | /sbin/setkey -c");
|
||||
sleep(2);
|
||||
$i++;
|
||||
}
|
||||
/* load SPD */
|
||||
mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf");
|
||||
} else {
|
||||
/* start racoon */
|
||||
mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf");
|
||||
/* flush SA + SPD entries */
|
||||
mwexec("/sbin/setkey -FP");
|
||||
mwexec("/sbin/setkey -F");
|
||||
$i = 0;
|
||||
while($i < 4) {
|
||||
/* load SPD */
|
||||
mwexec("/bin/cat {$g['varetc_path']}/spd.conf | /usr/local/bin/slowdownpipe.sh | /sbin/setkey -c");
|
||||
sleep(2);
|
||||
$i++;
|
||||
}
|
||||
/* load SPD */
|
||||
mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user