Bug #700
closedGatwway status wrong because of mismatch between interface names
0%
Description
Check http://forum.pfsense.org/index.php/topic,26222.0.html for more information
Basically the comparison if ($status['name'] != $gwname) is making a comparison between friendly interface name and given name
foreach($gateways_status as $status) {
if ($status['name'] != $gwname) {
continue;
}
Jun 23 21:45:25 php: : Comparison WAN2 | opt1
Jun 23 21:45:25 php: : Comparison WAN | opt1
Jun 23 21:45:25 php: : 1. Current GWNAME: opt1 | TIER: 1
Jun 23 21:45:25 php: : Comparison WAN2 | wan
Jun 23 21:45:25 php: : Comparison WAN | wan
so I changed
$apingercfg .= "target \"{$gateway['monitor']}\" {\n";
$apingercfg .= " description \"{$gateway['name']}\"\n";
to
$apingercfg .= "target \"{$gateway['monitor']}\" {\n";
$apingercfg .= " description \"{$gateway['friendlyiface']}\"\n";