diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-23 20:19:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-23 20:19:18 +0000 |
commit | 0604be0edd7a964edab2d20bea203da1320d422b (patch) | |
tree | 14401902b9d511854a94d3d31f71481b34db1c16 /etc | |
parent | c990c23f38bec8e87350a8072c9690c8534dd9c0 (diff) | |
download | pfsense-0604be0edd7a964edab2d20bea203da1320d422b.zip pfsense-0604be0edd7a964edab2d20bea203da1320d422b.tar.gz |
Correct friendly interface names since other developers cannot be bothered to help out.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 1fb8938..14b74b1 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1982,11 +1982,12 @@ EOD; if (isset($config['filter']['bypassstaticroutes']) && is_array($config['staticroutes']['route']) && count($config['staticroutes']['route'])) { foreach ($config['staticroutes']['route'] as $route) { unset($sa); - + $friendly_int = convert_friendly_interface_to_friendly_descr($route['interface']); if ($route['interface'] == "lan") { $sa = $lansa; $sn = $lansn; $if = $lanif; + $friendly_int = "lan"; } else if (strstr($route['interface'], "opt")) { $oc = $optcfg[$route['interface']]; if ($oc['ip']) { @@ -1999,10 +2000,10 @@ EOD; if ($sa) { $ipfrules .= <<<EOD anchor "staticrouted" -pass in quick on \${$route['interface']} from {$sa}/{$sn} to {$route['network']} label "pass traffic between statically routed subnets" -pass in quick on \${$route['interface']} from {$route['network']} to {$sa}/{$sn} label "pass traffic between statically routed subnets" -pass out quick on \${$route['interface']} from {$sa}/{$sn} to {$route['network']} label "pass traffic between statically routed subnets" -pass out quick on \${$route['interface']} from {$route['network']} to {$sa}/{$sn} label "pass traffic between statically routed subnets" +pass in quick on \${$friendly_int} from {$sa}/{$sn} to {$route['network']} label "pass traffic between statically routed subnets" +pass in quick on \${$friendly_int} from {$route['network']} to {$sa}/{$sn} label "pass traffic between statically routed subnets" +pass out quick on \${$friendly_int} from {$sa}/{$sn} to {$route['network']} label "pass traffic between statically routed subnets" +pass out quick on \${$friendly_int} from {$route['network']} to {$sa}/{$sn} label "pass traffic between statically routed subnets" EOD; } |