diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-02-09 04:09:50 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-02-09 04:09:50 +0000 |
commit | 74e44a2e2f7d98c535dd995635925c41e28ad677 (patch) | |
tree | c3bb0451edb797be9366f73b423921ad82904014 /usr | |
parent | 0a2c6a5b3b63d728e67982d1c6cadbf9bb6add95 (diff) | |
download | pfsense-74e44a2e2f7d98c535dd995635925c41e28ad677.zip pfsense-74e44a2e2f7d98c535dd995635925c41e28ad677.tar.gz |
No need for any of the NAT screens in a single interface environment, so don't show them.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/fbegin.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index a1c00a0..6ae7925 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -161,7 +161,14 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') { <div>Firewall</div> <ul class="subdrop"> <?=output_menu_item("/firewall_aliases.php", "Aliases");?> - <?=output_menu_item("/firewall_nat.php", "NAT");?> + <?php + if($config['interfaces']['lan']) { + /* no use for NAT in single-interface deployments + remove to reduce user confusion + */ + output_menu_item("/firewall_nat.php", "NAT"); + } + ?> <?=output_menu_item("/firewall_rules.php", "Rules");?> <?=output_menu_item("/firewall_schedule.php", "Schedules");?> <?=output_menu_item("{$shaper}", "Traffic Shaper");?> |