MikroTik
How to Configure Comments on Rules in MikroTik: Step by Step
VPS 8GB RAM + 75GB NVMe — R$59/mês4 vCPUs · Tráfego ilimitado · Ubuntu Server LTS · Suporte para instalação incluso
Contratar agoraStep-by-Step Guide to Configuring Comments on MikroTik Rules
1. Adicionar Comentários em Regras pelo Winbox
- Acesse o Mikrotik via Winbox.
- No menu lateral, vá para o recurso desejado, como IP > Firewall ou Queues.
- Edit or create a new rule.
- No campo Comment, insira uma descrição que identifique a finalidade da regra.
2. Adicionar Comentários via CLI
Use o parâmetro comment ao criar ou editar uma regra. Exemplo: Criar uma regra de firewall com comentário:RouterOS
/ip firewall filter add chain=input protocol=tcp dst-port=22 action=accept comment="Permitir SSH para administração"RouterOS
/ip firewall filter set comment="Regra para permitir tráfego HTTP"3. Visualizar Comentários em Regras
Comentários podem ser visualizados diretamente na interface do Winbox ou via CLI. Comando CLI para listar regras com comentários:RouterOS
/ip firewall filter print where comment4. Usar Comentários para Organização de Regras
- Comment rules with keywords such as "blocking", "priority", or "monitoring".
- Make future reviews easier by specifying technical details in the comment.
RouterOS
/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade comment="Mascarar tráfego da LAN para a internet (WAN)"5. Remover ou Editar Comentários
- To remove a comment, leave the field blank.
- In the CLI, use the command below:
RouterOS
/ip firewall filter set comment=""