Changeset 973 for trunk/Modules/NetworkConfigRouterOS
- Timestamp:
- Jun 30, 2025, 11:22:35 AM (4 days ago)
- Location:
- trunk/Modules/NetworkConfigRouterOS/Generators
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigRouterOS/Generators/DHCP.php
r936 r973 1 1 <?php 2 3 2 4 3 class ConfigRouterOSDHCP extends NetworkConfigItem … … 36 35 } 37 36 } 38 -
trunk/Modules/NetworkConfigRouterOS/Generators/FirewallFilter.php
r929 r973 7 7 $Path = array('ip', 'firewall', 'filter'); 8 8 9 $Routerboard = new Routerboard($this->System Config['MainRouter']['HostName']);10 $Routerboard->UserName = $this->System Config['MainRouter']['UserName'];11 $Routerboard->Timeout = $this->System Config['MainRouter']['ConnectTimeout'];9 $Routerboard = new Routerboard($this->System->Config['MainRouter']['HostName']); 10 $Routerboard->UserName = $this->System->Config['MainRouter']['UserName']; 11 $Routerboard->Timeout = $this->System->Config['MainRouter']['ConnectTimeout']; 12 12 $Routerboard->Debug = true; 13 13 14 $InetInterface = $this->System Config['MainRouter']['InetInterface'];15 $LocalInterface = $this->System Config['MainRouter']['LocalInterface'];14 $InetInterface = $this->System->Config['MainRouter']['InetInterface']; 15 $LocalInterface = $this->System->Config['MainRouter']['LocalInterface']; 16 16 17 17 $Items = array(); 18 19 18 20 19 // Total inet traffic measuring … … 38 37 $Items[] = array('chain' => 'forward', 'out-interface' => $InetInterface, 'protocol' => 'tcp', 'dst-port' => 25, 'dst-address' => '82.119.226.113', 'action' => 'accept', 'comment' => 'smtp.svarko.cz'); 39 38 $Items[] = array('chain' => 'forward', 'out-interface' => $InetInterface, 'protocol' => 'tcp', 'dst-port' => 25, 'action' => 'drop', 'comment' => 'drop-rest-smtp'); 40 41 39 42 40 // Insert blocked addresses -
trunk/Modules/NetworkConfigRouterOS/Generators/Signal.php
r929 r973 39 39 $Read = $Routerboard->Read(false); 40 40 $Array = $Routerboard->ParseResponse($Read); 41 if (array_key_exists('!trap', $Array)) 42 { 43 return array(); 44 } 41 45 $NetworkMac = new NetworkMac($this->System); 42 46 foreach ($Array as $Properties) … … 79 83 $Queries[] = 'INSERT INTO `NetworkSignal` (`MAC`, `Value`, `Remote`, `RateRx`, `RateTx`, `Time`, `Interface`, `Device`) VALUES '. 80 84 '('.$MacRef.', '.$Strength.', '.$RemoteSignal.', '.$RateRx.', '.$RateTx.', "'. 81 TimeToMysqlDateTime($this->Time).'", '.$Interface.', '.$Device['Id'].')'; 85 TimeToMysqlDateTime($this->Time).'", '.$Interface.', '.$Device['Id'].')'; 82 86 } 83 87 return $Queries; … … 98 102 { 99 103 return array(); 100 } 104 } 101 105 $NetworkMac = new NetworkMac($this->System); 102 106 foreach ($Array as $Properties)
Note:
See TracChangeset
for help on using the changeset viewer.