Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(windows-client): clear Firezone-specific DNS rules at startup #4918

Merged
merged 32 commits into from May 13, 2024

Conversation

ReactorScram
Copy link
Collaborator

@ReactorScram ReactorScram commented May 8, 2024

Closes #4899

This has a known gap where theoretically the GUI could sign in while the service is hung in startup, and then the service would wipe out the GUI's DNS rules.

The workaround for that would be to restart the GUI, but in practice I think the gap will not be hit, and it will go away once #3712 is done anyway.

I tested it manually once using the reproduction steps from #4899 and it worked.

I'm going to want a well-known dir that the Windows IPC service writes logs to,
and that the Windows GUI can pick them up from.

I don't know how I did this for Linux last week, but it should probably be in
here too.
This has a known gap where theoretically the GUI could sign in while the
service is hung in startup, and then the service would wipe out the GUI's
DNS rules.

The workaround for that would be to restart the GUI, but in practice I think
this is almost impossible, Windows would have to give the service no CPU time
while the user was signing in, then the user would have to immediately open
Firezone before the service got running.

Closes #4899
@ReactorScram ReactorScram added area/windows_client Issues related to the Windows client area/tauri_client The Windows and Linux Tauri GUI clients labels May 8, 2024
@ReactorScram ReactorScram requested a review from jamilbk May 8, 2024 16:32
@ReactorScram ReactorScram self-assigned this May 8, 2024
Copy link

vercel bot commented May 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2024 2:41pm

@github-actions github-actions bot added the kind/bug Something isn't working label May 8, 2024
@ReactorScram ReactorScram linked an issue May 8, 2024 that may be closed by this pull request
Copy link

github-actions bot commented May 8, 2024

Terraform Cloud Plan Output

Plan: 15 to add, 15 to change, 15 to destroy.

Terraform Cloud Plan

Copy link

github-actions bot commented May 8, 2024

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 240.6 MiB (-0%) 242.5 MiB (-1%) 337 (-24%)
direct-tcp-server2client 239.9 MiB (+0%) 241.0 MiB (-0%) 323 (-10%)
relayed-tcp-client2server 231.3 MiB (+3%) 232.2 MiB (+3%) 217 (-16%)
relayed-tcp-server2client 238.9 MiB (+3%) 239.5 MiB (+3%) 551 (+64%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 500.0 MiB (-0%) 0.04ms (+82%) 41.68% (-4%)
direct-udp-server2client 499.9 MiB (-0%) 0.02ms (+104%) 22.17% (+10%)
relayed-udp-client2server 500.0 MiB (+0%) 0.03ms (+77%) 54.23% (-2%)
relayed-udp-server2client 500.0 MiB (-0%) 0.03ms (-44%) 42.74% (+17%)

Copy link
Member

@jamilbk jamilbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, lgtm

@ReactorScram ReactorScram marked this pull request as ready for review May 8, 2024 17:42
Base automatically changed from chore/windows-service-poc to main May 13, 2024 14:32
@ReactorScram ReactorScram added this pull request to the merge queue May 13, 2024
Merged via the queue into main with commit dadaeb0 May 13, 2024
135 checks passed
@ReactorScram ReactorScram deleted the fix/windows-dns-4899 branch May 13, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tauri_client The Windows and Linux Tauri GUI clients area/windows_client Issues related to the Windows client kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(windows): NRPT DNS rules sometimes persist after reboot
2 participants