Ignore:
Timestamp:
Dec 20, 2013, 11:57:02 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Další položky do tabulky "Bezdrátové rozhraní".
  • Přidáno: Příprava tabulky NewsImport pro zobecnění importu aktualit z jiných webů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php

    r548 r615  
    4545  $DbResult2 = $System->Database->query('SELECT `NetworkInterface`.*, `NetworkDevice`.`Name` AS `DeviceName`, `NetworkDevice`.`InboundNATPriority` FROM `NetworkInterface`'.
    4646  ' LEFT JOIN `NetworkDevice` ON `NetworkDevice`.`Id` = `NetworkInterface`.`Device` WHERE (`NetworkInterface`.`ExternalIP` <> "")'.
     47  ' AND (`NetworkInterface`.`LocalIP` <> "")'. 
    4748  ' AND (`NetworkDevice`.`Member` = '.$Member['Id'].') AND (`NetworkInterface`.`LocalIP` != `NetworkInterface`.`ExternalIP`) ORDER BY `id` DESC');
    4849  while($Interface = $DbResult2->fetch_assoc())
     
    101102
    102103// Masquerade hosts without public ip
    103 $Items[] = array('chain' => 'inet-out', 'action' => 'src-nat', 'to-addresses' => '77.92.221.106', 'comment' => 'Default_NAT');
     104$Items[] = array('chain' => 'inet-out', 'action' => 'src-nat', 'to-addresses' => '77.92.221.188', 'comment' => 'Default_NAT');
    104105
    105106// Redirect DNS port
Note: See TracChangeset for help on using the changeset viewer.