Project

General

Profile

Bug #700

Gatwway status wrong because of mismatch between interface names

Added by GS FON almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
Multi-WAN
Target version:
Start date:
06/25/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.0
Affected Architecture:

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";

History

#1 Updated by Chris Buechler almost 9 years ago

  • Status changed from New to Resolved

fixed

Also available in: Atom PDF