A home router firewall commonly sits at the boundary between the LAN and internet. Stateful filtering allows return traffic for connections initiated from inside while blocking unsolicited inbound traffic unless a rule, port forward, VPN, or other feature permits it. A device firewall runs on the endpoint itself and can filter traffic based on local applications, interfaces, network profiles, and both local and remote addresses.
Router and device firewalls enforce different boundaries
The two layers overlap but are not redundant. The router cannot protect a laptop from every hostile device already inside the same LAN, and the laptop firewall cannot enforce policy for a smart TV that has no configurable firewall. If a server is intentionally exposed through port forwarding, the router decides whether the traffic can reach the host, while the host firewall and service authentication remain critical controls.
Trace the connection through both rule sets
- Boundary firewalls control traffic crossing routed interfaces and NAT/firewall rules.
- Endpoint firewalls see traffic after it reaches the device and can apply application-aware local policy.
- Guest/IoT segmentation adds routed boundaries inside the home where router/firewall rules can limit lateral movement.
- IPv6 can provide globally routable addresses without NAT, making explicit stateful firewall policy especially important.
- Port forwarding is not an instruction to disable the host firewall; it is one part of an end-to-end exposure decision.
A permitted router connection blocked at the endpoint
If you forward TCP 443 to a home server, the router permits that inbound path. The server firewall can still restrict source networks or interfaces, while the application must enforce authentication and TLS correctly. Each layer answers a different security question.
Inbound, outbound and same-LAN traffic
Security works best in layers. A router that blocks unsolicited inbound internet traffic reduces exposure, but malware on a trusted LAN device can still attack peers if lateral traffic is unrestricted. An endpoint firewall can reduce that risk. Conversely, an IoT camera with weak host controls benefits from network segmentation because the router/firewall can restrict what it can reach.
Avoid disabling both firewalls to test a service
- Assuming NAT alone is the firewall.
- Turning off endpoint firewalls because the router has one.
- Opening a port on both router and host without considering who should be allowed to connect.
- Treating all LAN devices as equally trusted.
Is NAT a firewall?
NAT often accompanies stateful firewall behavior, but address translation and access-control policy are different functions.
Do I need Windows/macOS firewall at home?
Yes, endpoint filtering remains useful even behind a router.
What about IPv6?
Use stateful firewall policy rather than relying on the absence of inbound NAT mappings.
Should IoT devices be isolated?
Often yes when practical, especially if they do not need access to trusted computers or storage.