A wireguard CLI helper tool
updated makefile
Updated build file to remove deprecated option
updated lock message to be in a more consistent style


browse  log 



You can also use your local clone with git send-email.


License builds.sr.ht status

WireGuard Helper

An interactive command line tool to help you bring wireguard connections up and down.



Simply run:

$ git clone https://git.sr.ht/~voidraven/wgh
$ cd wgh
$ sudo make install

# to uninstall
$ sudo make uninstall


$ wgh                             # start wgh in interactive mode
$ wgh -l                          # lock or unlock /etc/resolv.conf
$ wgh -s                          # show the connection status info
$ wgh -h                          # shows this help message
$ wgh -v                          # show the version info

#Video Example



The -l flag exists to address a bug I found on Void Linux where I was leaking DNS requests. NetworkManager can periodically overwrite the value in /etc/resolv.conf. The -l flag simply prevents that file from being modified while your tunnel is up.


  • test debian / freebsd / openbsd
  • test cleanup
  • -u and -d flags (up,down .conf)
  • blink1 integration

#License / Disclaimer

This project is licensed under the ISC license. (See LICENSE.md)