Changeset 280 for trunk/system/generators/firewall_nat.php
- Timestamp:
- Mar 7, 2010, 8:42:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/firewall_nat.php
r278 r280 50 50 $Range = $NewAddress->GetRange(); 51 51 if($Subnet['ExtMask'] != 32) $Range = $Range['From']->AddressToString().'-'.$Range['To']->AddressToString(); 52 else $Rang 52 else $Range = $Range['From']->AddressToString(); 53 53 if($Subnet['Mask'] == 32) $Src = $Subnet['AddressRange']; 54 54 else $Src = $Subnet['AddressRange'].'/'.$Subnet['Mask']; … … 69 69 70 70 // 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'); 72 72 // Redirect DNS port 73 73 //$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.