summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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