Project

General

Profile

Actions

Bug #700

closed

Gatwway status wrong because of mismatch between interface names

Added by GS FON almost 14 years ago. Updated over 13 years ago.

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

0%

Estimated time:
Plus Target Version:
Release Notes:
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";

Actions #1

Updated by Chris Buechler over 13 years ago

  • Status changed from New to Resolved

fixed

Actions

Also available in: Atom PDF