Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rust library providing unified WireGuard interface to native/kernel and userspace implementations

License

NotificationsYou must be signed in to change notification settings

DefGuard/wireguard-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

defguard

defguard_wireguard_rs is a multi-platform Rust library providing a unified high-level API for managing WireGuard interfaces using native OS kernel and userspace WireGuard protocol implementations.It can be used to create your ownWireGuard:tm: VPN servers or clients for secure and private networking.

It was developed as part ofdefguard security platform and used in thegateway/server as well asdesktop client.

Supported platforms

  • Native OS Kernel: Linux, FreeBSD (and pfSense/OPNSense), Windows
  • Userspace usingwireguard-go - Linux,macOS, FreeBSD

Unique features

  • Peer routing - seeWGApi docs.
  • ConfiguringDNS resolver - seeWGApi docs.
    • On FreeBSD network interfaces are managed usingioctl.
    • On Linux, handle network routing usingnetlink.
    • fwmark handling

Windows support

Please note thatWireGuard needs to be installed on Windows with commandswg andwireguard available to be called from the command line.

Note onwireguard-go

If you intend to use the userspace WireGuard implementation you should note that currently the library assumesthat thewireguard-go binary will be available at runtime. There are some sanity checks when instantiating the API,but installing it is outside the scope of this project.

Examples

Documentation

See thedocumentation for more information.

Community and Support

Find us on Matrix:#defguard:teonite.com

Contribution

Please review theContributing guide for information on how to get started contributing to the project. You might also find ourenvironment setup guide handy.

Built and sponsored by

build by teonite

Legal

WireGuard® isregistered trademarks of Jason A. Donenfeld.

About

Rust library providing unified WireGuard interface to native/kernel and userspace implementations

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors8


[8]ページ先頭

©2009-2025 Movatter.jp