Changeset 983 for trunk/Modules


Ignore:
Timestamp:
Apr 22, 2026, 10:11:45 PM (3 weeks ago)
Author:
chronos
Message:
  • Fixed: IS form unknown items error handling.
  • Modified: Ping redirection to Inext local network.
Location:
trunk/Modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/IS/IS.php

    r980 r983  
    464464    $Form->SetClass($Table);
    465465    $this->Title .= ' - '.$Form->Definition['Title'].' položka';
    466     $Form->LoadValuesFromDatabase($Id);
     466    try
     467    {
     468      $Form->LoadValuesFromDatabase($Id);
     469    } catch (Exception $E)
     470    {
     471      return $this->SystemMessage('Chyba', 'Položka '.$Id.' nenalezena.');
     472    }
    467473    $Form->OnSubmit = '?a=view';
    468474    $Output = $Form->ShowViewForm();
  • trunk/Modules/NetworkConfigRouterOS/Generators/FirewallNAT.php

    r929 r983  
    3535    //$Items[] = array('chain' => 'inet-out', 'dst-address' => '172.16.1.1/30', 'action' => 'accept', 'comment' => 'Local_subnet');
    3636    //$Items[] = array('chain' => 'inet-in', 'dst-address' => '172.16.1.1/30', 'action' => 'accept', 'comment' => 'Local_subnet');
     37
     38    // Redirect ping from warp to inext test network
     39    $Items[] = array('chain' => 'inet-out', 'src-address' => '10.145.64.23', 'dst-address' => '172.20.195.192/29', 'protocol' => 'icmp',
     40      'action' => 'src-nat', 'to-addresses' => '172.20.195.197', 'comment' => 'warp_ping_inext');
    3741
    3842    $DbResult = $this->Database->query('SELECT `Member`.*, `Subject`.`Name` FROM `Member` '.
Note: See TracChangeset for help on using the changeset viewer.