Ignore:
Timestamp:
Mar 7, 2010, 8:42:16 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Načítání pravidel do routeru.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/system/generators/firewall_nat.php

    r278 r280  
    5050    $Range = $NewAddress->GetRange();
    5151    if($Subnet['ExtMask'] != 32) $Range = $Range['From']->AddressToString().'-'.$Range['To']->AddressToString();
    52       else $Rang  e = $Range['From']->AddressToString();
     52      else $Range = $Range['From']->AddressToString();
    5353    if($Subnet['Mask'] == 32) $Src = $Subnet['AddressRange'];
    5454      else $Src = $Subnet['AddressRange'].'/'.$Subnet['Mask'];
     
    6969
    7070// Masquerade hosts without public ip
    71 $Items[] = array('chain' => 'inet-out', 'action' => 'masquerade', 'comment' => 'Default_NAT');     
     71$Items[] = array('chain' => 'inet-out', 'action' => 'src-nat', 'to-addresses' => '77.92.221.106', 'comment' => 'Default_NAT');
    7272// Redirect DNS port
    7373//$Items[] = array('chain' => 'dstnat', 'dst-address' => '212.111.4.174', 'protocol' => 'tcp', 'dst-port' => 53, 'in-interface' => $InetInterface, 'action' => 'dst-nat', 'to-addresses' => '10.145.64.8', 'to-ports' => 53, 'comment' => 'DNS_redirection_UDP');
Note: See TracChangeset for help on using the changeset viewer.