Skip to content

yury-sannikov/amnezia-wireguard-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

amnezia-wireguard-tools

An OpenWrt replacement of the wireguard-tools to enable user-space amnezia-wg protocol.

What is this?

This package is a replacement of the OpenWrt wireguard-tools package for the Amezia Wireguard protocol. It provides a modified wg(8) command which is capable of handling extra Amnezia-specific arguments.

Caution

Please note. This package is not compatible with the upcoming amnezia-wg kernel support.

Prerequisites

You have to install amnezia-wg first. There is no OpenWrt package for your disposal yet. You have to compile it on your own. Thanks to Go language it's pretty easy to do (well if you're handy with Go)

Tip

Change PreallocatedBuffersPerPool to 4096 in the amnezia-wg/device/queueconstants_default.go to avoid nasty OOM killer.

Installation

You have two options: If you're lucky, you may find a ready-made artifact for your platform here

If not, you have to build it from the source code If you're lucky, just unzip the artifact zip and copy the *.ipk file to your router then call opkg install <file_name>.ipk

Building using OpenWRT SDK

Well, it seems, you fall into the unlucky category.

There are two benefits:

  • you will learn how to build it from the source
  • you have a chance to make a PR against this repo to include your architecture and help others

Please make yourself familiar with the https://openwrt.org/docs/guide-developer/toolchain/using_the_sdk, especially, with the ccache issue.

Take a look at the amnezia-wireguard-tools/sdk_build.sh file. You will need to change the following:

  • RELEASE Change it from 23.05.0 to your OpenWRT router release
  • TARGET and SUBTARGET should match your router
  • GCC_VERSION should match whatever OpenWrt released

Run sdk_build.sh and grab some beer. Your .ipk will be located under the bin/packages/ folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published