Comments (8)
Hi @teon
Would it be possible to have a link to that roadmap ? I couldn't find it on github. Is it public ?
Best,
Ange
from wireguard-rs.
Right now we do not support pre-shared key, but we will put this on the roadmap.
from wireguard-rs.
fwiw i'm using this as a workaround at the moment:
let mut file = NamedTempFile::new()?;
writeln!(file, "{}", preshared_key.to_string());
let path = file.into_temp_path();
println!("wrote psk to file {:#?}", path);
let output = std::process::Command::new("wg")
.args(["set", interface_name, "peer", &peer_public_key.to_string(), "preshared-key", path.to_str().unwrap()])
.output()?;
path.close()?;
from wireguard-rs.
Hey @master-hax ,
Thank you for the work around.
Unfortunately I can't write on the disk and I can't process command from the binary due to security reasons, so I guess I'll have to wait for @wojcik91 to implement it.
Best,
Ange
from wireguard-rs.
Hi @Ange-Cesari & @master-hax!
I did not have time to look into this yet, but from what I know the Peer
struct already includes an optional preshared_key
field.
Did you try it out?
from wireguard-rs.
Hi @Ange-Cesari & @master-hax!
I did not have time to look into this yet, but from what I know thePeer
struct already includes an optionalpreshared_key
field.Did you try it out?
Yes I've tried it out.
The key passed to the struct is persisted and looks like it gets applied when the interface configuration is read back.
However, if we double-check the peer with wg show
we can see that the preshared key is not set.
from wireguard-rs.
Hey, @wojcik91
I tried too,
It seems it's not a structure issue, it's an interface configuration issue and more like how are applied the different fields
from wireguard-rs.
Hi.
There was indeed a bug in Linux implementation. Should be resolved now by #21. I'll make a new patch release shortly.
from wireguard-rs.
Related Issues (20)
- Add Windows support for defguard client HOT 4
- Wireguard-rs on crates.io HOT 1
- How work write and delete peer ? HOT 3
- Can clone trait cause damage to host and WGApi ? HOT 3
- OS Error 19 with defguard_wireguard_rs 0.2.0 from crates.io for the server example HOT 1
- Unable to change existing WireGuard interface address on Linux HOT 1
- Sequence of creating peers and host blurry HOT 3
- Mutiple allowed ips not working in peer (wg show) HOT 1
- Enrich example with how to use preshared key inside the server.rs
- Route adding when creating the interface not working
- Mandatory steps for configuring the peer ?
- Clone trait for the WGApi ? HOT 1
- Release wireguard-rs 0.3
- After disconnecting DNS rules are not removed
- Release wireguard_rs 0.3.1
- Provide Example for presharedkey implementation HOT 1
- Update README Wireguard-RS with Windows
- Remove sensitive info from debug logs on Windows
- Add option to set MTU
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wireguard-rs.