Ignore:
Timestamp:
May 3, 2021, 9:48:26 PM (3 years ago)
Author:
chronos
Message:
  • Added: Support for customer address places.
  • Added: Limit direct traffic to router.
File:
1 edited

Legend:

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

    r892 r909  
    238238    $this->ProcessNode($AddressTree);
    239239
     240    // Limit direct input/output traffic to gateway
     241    $PacketMark = GetMarkByComment('rt-gateway-3-out');
     242    $ItemsFirewall[] = array('chain' => 'output', 'out-interface' => $InetInterface, 'action' => 'mark-packet', 'new-packet-mark' => $PacketMark, 'comment' => 'local-out',);
     243    $PacketMark = GetMarkByComment('rt-gateway-3-in');
     244    $ItemsFirewall[] = array('chain' => 'input', 'in-interface' => $InetInterface, 'action' => 'mark-packet', 'new-packet-mark' => $PacketMark, 'comment' => 'local-in',);
     245
    240246    // Limited free internet
    241247    $PacketMark = GetMarkByComment('free-out');
Note: See TracChangeset for help on using the changeset viewer.