summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-11-13 10:35:54 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-11-13 10:36:02 -0200
commit4e38f1c26bc060556585200eb6e4548593b707ea (patch)
tree894597d4814b8ae3201fad698d537b6f838d64a0 /etc
parented25d803bf8e6e5db27aeebbd6df6678c25bfdf0 (diff)
downloadpfsense-4e38f1c26bc060556585200eb6e4548593b707ea.zip
pfsense-4e38f1c26bc060556585200eb6e4548593b707ea.tar.gz
Remove unused variables and fix automatic nat to alias-address
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 97b8d7e..4aff6e2 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1609,8 +1609,6 @@ function filter_nat_rules_generate() {
$netip = explode("/", $route['network']);
if (isset($GatewaysList[$route['gateway']])) {
$gateway =& $GatewaysList[$route['gateway']];
- $gatewayip = $gateway['gateway'];
- $interfacegw = $gateway['interface'];
if(!interface_has_gateway($gateway['interface']) && is_private_ip($netip[0])) {
$numberofnathosts++;
$tonathosts .= "{$route['network']} ";
@@ -1621,10 +1619,8 @@ function filter_nat_rules_generate() {
foreach($FilterIflist as $ocname => $oc) {
if(!interface_has_gateway($ocname)) {
if(is_ipaddr($oc['alias-address'])) {
- $aliastarget = $oc['alias-address'];
- $aliassubnet = $oc['alias-subnet'];
$numberofnathosts++;
- $tonathosts .= "{$oc['sa']}/{$oc['sn']} ";
+ $tonathosts .= "{$oc['alias-address']}/{$oc['alias-subnet']} ";
}
if($oc['sa']) {
$tonathosts .= "{$oc['sa']}/{$oc['sn']} ";
OpenPOWER on IntegriCloud