Skip to content

BaiMeow/wireguard-mix

 
 

Repository files navigation

wireguard-mix

基于 wireguard-go,做了一些小修改,规避防火墙的检测。

暂时只做了一点点改动,但是满足需求了

  • 修改 Type 为随机 uint32 (暂时是静态的)

构建

需要 golang 1.20+

go build -o wireguard-mix

用法

这样子开接口:

wireguard-mix wg0

然后就可以用 wg(8)ip(8)ifconfig(8) 配置了

wg-quick-mix

为了方便使用, wg-quick 也给出了魔改, 位于项目根目录下

但是对 2020 及以前的 wg 会有一些适配问题,如果使用出现问题,可以尝试 apt upgrade

sudo apt update
sudo apt install -y wireguard-tools
sudo mv /usr/bin/wg-quick /usr/bin/wg-quick.bak
sudo cp wireguard-mix/wg-quick /usr/bin/wg-quick
sudo chmod +x /usr/bin/wg-quick

魔改版的 wg-quick 可以使用 WgBin 来选择 wireguard 实例,留空则与原版行为一致

[Interface]
ListenPort = port
PrivateKey = PrivateKey 
WgBin = wireguard-mix

WgBin 可以直接填写路径,也这样写先丢到 path 里去再玩

sudo cp wireguard-mix /usr/local/bin/

wireguard-go 的 License

Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

wireguard-go fork, some changes for escaping firewall

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 91.6%
  • Shell 8.1%
  • Other 0.3%