Mudanças entre as edições de "Teste"

De BrByte Wiki
 
(87 revisões intermediárias por 2 usuários não estão sendo mostradas)
Linha 1: Linha 1:
=PÁGINA EM DESENVOLVIMENTO=
 
  
=Configuração no Mikrotik=
+
=Acesso Externo WEB=
  
 +
==IP > Firewall > Nat==
  
Cache Full Simples
+
'''Para adicionar clique no botão:''' ([[Arquivo:MikrotikBotaoAdd.png|link=]])
  
IP > Firewall > Mangle
+
*'''Aba General >'''
 +
**'''Chain: '''dstnat
 +
**'''Protocol: '''tcp
 +
**'''Dst. Port: '''8080
 +
**'''In. Interface: '''ether1 (Interface de Entrada de LINK)
  
Para adicionar clique no botão: (MikrotikBotaoAdd.png)
+
<div class="img-responsive align-center">[[Arquivo:MikrotikIpFirewallNatAccExt1.png|link=]]</div>
  
Aba General >
 
Chain: postrouting
 
Protocol: 6 (tcp)
 
  
Aba Advanced >
+
*'''Aba Action>'''
DSCP (TOS): 10
+
**'''Action: '''dst-nat
 +
**'''To Address: '''10.10.150.2 (IP do Speedr)
 +
**'''To Ports: '''8080
  
Aba Action >
+
<div class="img-responsive align-center">[[Arquivo:MikrotikIpFirewallNatAccExt2.PNG|link=]]</div>
Action: mark connection
 
New Connection Mark: HitSpeedr
 
Passthrough: Yes
 
  
  
Aba General >
+
'''Regras'''
Chain: postrouting
+
/ip firewall nat
Protocol: 6 (tcp)
+
add action=dst-nat chain=dstnat comment="SPEEDR - EXTERNO WEB" dst-port=8080 in-interface=\
 +
    ether1 protocol=tcp to-addresses=10.10.150.2 to-ports=8080
  
Aba Advanced >
+
=Acesso Externo SSH=
DSCP (TOS): 12
 
  
Aba Action >
+
==IP > Firewall > Nat==
Action: mark connection
 
New Connection Mark: HitSpeedr
 
Passthrough: Yes
 
  
Aba General >
+
'''Para adicionar clique no botão:''' ([[Arquivo:MikrotikBotaoAdd.png|link=]])
Chain: postrouting
 
Protocol: 6 (tcp)
 
  
Aba Advanced >
+
*'''Aba General >'''
DSCP (TOS): 48
+
**'''Chain: '''dstnat
 +
**'''Protocol: '''tcp
 +
**'''Dst. Port: '''2229
 +
**'''In. Interface: '''ether1 (Interface de Entrada de LINK)
  
Aba Action >
+
<div class="img-responsive align-center">[[Arquivo:MikrotikIpFirewallNatAccExt3.png|link=]]</div>
Action: mark connection
 
New Connection Mark: HitSpeedr
 
Passthrough: Yes
 
  
Aba General >
 
Chain: postrouting
 
Connection Mark: HitSpeedr
 
  
Aba Action >
+
*'''Aba Action>'''
Action: mark packet
+
**'''Action: '''dst-nat
New Packet Mark: CacheFull
+
**'''To Address: '''10.10.150.2 (IP do Speedr)
Passthrough: No
+
**'''To Ports: '''2229
  
Queue > Queue Types
+
<div class="img-responsive align-center">[[Arquivo:MikrotikIpFirewallNatAccExt4.png|link=]]</div>
  
Para adicionar clique no botão: (MikrotikBotaoAdd.png)
 
  
Type Name: CacheFull
+
'''Regras'''
Kind: pcq
+
/ip firewall nat
Rate: 5m (velocidade desejada por cliente)
+
add action=dst-nat chain=dstnat comment="SPEEDR - EXTERNO SSH" dst-port=2229 in-interface=\
 +
    ether1 protocol=tcp to-addresses=10.10.150.2 to-ports=2229
  
 
+
__NOEDITSECTION__
Queue > Simple Queues
+
[[Category:Teste]]
 
 
Para adicionar clique no botão: (MikrotikBotaoAdd.png)
 
 
 
Aba General >
 
Name: Cache Full
 
Target: 0.0.0.0/0
 
 
 
Aba Advanced >
 
Packet Marks: CacheFull
 
Queue Type: CacheFull
 

Edição atual tal como às 11h50min de 28 de fevereiro de 2023

Acesso Externo WEB

IP > Firewall > Nat

Para adicionar clique no botão: (MikrotikBotaoAdd.png)

  • Aba General >
    • Chain: dstnat
    • Protocol: tcp
    • Dst. Port: 8080
    • In. Interface: ether1 (Interface de Entrada de LINK)
MikrotikIpFirewallNatAccExt1.png


  • Aba Action>
    • Action: dst-nat
    • To Address: 10.10.150.2 (IP do Speedr)
    • To Ports: 8080
MikrotikIpFirewallNatAccExt2.PNG


Regras
/ip firewall nat
add action=dst-nat chain=dstnat comment="SPEEDR - EXTERNO WEB" dst-port=8080 in-interface=\
    ether1 protocol=tcp to-addresses=10.10.150.2 to-ports=8080

Acesso Externo SSH

IP > Firewall > Nat

Para adicionar clique no botão: (MikrotikBotaoAdd.png)

  • Aba General >
    • Chain: dstnat
    • Protocol: tcp
    • Dst. Port: 2229
    • In. Interface: ether1 (Interface de Entrada de LINK)
MikrotikIpFirewallNatAccExt3.png


  • Aba Action>
    • Action: dst-nat
    • To Address: 10.10.150.2 (IP do Speedr)
    • To Ports: 2229
MikrotikIpFirewallNatAccExt4.png


Regras
/ip firewall nat
add action=dst-nat chain=dstnat comment="SPEEDR - EXTERNO SSH" dst-port=2229 in-interface=\
    ether1 protocol=tcp to-addresses=10.10.150.2 to-ports=2229