Changeset 299 for trunk/system/generators/firewall_nat.php
- Timestamp:
- Oct 3, 2010, 1:51:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/firewall_nat.php
r298 r299 13 13 14 14 $InetInterface = $Config['MainRouter']['InetInterface']; 15 $LocalInterface = $Config['MainRouter'][' InetInterface'];15 $LocalInterface = $Config['MainRouter']['LocalInterface']; 16 16 $IPCentrala = '10.145.64.8'; 17 17 … … 54 54 } else 55 55 { 56 $Items[] = array('chain' => 'dstnat', 'src-address' => $Interface['LocalIP'], ' dst-port' => 80, 'action' => 'dst-nat', 'to-addresses' => $IPCentrala, 'to-ports' => 81, 'comment' => $Name.'-out');56 $Items[] = array('chain' => 'dstnat', 'src-address' => $Interface['LocalIP'], 'protocol' => 'tcp', 'dst-port' => 80, 'action' => 'dst-nat', 'to-addresses' => $IPCentrala, 'to-ports' => 81, 'comment' => $Name.'-out'); 57 57 } 58 58 } … … 89 89 if($Subnet['Mask'] == 32) $Src = $Subnet['AddressRange']; 90 90 else $Src = $Subnet['AddressRange'].'/'.$Subnet['Mask']; 91 $Items[] = array('chain' => 'dstnat', 'src-address' => $Src, ' dst-port' => 80, 'action' => 'dst-nat', 'to-addresses' => $IPCentrala, 'to-ports' => 81, 'comment' => $Subnet['Name'].'-out');91 $Items[] = array('chain' => 'dstnat', 'src-address' => $Src, 'protocol' => 'tcp', 'dst-port' => 80, 'action' => 'dst-nat', 'to-addresses' => $IPCentrala, 'to-ports' => 81, 'comment' => $Subnet['Name'].'-out'); 92 92 } 93 93 }
Note:
See TracChangeset
for help on using the changeset viewer.