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

feat: Windows support #44

Merged
merged 94 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
8a21b5c
Fixed conditional formatting for windows
kchudy Dec 14, 2023
1a406fd
Added adapter configuration
kchudy Dec 14, 2023
48465d2
Brought adapter up after creating
kchudy Dec 14, 2023
d135a53
Integrate WireGuard
blazej-teonite Dec 22, 2023
0ea2433
Update wgapi_windows.rs
blazej-teonite Dec 22, 2023
15c2f24
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
8ec4ef9
Parse WireGuard config to read interface on Windows
blazej-teonite Dec 28, 2023
93e4459
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
829c0b1
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
7144140
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
81f9e19
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
c129edd
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
2ca88ae
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
e8d6d1b
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
7cd1f22
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
bd1b95f
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
e2af636
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
1dac93b
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
9d18945
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
e1bedbf
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
381ce49
Update utils.rs
blazej-teonite Dec 28, 2023
fa92260
Update wgapi_windows.rs
blazej-teonite Dec 28, 2023
b6858d9
Update utils.rs
blazej-teonite Dec 28, 2023
5b2185d
Update utils.rs
blazej-teonite Dec 28, 2023
2f8828c
Update utils.rs
blazej-teonite Dec 28, 2023
affcde2
Update utils.rs
blazej-teonite Dec 28, 2023
bf2b5bf
Update utils.rs
blazej-teonite Dec 28, 2023
81da8ba
Remove interface
blazej-teonite Dec 31, 2023
e6db2d9
Update wgapi_windows.rs
blazej-teonite Jan 1, 2024
e98c1be
Updated interface data fetch
blazej-teonite Jan 2, 2024
0d1c82c
Update wgapi_windows.rs
blazej-teonite Jan 2, 2024
c38b2a7
Update wgapi_windows.rs
blazej-teonite Jan 2, 2024
c6704c6
Update wgapi_windows.rs
blazej-teonite Jan 2, 2024
849a367
Update wgapi_windows.rs
blazej-teonite Jan 2, 2024
e12db3a
Pass DNS
blazej-teonite Jan 2, 2024
52a8e60
Wait for Wireguard tunnel to show up
blazej-teonite Jan 3, 2024
2d73639
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
6840066
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
281effd
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
ab3c284
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
529d1ba
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
9cc0733
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
d96371b
Added service installation error
blazej-teonite Jan 3, 2024
747be49
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
950db88
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
c5b7b67
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
2b7db71
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
bf47325
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
bc6b65c
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
4393fd1
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
beeaa25
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
61ecafe
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
0b2b05c
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
9e8f5b0
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
5a6ad90
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
88482b7
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
304c82f
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
973b904
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
f8dad74
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
969f194
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
6c9660a
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
c22daab
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
a59aa66
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
8d7bfce
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
24b5471
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
64bcecf
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
093fce1
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
a24f922
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
1fc7eb2
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
f382e4f
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
2cf9669
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
c781647
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
a43ab69
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
00fac0d
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
c28d09b
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
a88b605
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
26ca0ce
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
9af2ce8
Update wgapi_windows.rs
blazej-teonite Jan 3, 2024
7e2ed1c
Update wgapi.rs
blazej-teonite Jan 3, 2024
1e4702e
fix mac interface
Jan 3, 2024
2d8f314
Update wgapi_windows.rs
blazej-teonite Jan 4, 2024
5589d1d
Cleanup
blazej-teonite Jan 5, 2024
4e9b952
Merge branch 'main' into 8-add-windows-support-for-defguard-client
blazej-teonite Jan 5, 2024
5719851
Update userspace.rs
blazej-teonite Jan 5, 2024
5ada032
Removed wireguard-nt
blazej-teonite Jan 5, 2024
9af003b
Update wgapi_windows.rs
blazej-teonite Jan 6, 2024
5b09282
change target
Jan 9, 2024
dc3c6e5
cleanup
Jan 10, 2024
f7e5c13
cleanup
Jan 10, 2024
643659c
cleanup
Jan 10, 2024
96a0916
cleanup
blazej-teonite Jan 11, 2024
948fa02
Update wgapi.rs
blazej-teonite Jan 11, 2024
ad9e4a8
userspace available for unix
blazej-teonite Jan 11, 2024
679274a
cleanup
blazej-teonite Jan 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
.idea/
.vscode/
282 changes: 282 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"

[dev-dependencies]
env_logger = "0.10"
x25519-dalek = { version = "2.0", features = ["getrandom", "static_secrets"] }

[target.'cfg(target_os = "freebsd")'.dependencies]
Expand Down
3 changes: 3 additions & 0 deletions examples/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
peers: vec![peer],
};

#[cfg(not(windows))]
wgapi.configure_interface(&interface_config)?;
#[cfg(windows)]
wgapi.configure_interface(&interface_config, &[])?;
wgapi.configure_peer_routing(&interface_config.peers)?;

Ok(())
Expand Down
3 changes: 3 additions & 0 deletions examples/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Prepared interface configuration: {interface_config:?}");

// apply initial interface configuration
#[cfg(not(windows))]
wgapi.configure_interface(&interface_config)?;
#[cfg(windows)]
wgapi.configure_interface(&interface_config, &[])?;

// read current interface status
let host = wgapi.read_interface_data()?;
Expand Down
Loading