Ignore:
Timestamp:
Dec 31, 2020, 11:47:45 AM (4 years ago)
Author:
chronos
Message:
  • Added: Limit direct input/output internet traffic to gateway to cover also VPN connections traffic.
File:
1 edited

Legend:

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

    r887 r892  
    8282    // Process users
    8383    $DbResult = $this->System->Database->query('SELECT `Member`.*, `Subject`.`Name` FROM `Member` '.
    84         'LEFT JOIN `Subject` ON `Subject`.`Id` = `Member`.`Subject` '.
    85         'WHERE `Member`.`Blocked` = 0');
     84      'LEFT JOIN `Subject` ON `Subject`.`Id` = `Member`.`Subject` '.
     85      'WHERE `Member`.`Blocked` = 0');
    8686    while ($Member = $DbResult->fetch_assoc())
    8787    {
     
    133133    $this->ProcessNode($AddressTree);
    134134
     135    // Limit direct input/output traffic to gateway
     136    $PacketMark = GetMarkByComment('rt-gateway-3-out');
     137    $ItemsFirewall[] = array('chain' => 'output', 'out-interface' => $InetInterface, 'action' => 'mark-packet', 'new-packet-mark' => $PacketMark, 'comment' => 'local-out',);
     138    $PacketMark = GetMarkByComment('rt-gateway-3-in');
     139    $ItemsFirewall[] = array('chain' => 'input', 'in-interface' => $InetInterface, 'action' => 'mark-packet', 'new-packet-mark' => $PacketMark, 'comment' => 'local-in',);
     140
    135141    // Limited free internet
    136142    $PacketMark = GetMarkByComment('free-out');
Note: See TracChangeset for help on using the changeset viewer.