This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| advanced-firewall [2026/11/10 20:14] – [NAT] hogwild | advanced-firewall [2026/11/10 22:42] (current) – [NAT] -Condense, format NAT loopback table contents hogwild | ||
|---|---|---|---|
| Line 55: | Line 55: | ||
| **NAT loopback:** NAT Loopback (Hairpinning) logic is implemented in the firewall subsystem using iptables rules. These rules are applied to the PREROUTING and POSTROUTING NAT table chains. | **NAT loopback:** NAT Loopback (Hairpinning) logic is implemented in the firewall subsystem using iptables rules. These rules are applied to the PREROUTING and POSTROUTING NAT table chains. | ||
| + | |||
| + | This table explains the options availabe for NAT loopback: | ||
| + | |||
| + | \\ | ||
| + | |||
| + | ^ Mode ^ Behavior | ||
| + | | **All** | Any LAN traffic sent to the router’s WAN IP is looped back to the router or LAN destination, | ||
| + | | **Forwarded Only** (default) | Loopback translation applies only to LAN traffic targeting WAN-IP ports that have explicit Port Forwarding rules. Other WAN-IP ports are rejected or dropped. | Provides security and control by preventing LAN access to non-forwarded portsLimits loopback processing to only the required ports, improving efficiency. | Does not work for dynamic or non-forwarded services, such as UPnP-opened ports or some DMZ configurations; | ||
| + | | **Disabled** | No loopback NAT rules are added.LAN traffic destined for the router’s public WAN IP or DDNS name is dropped or rejected. | Creates the lowest CPU load and maximum throughput because no extra NAT inspection or packet rewriting occurs.Enforces clearer network-boundary separation. | LAN devices cannot access local servers through the public domain name/public WAN IP, nor reach the router admin interface via the WAN interface. | | ||
| \\ | \\ | ||
| - | | + | |
| - | | + | |
| - | | + | |
| + | * Performance: | ||
| + | | ||
| {{:: | {{:: | ||