[Networkmanager] Implementing a NetworkManager VPN Plugin in Rust

amidamaru rookie ardtimeit at gmail.com
Tue Dec 5 16:56:35 UTC 2023


Thanks for your advice. I will play some code first based on
your suggestion and check networkmanager code for adding new type before
submitting a MR.

Cheers,

Vào Th 3, 5 thg 12, 2023 vào lúc 23:38 Frédéric Martinsons <
frederic.martinsons at gmail.com> đã viết:

> I don't think it is possible without patching the networkmanager code
> itself. You should look at how these kind of type are defined in
> nmcli/libnm code base and possibly submit a merge request to add a new
> rosenpass one.
>
> Le mar. 5 déc. 2023, 17:33, amidamaru rookie <ardtimeit at gmail.com> a
> écrit :
>
>> Thanks for your reference links, I will check them out.
>> For nmcli integration, the only thing I have no idea is the value of
>> *type* must be known.
>> So as my example above:
>> nmcli con import *type* rosenpass file /data/rp.conf
>> the value of type is "rosenpass".
>> Is there any way to add this new value ?
>>
>> Thank you,
>>
>> Vào Th 3, 5 thg 12, 2023 vào lúc 23:16 Frédéric Martinsons <
>> frederic.martinsons at gmail.com> đã viết:
>>
>>> Maybe you can take a look at https://crates.io/crates/networkmanager
>>> which uses nm dbus api.
>>>
>>> You may also want to look at gtk-rs project (https://gtk-rs.org/) to
>>> find inspiration.
>>>
>>>
>>>
>>> On Tue, 5 Dec 2023 at 17:12, amidamaru rookie <ardtimeit at gmail.com>
>>> wrote:
>>>
>>>> Hi team,
>>>>
>>>> Currently I'm implementing a Rosenpass <https://rosenpass.eu/> NM
>>>> Plugin in Rust.
>>>> I cannot find much information about this except the VPN support page
>>>> <https://networkmanager.dev/docs/vpn/> - but most of the projects
>>>> there were written in C.
>>>> The only reference I can find is this repository
>>>> <https://github.com/manuels/wg-p2p-nm-plugin>.
>>>> But after all these years, the NetworkManager codebase won't have this
>>>> shared
>>>> <https://github.com/manuels/wg-p2p-nm-plugin/tree/master/src/shared>
>>>> directory anymore.
>>>> So now, my question is where can I collect these files from the current
>>>> NM codebase? Also,
>>>> Besides the GUI (editor dialog) part, I want to integrate Rosenpass
>>>> into nmcli also.
>>>> For example, after integration, I can do something like this:
>>>> nmcli con import type rosenpass file /data/rp.conf
>>>>
>>>> Could you please give some advice on this?
>>>>
>>>> Thank you,
>>>> --
>>>> Đinh Thảo_PTIT's student - *ardtimeit at gmail.com <ardtimeit at gmail.com>*
>>>>
>>>
>>
>> --
>> Đinh Thảo_PTIT's student - *ardtimeit at gmail.com <ardtimeit at gmail.com>*
>>
>

-- 
Đinh Thảo_PTIT's student - *ardtimeit at gmail.com <ardtimeit at gmail.com>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/networkmanager/attachments/20231205/9206a21c/attachment.htm>


More information about the Networkmanager mailing list