1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-04 23:40:26 +08:00
Go to file
2022-04-13 11:39:32 +08:00
2021-12-30 18:18:23 +08:00
2022-01-01 21:10:05 +08:00
2022-04-13 11:39:32 +08:00
2022-01-01 19:32:15 +08:00
2022-01-01 20:32:26 +08:00
2022-04-13 11:34:14 +08:00
2022-01-01 17:49:37 +08:00
2022-04-12 19:40:40 +08:00
2022-04-12 19:40:40 +08:00
2021-10-23 21:52:40 +08:00
fix
2021-12-31 19:47:52 +08:00
2022-04-12 19:40:40 +08:00
2022-01-01 23:25:57 +08:00

WireGold-Rikka

WireGold

Wire Golang Guard = WireGold

folder line count
config 43
gold 1025
helper 202
lower 159
upper 331
./ 194
total 1954

Usage

If you are running in windows, remember to select the wintun.dll of your arch in lower/wintun and place it alongside the compiled exe

wg [-c config.yaml] [-d|w] [-g] [-h] [-m mtu] [-p]

Instructions

  -c string
        specify conf file (default "config.yaml")
  -d    print debug logs
  -g    generate key pair
  -h    display this help
  -m int
        set the mtu of wg (default 32700)
  -p    show my publickey
  -w    only show logs above warn level
  • especially: in macos mojave, max value of mtu is 9159

Config file example

IP: 192.168.233.1
SubNet: 192.168.233.0/24
PrivateKey: 暲菉斂狧污爉窫擸紈卆帞蔩慈睠庮扝憚瞼縀
EndPoint: 0.0.0.0:56789
Peers:
  -
      IP: "192.168.233.2"
      SubNet: 192.168.233.0/24
      PublicKey: 徯萃嵾爻燸攗窍褃冔蒔犡緇袿屿組待族砇嘀
      EndPoint: 1.2.3.4:56789
      AllowedIPs: ["192.168.233.2/32"]
      KeepAliveSeconds: 0
      QueryList: ["192.168.233.3"]
      QuerySeconds: 10
      AllowTrans: false
  -
      IP: "192.168.233.3"
      SubNet: 192.168.233.0/24
      PublicKey: 牢喨粷詸衭譛浾蘹櫠砙杹蟫瑳叩刋橋経挵蘀
      EndPoint: ""
      AllowedIPs: ["192.168.233.3/32"]
      KeepAliveSeconds: 0
      AllowTrans: false
Languages
Go 98.4%
Dockerfile 0.9%
Shell 0.7%