Skip to content

Add AllowIpForwarding option to skip boot-time IPFORWARD block (#425) - #2165

Merged
henrypp merged 1 commit into
henrypp:masterfrom
blacksheep25:allow-ip-forwarding
Oct 17, 2026
Merged

henrypp merged 1 commit into
henrypp:masterfrom
blacksheep25:allow-ip-forwarding

Conversation

@blacksheep25

@blacksheep25 blacksheep25 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Relates to #425.

Problem

With "Install boot-time filters" enabled, _wfp_createglobalfilters adds a block on FWPM_LAYER_IPFORWARD_V4/_V6 for traffic that has neither pass-through flag set. Because the filter is added while BFE is running, it is enforced right away, not only at boot, and stays active for as long as filters are enabled (netsh wfp show filters lists it). simplewall never adds a permit on the forward layer, so no app, service or user rule can allow forwarded traffic. That breaks Mobile Hotspot, Internet Connection Sharing and NAT'd VM switches.

Change

This adds an AllowIpForwarding config option, FALSE by default so behaviour is unchanged. When it's set, the two forward-layer block filters are skipped and the rest of the boot-time filters stay in place.

Testing

The public routine repo is older than master and 3.8.7, so neither builds against it. v3.8.5 does build against routine at 9e13573 (its release date), so I tested the same change there. The only difference is the 2-argument _r_config_getboolean (L"AllowIpForwarding", FALSE) that 3.8.5 uses.

On Windows 11 (build 26300), with Mobile Hotspot sharing wired Ethernet:

Build Boot-time filters AllowIpForwarding Windows Firewall (Private) Hotspot client internet
Official 3.8.7 On n/a On ❌
Patched 3.8.5 On true On ✅

netsh wfp show filters on the patched build confirms that simplewall's IPFORWARD_V4/V6 block filters are gone. Every other Internal\BlockBoottime filter is still installed, including the IPFORWARD permits for loopback. With Windows Firewall on, its own "Boot Time Filter" still blocks forwarding before the service starts, so forwarding is still blocked during startup.

Windows Firewall also has to be on for the upstream profile, otherwise forwarded packets are dropped with IPSEC_KERNEL_DROP / STATUS_DATA_NOT_ACCEPTED (details in #425). That's a separate requirement, and this PR doesn't address it.

Possible follow-up: a checkbox in settings next to "Install boot-time filters".

🤖 Generated with Claude Code

The boot-time filters include a block on FWPM_LAYER_IPFORWARD_V4/V6 for
traffic without the pass-through flags. Because the filter is added while
BFE is running, it is enforced immediately and stays active for as long as
filters are enabled. simplewall never adds a permit on the forward layer,
so no app, service or user rule can allow forwarded traffic, which breaks
Mobile Hotspot, Internet Connection Sharing and NAT'd VM switches (henrypp#425).

Add a config option (off by default, so behaviour is unchanged) that skips
just these two filters while keeping the rest of the boot-time filters.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@henrypp
henrypp merged commit 77e0091 into henrypp:master Oct 17, 2026
@henrypp

henrypp commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Possible follow-up: a checkbox in settings next to "Install boot-time filters".

aga

henrypp added a commit that referenced this pull request Oct 17, 2026
henrypp added a commit that referenced this pull request Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants