Changeset 860 for trunk/Modules/NetworkConfigRouterOS/Generators
- Timestamp:
- May 8, 2019, 8:22:45 PM (6 years ago)
- Location:
- trunk/Modules/NetworkConfigRouterOS/Generators
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Generators/DHCP.php
r817 r860 28 28 $Name = $Interface['DeviceName']; 29 29 if($Interface['Name'] != '') $Name .= '-'.$Interface['Name']; 30 $Items[] = array('mac-address' => $Interface['MAC'], 'address' => $Interface['LocalIP'], 'server' => $Server, 'comment' => $Name );30 $Items[] = array('mac-address' => $Interface['MAC'], 'address' => $Interface['LocalIP'], 'server' => $Server, 'comment' => $Name, 'lease-time' => '24h'); 31 31 } 32 32 -
trunk/Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php
r781 r860 110 110 111 111 // Accept free-access clients 112 $Items[] = array('chain' => 'dstnat', 'dst-address' => '!10.145.0.0/16',113 'src-address-list' => 'free-access', 'in-interface' => $LocalInterface,114 'action' => 'accept', 'comment' => 'Free_access');112 //$Items[] = array('chain' => 'dstnat', 'dst-address' => '!10.145.0.0/16', 113 // 'src-address-list' => 'free-access', 'in-interface' => $LocalInterface, 114 // 'action' => 'accept', 'comment' => 'Free_access'); 115 115 // Redirect unregistred clients to free access activation page 116 $Items[] = array('chain' => 'dstnat', 'dst-address' => '!10.145.0.0/16',117 'src-address-list' => 'unregistred', 'in-interface' => $LocalInterface, 'protocol' => 'tcp',118 'action' => 'dst-nat', 'to-addresses' => '10.145.64.70', 'to-ports' => 8080, 'comment' => 'Redirect_unregistred');116 //$Items[] = array('chain' => 'dstnat', 'dst-address' => '!10.145.0.0/16', 117 // 'src-address-list' => 'unregistred', 'in-interface' => $LocalInterface, 'protocol' => 'tcp', 118 // 'action' => 'dst-nat', 'to-addresses' => '10.145.64.70', 'to-ports' => 8080, 'comment' => 'Redirect_unregistred'); 119 119 120 120 // Masquerade hosts without public ip -
trunk/Modules/NetworkConfigRouterOS/Generators/NetwatchImport.php
r852 r860 65 65 } 66 66 } 67 echo("transakce\n"); 67 68 $this->Database->Transaction($Queries); 69 echo("done\n"); 68 70 69 71 // Set offline all interfaces which were not updated as online … … 90 92 } 91 93 $Queries[] = $this->Database->GetUpdate('NetworkDevice', '`LastOnline` < "'.TimeToMysqlDateTime($StartTime).'"', array('Online' => 0)); 94 echo("Transakce 2\n"); 92 95 $this->Database->Transaction($Queries); 96 echo("done\n"); 93 97 } 94 98
Note:
See TracChangeset
for help on using the changeset viewer.