Ignore:
Timestamp:
Jan 2, 2016, 3:46:22 PM (9 years ago)
Author:
chronos
Message:
  • Fixed: Firewall NAT address for unregistred IP addresses.
File:
1 edited

Legend:

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

    r761 r778  
    102102}
    103103
    104 // Masquerade hosts without public ip
    105 $Items[] = array('chain' => 'inet-out', 'action' => 'src-nat', 'to-addresses' => '77.92.221.188', 'comment' => 'Default_NAT');
    106 
    107104// Redirect DNS port
    108105$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_TCP');
     
    120117$Items[] = array('chain' => 'dstnat', 'dst-address' => '!10.145.0.0/16',
    121118  'src-address-list' => 'unregistred', 'in-interface' => $LocalInterface, 'protocol' => 'tcp',
    122   'action' => 'dst-nat', 'to-addresses' => '10.145.64.8', 'to-ports' => 82, 'comment' => 'Redirect_unregistred');
     119  'action' => 'dst-nat', 'to-addresses' => '10.145.64.70', 'to-ports' => 8080, 'comment' => 'Redirect_unregistred');
     120
     121// Masquerade hosts without public ip
     122$Items[] = array('chain' => 'inet-out', 'src-address'=> '!212.111.4.174', 'action' => 'src-nat', 'to-addresses' => '77.92.221.188', 'comment' => 'Default_NAT');
    123123
    124124/*
Note: See TracChangeset for help on using the changeset viewer.