gomesh

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 1 Imported by: 0

README

Release Go project

gomesh

Alpha state

This software is yet in alpha state, please use it with caution.

Introduction

gomesh generates peer configuration files for WireGuard mesh networks.

Installation

Just copy a released binary to a directory and run it.

Detailed Usage

You may refer to the program's help page for usages. Use the -h switch or the --help switch to print the help page.

$ gomesh -h
This little tool will generate and manage configuration files for Wireguard Mesh VPNs.

Usage:
  gomesh [command]

Available Commands:
  add         Add or update a peer to/in the registry
  del         Delete a peer from registry
  generate    Generate configs
  help        Help about any command
  show        Print a table with the peers

Flags:
  -d, --database string   database file (default is database.json) (default "database.json")
  -h, --help              help for gomesh
  -v, --version           version for gomesh

Use "gomesh [command] --help" for more information about a command.

You can get help with the commands

$./gomesh add -h
Wil add a peer to the registry or update

Usage:
  gomesh add [flags]

Flags:
  -a, --address strings        Address of the server. (Required)
      --allowedips strings     additional allowed IP addresses
      --dns string             DNS server
  -e, --endpoint string        The peer's endpoint
  -f, --fwmark int             Mark the outgoing packets with
  -h, --help                   help for add
  -l, --listenport int         Port to listen on, default 51820 (default 51820)
  -m, --mtu int                Server interface MTU
  -n, --name string            endpoint. (Required)
      --postDown string        Command to run after bringing the interface DOWN
      --postUP string          Command to run after bringing the interface UP
      --preDown string         Command to run before bringing the interface DOWN
      --preUP string           Command to run before bringing the interface UP
  -p, --privatekey string      private key of server interface (if none given one will be generated
  -r, --routing_table string   Server routing table
  -s, --saveconfig             Save config between reboots
  -u, --update                 Update Peer if existing.

Global Flags:
  -d, --database string   database file (default "database.json")

License

Licensed under the MIT license

https://opensource.org/licenses/MIT

(C) 2021 JPI Technologies Ltd

Credits

This project is inspired by wg-meshconf by k4yt3x

Documentation

Overview

Copyright © 2021 JPI Technologies Ltd <oss@jpi.io>

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL