Skip to content

feat: implement split tunneling for Windows#157

Open
Ishant5436 wants to merge 1 commit into
MathNodes:2.0-Windowsfrom
Ishant5436:feat/split-tunneling
Open

feat: implement split tunneling for Windows#157
Ishant5436 wants to merge 1 commit into
MathNodes:2.0-Windowsfrom
Ishant5436:feat/split-tunneling

Conversation

@Ishant5436

Copy link
Copy Markdown

Implementation of split tunneling functionality for the Windows client utilizing native PowerShell firewall rules.

Implementation Details

  • Introduces SplitTunnel helper utilizing New-NetFirewallRule via gsudo for fine-grained per-app outbound filtering on the VPN interface.
  • Wires split tunneling initialization into src/cli/wallet.py on successful connection establishment.
  • Integrates rule cleanup into src/cli/sentinel.py upon disconnection.
  • Adds Split Tunneling toggle and Whitelist Apps dialog in SettingsScreen to allow user configuration of permitted executable paths.
  • Unit tests added to verify PowerShell command structures and cross-platform safety.

Validates cleanly across Windows and non-Windows targets.

- Added SplitTunnel helper using New-NetFirewallRule
- Updated wallet.py to apply split tunneling on connect
- Updated sentinel.py to remove split tunneling on disconnect
- Added UI toggle and whitelist dialog to SettingsScreen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant