Skip to content

WireGuard helper script for building complex topologies (HUB/SPOKES) and using WireGuard with TCP stack

License

Notifications You must be signed in to change notification settings

suuhm/wireguard-help

Repository files navigation

wg-help_logo

WireGuard helper script for building complex topologies (HUB/SPOKES) and using WireGuard with TCP stack

Features

  • Installing / Deinstalling of wireguard on linux based os
  • Adding complex topologies like described in this article Multi-Hop WireGuard
  • Adding simply client P2P configs
  • Using wg UDP traffic though TCP thanks to udp2raw tunneling
  • Speedup traffic with speederv2
  • Using alternative VPN with tinyFECvpn
  • Run/Stop scripts
  • Windows Client helper batchfiles inkluded.

How to use

  1. Clone the script via
git clone https://github.com/suuhm/wireguard-help && cd wireguard-help
chmod +x wireguard-help.sh
  1. Run Script:
  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  ▒▒▒                                                       ▒▒▒
  ▒▒▒            W I R E G U A R D - H E L P                ▒▒▒
   ▒   ===================================================   ▒ 
   ▒  Wireguard admin and peer creator v0.2a (c) suuhm 2023  ▒ 
   ▒                                                         ▒ 
   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 

Error no Input. 

    Usage: ./wireguard-help.sh [Command] [Options] 
    Wireguard admin and peer creator v0.2a (c) suuhm 2023

    Commands:

        server [--add-config] [--udp-tcp-tunnel] [--start-wg]
        client [--add-config] [--udp-tcp-tunnel] [--start-wg]

    Options:

        --run-tinyvpn [--tcp-mode]
        --install-wg
        --run-wg
        --remove-wg
        --stop-wg
        --version
        --help

Examples

Installing wireguard on your system

./wireguard-help.sh --install-wg

Set up your wg hub/server

./wireguard-help.sh server --add-config

Set up first client peer

./wireguard-help.sh client --add-config

Set up UDP2RAW socket for using TCP on server and clientside

./wireguard-help.sh server --udp-tcp-tunnel
# On client pc
./wireguard-help.sh client --udp-tcp-tunnel

## When using Windows as client:
# Use the wg_help_udp2raw.bat and optional wg_help_speederv2.bat

Creating different toplogies:

Site Gateway as a Spoke:

sgas

source: procustodibus.com

  1. Create Server with ./wireguard-help.sh server --add-config --start-wg
  2. Follow instructions in script... todo

Connecting wireguard with wg-help-win.bat

Note

You need to install first the windows WireGuard version and run the batch file as Admin on Windows:

wg-help-win

All rights reserved 2023 (c) suuhm

Important

Let me know if you find some bugs and feature wishes and post an issue!

About

WireGuard helper script for building complex topologies (HUB/SPOKES) and using WireGuard with TCP stack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published