Como aplicar
- Acesse o Mikrotik via WinBox .
2. Faça clique em New Terminal.
3. Atualize o Mikrotik para versão 7.x para conseguir configurar o Wireguard.
4. Solicite ao time de DEV o Arquivo .conf do Wireguard
5. Cole todo o script e pressione Enter, separando a seção correspondente ao link de acordo com o tipo de configuração (DHCP ou IP fixo).
6. Adicione os usuários para utilização do Suporte
7. # Script de Usuários
user set admin password=Th1nkd1g1t0
user add name=suporteN2 group=full password=Th1nkd1g1t0@2025
user add name=think group=read password=th1ndk1g1t0
Config MK Lojas D1000
# ===========================================
# CRIA A BRIDGE (LAN)
# ===========================================
/interface bridge
add name=bridge1 protocol-mode=none comment="Bridge da LAN"
# Adiciona ether5 à bridge
/interface bridge port
add bridge=bridge1 interface=ether5
# ===========================================
# CONFIGURA A WAN (ETHER1) – LINK IP FIXO
# ===========================================
/ip address
add address=200.179.xx.x/28 interface=ether1 network=200.179.xx.0 comment="WAN Fixa"
/ip route
add dst-address=0.0.0.0/0 gateway=200.179.xx.1 comment="Rota padrao para internet"
# ===========================================
# CONFIGURA A WAN (ETHER1) – LINK IP DHCP
# ===========================================
/ip dhcp-client
add interface=ether1 use-peer-dns=no use-peer-ntp=yes add-default-route=yes comment="WAN DHCP Client"
# ===========================================
# CONFIGURA A LAN (BRIDGE)
# ===========================================
/ip address
add address=192.168.2.1/24 interface=bridge1 comment="LAN Bridge"
# ===========================================
# POOL E SERVIDOR DHCP
# ===========================================
/ip pool
add name=dhcp_pool ranges=192.168.2.10-192.168.2.254
/ip dhcp-server
add name=dhcp1 interface=bridge1 address-pool=dhcp_pool lease-time=30m disabled=no comment="Servidor DHCP da LAN"
/ip dhcp-server network
add address=192.168.2.0/24 gateway=192.168.2.1 dns-server=192.168.2.1,8.8.8.8,1.1.1.1 comment="Rede DHCP LAN"
# ===========================================
# NAT - LIBERA NAVEGAÇAO DOS CLIENTES
# ===========================================
/ip firewall nat
add chain=srcnat out-interface=ether1 action=masquerade comment="NAT para saída de internet"
# ===========================================
# DNS LOCAL (CACHE)
# ===========================================
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,1.1.1.1
# ===========================================
# FINALIZAÇAO
# ===========================================
8. Após aplicar, teste:
- Conecte um notebook na porta ether5.
- Ele deve receber IP automaticamente (192.168.2.x).
- Gateway: 192.168.2.1
- Teste abrir o CMD:
ping 192.168.2.1
ping 8.8.8.8
ping www.google.com
Se responder, internet e DHCP estão funcionando.
Comentários
0 comentário
Por favor, entre para comentar.