Changeset 277 for trunk


Ignore:
Timestamp:
Feb 27, 2010, 2:59:28 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Generování pravidel pro NAT překlad.
Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/network_address.php

    r267 r277  
    3535    $HostMask = 0xffffffff ^ $this->GetNetMask();
    3636    $To = new NetworkAddressIPv4();
    37     $To->Address = $this->From + $HostMask;
     37    $To->Address = $From->Address + $HostMask;
    3838    $To->Prefix = 32;
    3939    return(array('From' => $From, 'To' => $To));   
  • trunk/system/generators/firewall_nat.php

    r276 r277  
    4141    $NewAddress->Prefix = $Subnet['ExtMask'];
    4242    $Range = $NewAddress->GetRange();
    43     if($Subnet['ExtMask'] != 32) $Range = $Range['From']->AddressToStrin().'-'.$Range['To']->AddressToString();
    44       else $Range = $Range['From']->AddressToString();
     43    if($Subnet['ExtMask'] != 32) $Range = $Range['From']->AddressToString().'-'.$Range['To']->AddressToString();
     44      else $Rang  e = $Range['From']->AddressToString();
    4545    if($Subnet['Mask'] == 32) $Src = $Subnet['AddressRange'];
    4646      else $Src = $Subnet['AddressRange'].'/'.$Subnet['Mask'];
Note: See TracChangeset for help on using the changeset viewer.