Building Advanced Firewall
This page guides building an advanced firewall on MikroTik RouterOS by configuring interface lists, filtering rules for IPv4 and IPv6, accepting ICMP/DHCPv6 while blocking invalid addresses, and managing traffic flows between WAN and LAN interfaces.
Common Firewall Matchers and Actions
This page explains MikroTik RouterOS firewall statistics and commands, detailing how to view matching stats for IPv4/IPv6 rules, reset counters, and lists common matchers like MAC addresses, interfaces, IP ranges, and ports used in firewall filtering.
Connection rate
Connection Rate is a MikroTik RouterOS firewall feature that monitors and filters traffic based on connection speed, using 'connection-bytes' and 'connection-rate' to detect high-speed connections for prioritization or throttling.
Connection tracking
Connection tracking in MikroTik RouterOS enables stateful firewall functionality by monitoring logical network connections, supporting NAT and various firewall features. It assigns packets to states like new, established, related, invalid, or untracked, with FastTrack optimizing TCP/UDP packet forwarding.
DDoS Protection
This page explains MikroTik RouterOS DDoS protection configuration, covering firewall rules for detecting and blocking various attack types like HTTP floods, SYN floods, and DNS amplification. It includes detailed configuration examples for address lists, firewall chains, and specific TCP SYN cookie settings to mitigate DoS/DDoS attacks.
Filter
Firewall filters in MikroTik RouterOS control packet flow by allowing or blocking traffic through predefined chains (input, forward, output) with options to accept specific services or drop malicious packets. Configuration is done via `/ip/firewall/filter` for IPv4 and `/ipv6/firewall/filter` for IPv6, with examples provided for securing both router and LAN devices.
Firewall
MikroTik RouterOS firewall provides stateful and stateless packet filtering, NAT, and advanced traffic classification to secure network data flow and prevent unauthorized access. It includes filter/raw, mangle, and nat modules with pre-defined chains for efficient rule management.
Firewall and QoS Case Studies
This page presents practical case studies for configuring firewall and QoS rules in MikroTik RouterOS, covering brute-force prevention, DDoS protection, connection rate limiting, port knocking, and advanced firewall designs.
Firewall and Quality of Service
This section provides an overview of RouterOS firewall capabilities including NAT, connection tracking, and QoS features for securing traffic, classifying packets, and managing bandwidth.
First Time Configuration
This page provides a step-by-step guide for first-time MikroTik RouterOS configuration, covering prerequisites, connection setup, and key concepts like DHCP, NAT, and firewall. It includes both WinBox graphical and CLI methods for new and advanced users.
HotSpot - Captive portal
The MikroTik HotSpot Gateway enables client authentication for public networks with features like DHCP address pools, multiple authentication methods, and walled-garden access. It requires IPv4 and has specific routing limitations, with configuration examples provided for setup.
Interface Lists
Interface Lists in RouterOS allow defining sets of interfaces for simplified management across various configurations. The main menu lists predefined and custom interface lists, while the member sub-menu handles statically configured members. Dynamic interfaces are automatically included or excluded based on flags, and bridges require careful handling to avoid unintended behavior.
Layer7
Layer7 protocol inspection in MikroTik RouterOS searches for patterns in network traffic streams, collecting initial packet data to identify specific protocols. It requires careful configuration for bidirectional traffic and is resource-intensive, with warnings against overuse. Example configurations demonstrate matching RDP and Telnet protocols while managing memory usage.
Packet Flow in RouterOS
This page explains how data packets flow through MikroTik RouterOS, detailing the interaction between bridging, routing, MPLS decisions, and firewall chains. It includes diagrams illustrating packet processing stages from entry to exit points, along with descriptions of key components like routing tables and firewall chains.
Port knocking
Port knocking is a security method to protect public IP addresses by requiring a specific sequence of port connections before granting access. The documentation provides setup examples, including firewall rule configurations for adding IPs to trusted lists and blocking suspicious ports, with warnings about resource usage.
Proxy
MikroTik RouterOS proxy features enable HTTP and FTP caching, transparent proxying, access control via source/destination lists, URL filtering, and logging. It supports direct connections, parent proxying, and content scanning for security, with configuration examples including regular and transparent proxy setups.
Securing your router
This page provides security recommendations for MikroTik RouterOS, including upgrading RouterOS versions, changing default usernames and passwords, securing access with firewall rules and VPNs, disabling unnecessary services like MAC-Telnet and Neighbor Discovery, and managing DNS caching to enhance router security.
Services
This page documents the IP/Services section in MikroTik RouterOS, detailing default services like Telnet, FTP, SSH, and WinBox along with their configuration properties such as address restrictions, ports, TLS versions, and session limits. It provides examples for managing service access control.
Socksify
Socksify enables routing specific traffic through a SOCKS proxy server, allowing applications without native proxy support to use one. It supports multiple services and can be configured with firewall filters for precise traffic management, including examples using TOR.
Software Specifications
This page outlines RouterOS software specifications covering hardware compatibility, installation methods, configuration tools, backup/restore capabilities, firewall features, routing protocols, and MPLS support for MikroTik devices.