Questions tagged [wireguard]

WireGuard is an open-source software application and protocol that implements virtual private network techniques to create secure point-to-point connections in routed or bridged configurations. It is run as a module inside the Linux kernel and aims for better performance than the IPsec and OpenVPN tunneling protocols.

Features WireGuard aims to provide a VPN that is both simple and highly effective. A review by ars technica observed that popular VPN technologies such as OpenVPN and IPSEC are often complex to set up, disconnect easily (in the absence of further configuration), take substantial time to negotiate reconnections, may use outdated ciphers, and have relatively massive code (400,000 to 600,000 lines of code for the two examples given) which makes it harder to find bugs.

WireGuard's design seeks to reduce these issues, making the tunnel more secure and easier to manage by default. By using versioning of cryptography packages, it focuses on ciphers believed to be among the most secure current encryption methods, and also has a codebase of around 4000 lines, about 1% of either OpenVPN or IPSEC, making security audits easier. Ars technica reported that in testing, stable tunnels were easy to create with WireGuard, compared to alternatives, and commented that it would be "hard to go back" to long reconnection delays, compared to WireGuard's "no nonsense" instant reconnections.

73 questions
10
votes
2 answers

How do I get Wireguard-Android make file to function on Windows?

I'm trying to build the wireguard-android sources on my windows machine, fixing the problems step by step with trial and error. I have CMake and Make installed, the first problem I encountered was the 'bad' value reported by uname (mingw64), not…
Nick Cardoso
  • 20,807
  • 14
  • 73
  • 124
7
votes
4 answers

Wireguard-apple build failed with error: ExternalBuildToolExecution failed with a nonzero exit code

I'm using Go version 1.13, Mac Catalina, and Xcode 11.7 to build. The Xcode building process cannot be finished because of the following error. Command ExternalBuildToolExecution failed with a nonzero exit code: >ExternalBuildToolExecution…
Dennis Yang
  • 73
  • 1
  • 4
6
votes
2 answers

How to use wireguard tunnel library?

I want to create a third-party VPN app by using the library com.wireguard.android:tunnel (1.0.20211029) Can anyone help me to provide me any good resources or guide me? In my app I am importing .config file from file manager now how to connect that…
User0987
  • 91
  • 1
  • 6
4
votes
1 answer

Why different Wireguard private keys resulting in the same public key?

I discovered that different Wireguard private keys could result in the same public key. Under "different keys" I mean four last bits in a first byte of a private key are ignored during curve25519 calculation for a public one. I will appreciate if…
4
votes
0 answers

wireguard android library - Error UAPIOpen: ... permission denied

I'm trying to make android WireGuard client using com.wireguard.android:tunnel library. Client platform: Android Library: com.wireguard.android:tunnel (1.0.20211029) My app package name: com.example.hellowireguard Test devices: Nexus 5X WireGuard…
jaeyoi
  • 61
  • 2
3
votes
1 answer

How do I get the path to SPM when I perform a archive?

I am now trying to use WireGuardKit, where it asks to create an "External Build System" and fill in the Directory with ${BUILD_DIR}/... /... /SourcePackages/checkouts/wireguard/Sources/WireGuardKitGo (this path has been modified and I guarantee that…
Rakuyo
  • 390
  • 3
  • 15
2
votes
1 answer

WireGuard-apple build problem with Xcode 15 (beta)

Building my Wireguard-Apple project with latest Xcode 15 Beta release leads to some build issue. It looks like the problem appears when building the target WireguardNetworkExtensionsmasOs (same for target WireguardNetworkExtensionsiOS). Using the…
Daniel
  • 21
  • 3
2
votes
1 answer

macOS VPN Network Extension Fails to Start

I'm trying to create a macOS VPN networks extension. It utilizes Wireguard via this library. My issue is that I cannot actually seem to get the extension to connect to the VPN - I can't toggle this at all: These are logs I get: Bundle ID for the…
narner
  • 2,908
  • 3
  • 26
  • 63
2
votes
0 answers

Secure tunneling from only users space python?

I want to create a micro-VPN like environment where users can run and manage HPC applications from strictly python. The servers running the commands on the HPC systems should only ever talk to the user's host python script, and should be firewalled…
2
votes
0 answers

Couldn't find a suitable constructor for class TunnelData to initialize with {}, null, null, null

i just try project https://github.com/tark/wireguard-flutter-poc when running debug its good but if running release showing error Couldn't find a suitable constructor for class TunnelData to initialize with {}, null, null, null this code class…
2
votes
0 answers

Could not bind wireguard address when starting postgresql

I'm running wg-quick.service on system startup to establish a VPN tunnel: root@db ~ # cat /usr/lib/systemd/system/wg-quick@.service [Unit] Description=WireGuard via wg-quick(8) for %I After=network-online.target…
Andrei
  • 1,313
  • 4
  • 18
  • 35
1
vote
0 answers

K3S Traefik only reachable via Wireguard VPN

I have a vServer rented that i want to use as a tool server for my private projects. I have installed wireguard (Wireguard should be the only service reachable from the outsite) and set up ufw (Blocking everything except Wireguard). I have installed…
1
vote
0 answers

How to set up a wireguard VPN tunnel programmatically (in C)?

I'm trying to set up a new wireguard client and create a new VPN tunnel with the server (10.6.0.1) programmatically by using this single file C library https://git.zx2c4.com/wireguard-tools/tree/contrib/embeddable-wg-library wirguard.h. Following…
Sanka Don
  • 11
  • 1
1
vote
0 answers

WireGuard Android client not building

When building the client gives the following error: arghandling.c 'stdlib.h' file not found [x86_64] I understand that it does not see the header files of the C++ standard libraries. Reading official instructions did not help. SDK 33.0.2, NDK…
Cmig
  • 11
  • 3
1
vote
1 answer

Integrating WireGuard into Swift macOS App

I'm attempting to integrate the wireguard-apple package into my macOS Xcode project. enter link description here. I've followed the instructions in the README, but I keep getting this error when building the project: This is how I have the project…
narner
  • 2,908
  • 3
  • 26
  • 63
1
2 3 4 5