Configuring firewall rules
Purpose: Harden the router control plane (Input chain) and isolate internal VLANs from unauthorized cross-access (Forward chain) using stateful connection tracking.
Prerequisites
- Defined WAN and LAN/Management interface lists (Interface -> Interface List).
Step-by-Step Configuration
Accept established/related connections, drop invalid packets, allow ICMP, allow WinBox/SSH strictly from your Management subnet/interface list, and drop all other WAN input.
Allow established/related traffic, drop invalid packets, block Guest/Customer VLANs from reaching Management/Staff subnets, and drop unsolicited WAN-to-LAN packets not DST-NATed.
Ensure general Accept Established/Related rules sit above broad Drop rules so active sessions are processed at high speed.
CLI / Configuration Snippet
# RouterOS v7.x — Essential Stateful Input & Forward Firewall Baseline /ip firewall filter # Input Chain: Protect the router itself add chain=input connection-state=established,related action=accept comment="Accept established/related" add chain=input connection-state=invalid action=drop comment="Drop invalid" add chain=input in-interface-list=MGMT action=accept comment="Allow Mgmt VLAN access" add chain=input in-interface-list=WAN action=drop comment="Drop all unsolicited WAN input" # Forward Chain: Protect LANs & isolate Guest VLAN add chain=forward connection-state=established,related action=accept add chain=forward connection-state=invalid action=drop add chain=forward src-address=10.10.30.0/24 dst-address=10.10.0.0/16 action=drop comment="Isolate Guest from Internal" add chain=forward connection-state=new connection-nat-state=!dstnat in-interface-list=WAN action=drop comment="Drop non-DSTNAT WAN"
External port scans against the WAN IP are silently dropped while authorized Management VLAN engineers retain full WinBox/SSH access.
Troubleshooting Matrix
Block external DNS queries (UDP/TCP 53) on the WAN interface so your router cannot be used as an open DNS resolver.
Export firewall configuration (/ip firewall export file=fw-rules) after every policy audit.
Directs network architecture and server infrastructure at Delight Office Solutions, overseeing the core YouBroadband ISP routing matrix and enterprise deployments.