Skip to content
Contents
GuidesOpenWrt

Why OpenWrt still rejects IPv6 traffic to the LAN when WAN forwarding is set to DROP

Open Network → Firewall in LuCI. The drop setting on the WAN row covers forwarding within that zone. A connection from WAN to LAN can still reach the global reject rule.

Open Network → Firewall in LuCI. The drop setting on the WAN row covers forwarding within that zone. A connection from WAN to LAN can still reach the global reject rule.

Check which path you are testing

Traffic to the router itself goes through input. From an external network you control, open a new TCP connection to an authorized LAN host’s IPv6 address. Keep the destination and port fixed. We used two isolated OpenWrt 25.12.6 VMs as client and router with documentation addresses. LuCI shows the settings applied through UCI.

LuCI · Forward · WAN

Follow the chains over SSH

nft -a list chain inet fw4 forward
nft -a list chain inet fw4 forward_wan
nft -a list chain inet fw4 handle_reject

In our test, forward jumped to forward_wan, which ended with a jump to drop_to_wan. The outgoing interface belonged to LAN, so the WAN egress drop did not match. Back in forward, handle_reject explicitly rejected TCP. Read those verdicts before relying on policy drop in the chain header. Adjust custom chain names. If the request reaches LAN, also check whether the host sent the reset.

Silently drop just the intended traffic

Back up and keep wired management access. Under Traffic Rules add an IPv6 rule from WAN to LAN. Select TCP, replace 2001:db8:2::20 with your test host, set destination port 45678 and choose DROP. Check the order against existing exceptions. Preserve required ICMPv6 traffic. Save and apply.

LuCI · Drop-test-45678

nft -a list chain inet fw4 forward_wan

We added counters for the test flow. No service ran at the target address. These counts show the firewall path only. Retries can vary.

Lab counters (packets) Before Enabled Removed
forward 1 3 1
handle_reject 1 0 1
Replies at client 1 0 1

Make a fresh connection for each check and compare counter changes. Our counting probes showed traffic reaching the reject chain, then hitting the drop rule instead, then returning to rejection after removal. The client gave the same error each time. If the drop counter stays flat, check both interfaces, the address and earlier rules. Test a permitted service too. Remove the test rule, apply and repeat to verify rollback.

Why does a deleted LuCI IP still match an OpenWrt firewall set?

Explore hardware

Comments