Ignore:
Timestamp:
May 8, 2019, 8:22:45 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Made some links to follow http/https protocol.
  • Modified: Simplified .htaccess.
Location:
trunk/Modules/NetworkConfigRouterOS/Generators
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigRouterOS/Generators/DHCP.php

    r817 r860  
    2828        $Name = $Interface['DeviceName'];
    2929        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');
    3131      }
    3232
  • trunk/Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php

    r781 r860  
    110110
    111111    // 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');
    115115    // 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');
    119119
    120120    // Masquerade hosts without public ip
  • trunk/Modules/NetworkConfigRouterOS/Generators/NetwatchImport.php

    r852 r860  
    6565      }
    6666    }
     67    echo("transakce\n");
    6768    $this->Database->Transaction($Queries);
     69    echo("done\n");
    6870
    6971    // Set offline all interfaces which were not updated as online
     
    9092    }
    9193    $Queries[] = $this->Database->GetUpdate('NetworkDevice', '`LastOnline` < "'.TimeToMysqlDateTime($StartTime).'"', array('Online' => 0));
     94    echo("Transakce 2\n");
    9295    $this->Database->Transaction($Queries);
     96    echo("done\n");
    9397  }
    9498
Note: See TracChangeset for help on using the changeset viewer.