- Timestamp:
- Nov 13, 2009, 6:37:03 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/finance.php
r226 r261 76 76 { 77 77 case 1: 78 $Tariff['SpeedMin'] = round($Tariff['SpeedMax'] * $Aggregation); 78 // Přepočítávání rychlostí koliduje s rozdílovým zapisováním stromu front do mikrotiku. Vždy při změně počtu počítačů či domácností docházelo ke změně minima a přepočtu všeho. 79 //$Tariff['SpeedMin'] = round($Tariff['SpeedMax'] * $Aggregation); 79 80 break; 80 81 case 2: -
trunk/network/dostupnost.php
r246 r261 1 1 <?php 2 3 die(); 2 4 3 5 include_once('../global.php'); -
trunk/system/generators/dns.php
r245 r261 114 114 'Host' => array(), 115 115 'Alias' => array(), 116 'Network' => array('1 92.168.0', '192.168.1', '192.168.2', '192.168.3', '192.168.4', '192.168.5', '192.168.6', '192.168.7', '77.92.221'),116 'Network' => array('10.145.64', '10.145.65', '10.145.66', '10.145.67', '77.92.221'), 117 117 ); 118 118 … … 136 136 137 137 // CZFree records in internal server 138 /* 138 139 $DbResult = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.CZFreeIP <> ""'); 139 140 while($Interface = $DbResult->fetch_assoc()) … … 143 144 $LocalDNS['Host'][] = array('Name' => $Name.'-czfree', 'Address' => $Interface['CZFreeIP']); 144 145 } 146 */ 145 147 146 148 // Domain aliases … … 187 189 } 188 190 189 191 /* 190 192 // === CZFree network DNS server === 191 193 $BaseDomain = 'zdechov.zlin.czf'; … … 226 228 227 229 // === CZFree network local address === 228 $BaseDomain = 'zdechov .zlin.czf';230 $BaseDomain = 'zdechovnet.czf'; 229 231 $CZFreeLocalDNS = array( 230 232 'Domain' => $BaseDomain, … … 263 265 } 264 266 267 GenerateDNS($CZFreeDNS); 268 GenerateDNS($CZFreeLocalDNS); 269 */ 270 265 271 GenerateDNS($LocalDNS); 266 272 GenerateDNS($ExternalDNS); 267 GenerateDNS($CZFreeDNS);268 GenerateDNS($CZFreeLocalDNS);269 273 270 274 ?> -
trunk/system/generators/nat_routerboard.php
r254 r261 56 56 $Items[] = array('chain' => 'srcnat', 'out-interface' => $InetInterface, 'action' => 'masquerade', 'comment' => 'Default_NAT'); 57 57 // Redirect DNS port 58 $Items[] = array('chain' => 'dstnat', 'dst-address' => '212.111.4.174', 'protocol' => 'tcp', 'dst-port' => 53, 'in-interface' => $InetInterface, 'action' => 'dst-nat', 'to-addresses' => '1 92.168.0.1', 'to-ports' => 53, 'comment' => 'DNS_redirection_UDP');59 $Items[] = array('chain' => 'dstnat', 'dst-address' => '212.111.4.174', 'protocol' => 'udp', 'dst-port' => 53, 'in-interface' => $InetInterface, 'action' => 'dst-nat', 'to-addresses' => '1 92.168.0.1', 'to-ports' => 53, 'comment' => 'DNS_redirection_UDP');58 $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'); 59 $Items[] = array('chain' => 'dstnat', 'dst-address' => '212.111.4.174', 'protocol' => 'udp', 'dst-port' => 53, 'in-interface' => $InetInterface, 'action' => 'dst-nat', 'to-addresses' => '10.145.64.8', 'to-ports' => 53, 'comment' => 'DNS_redirection_UDP'); 60 60 61 61 $Routerboard->ListUpdate($Path, array('chain', 'dst-address', 'in-interface', 'src-address', 'out-interface', 'to-ports', 'dst-port', 'protocol', 'action', 'to-addresses', 'comment'), $Items); -
trunk/system/routerboard.php
r260 r261 200 200 ksort($List[$Index]); 201 201 } 202 //print_r($List);203 //print_r($Values);202 if($this->Debug) print_r($List); 203 if($this->Debug) print_r($Values); 204 204 205 205 // Erase all items not existed in $Values
Note:
See TracChangeset
for help on using the changeset viewer.