diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-12 22:51:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-12 22:51:25 +0000 |
commit | 3d58033c1e085817d57f46b8a18554723c72deec (patch) | |
tree | 885ccec22b6c4186d833648120a5a39bd89d7171 /etc | |
parent | 4b9d4ca011ef5f0f5fcfab06c755a867b2b4a7e1 (diff) | |
download | pfsense-3d58033c1e085817d57f46b8a18554723c72deec.zip pfsense-3d58033c1e085817d57f46b8a18554723c72deec.tar.gz |
Continue my crusade in converting real interfaces to their alias counterpart.
* Convert nat on fx0 -> nat on $wan etc
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 2bd1b78..c722483 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -399,9 +399,11 @@ function filter_nat_rules_generate_if($if, $src = "any", $srcport = "", $dst = " $staticnatport_txt = " static-port"; else $staticnatport_txt = ""; - + + $if_friendly = convert_real_interface_to_friendly_interface_name($if); + /* Put all the pieces together */ - $natrule = "{$nat} on {$if} from {$src} to {$dst} {$target}{$staticnatport_txt}\n"; + $natrule = "{$nat} on \${$if_friendly} from {$src} to {$dst} {$target}{$staticnatport_txt}\n"; return $natrule; } |