webmesh

module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: Apache-2.0

README

Webmesh

Go Report Card Build and Tests

Webmesh is a simple, distributed, and zero-configuration WireGuard™ mesh solution for Linux, FreeBSD, macOS, and Windows. It allows for easily creating a mesh network between multiple hosts, and provides a simple API for managing the network. It is designed to be easy to use, and to work well with existing network infrastructure. For a more detailed introduction and extended documentation, please see the project website.

This repository contains the core functionality of the Webmesh Project. It implements the Webmesh API in Go.

This project is not yet ready for production use, but I hope to rapidly get there. For now, expect backwards-incompatible changes.

Getting Started

Detailed instructions can be found in the Getting Started guide on the project website. For examples of different topologies and the various features available, see the examples directory.

If you'd like to play with the project on Kubernetes, there is a work-in-progress Operator in the operator repository. It works fine on most clusters, including ephemeral docker-based ones, but is not yet ready for production use.

Building

The Makefile contains several targets for building the project. You can run make help to see all the available targets.

Roadmap

  • GUI Application. In the works over here.
  • Potential SaaS offering for those who don't want to run their own controllers or have a simple off-site backup of the mesh state.

Most other functionality that is provided by other similar projects already exists in the kernel or in other projects. For example, NAT64 and DNS64 have several ways of being configured, but could still be seen as a potential common use-case. There is a question as to how many of those things should be "auto-configured" by a node and how much should be left up to the user.

Contributing

Contributions are welcome and encouraged. Please see the contributing docs for more information.

Community

Join me in the webmesh channel on the Gophers Slack.

Special Thanks

The developers of rqlite for inspiration on managing a distributed database.

The incredible work done by the pion team for WebRTC in Go.

WireGuard is a registered trademark of Jason A. Donenfeld.

Support

Directories

Path Synopsis
cmd
webmesh-node
Entrypoint for webmesh nodes.
Entrypoint for webmesh nodes.
wmctl
Entrypoint for wmctl command.
Entrypoint for wmctl command.
examples
remote-server-plugin
This is an example plugin that runs as a remote server.
This is an example plugin that runs as a remote server.
hack
pkg
campfire
Package campfire implements the "camp fire" protocol.
Package campfire implements the "camp fire" protocol.
cmd/ctlcmd
Package ctlcmd contains the wmctl CLI tool.
Package ctlcmd contains the wmctl CLI tool.
cmd/ctlcmd/config
Package config contains the wmctl CLI tool configuration.
Package config contains the wmctl CLI tool configuration.
cmd/ctlcmd/connect
Package connect contains an implementation of the connect subcommand.
Package connect contains an implementation of the connect subcommand.
cmd/ctlcmd/pki
Package pki contains an interface for managing the PKI for a cluster using mTLS.
Package pki contains an interface for managing the PKI for a cluster using mTLS.
cmd/nodecmd
Package nodecmd contains the entrypoint for webmesh nodes.
Package nodecmd contains the entrypoint for webmesh nodes.
cmd/nodecmd/global
Package global provides global configurations that can override others.
Package global provides global configurations that can override others.
context
Package context provides facilities for storing and retrieving values from context objects.
Package context provides facilities for storing and retrieving values from context objects.
mesh
Package mesh contains the mesh store and related interfaces.
Package mesh contains the mesh store and related interfaces.
meshbridge
Package meshbridge contains a wrapper interface for running multiple mesh connections in parallel and sharing routes between them.
Package meshbridge contains a wrapper interface for running multiple mesh connections in parallel and sharing routes between them.
meshdb
Package meshdb contains the schemas, generated code, and interfaces for interacting with the mesh database.
Package meshdb contains the schemas, generated code, and interfaces for interacting with the mesh database.
meshdb/networking
Package networking contains interfaces to the database models for Network ACLs and Routes.
Package networking contains interfaces to the database models for Network ACLs and Routes.
meshdb/peers
Package peers contains an interface for managing nodes in the mesh.
Package peers contains an interface for managing nodes in the mesh.
meshdb/raftlogs
Package raftlogs provides facilities for applying raft logs to a database.
Package raftlogs provides facilities for applying raft logs to a database.
meshdb/rbac
Package rbac contains interfaces to the database models for RBAC.
Package rbac contains interfaces to the database models for RBAC.
meshdb/snapshots
Package snapshots provides an interface for managing raft snapshots.
Package snapshots provides an interface for managing raft snapshots.
meshdb/state
Package state provides an interface for querying mesh state.
Package state provides an interface for querying mesh state.
net
net/datachannels
Package datachannels provides a WebRTC data channel API for port forwarding.
Package datachannels provides a WebRTC data channel API for port forwarding.
net/mesh
Package mesh contains helpers for computing networking information from the mesh.
Package mesh contains helpers for computing networking information from the mesh.
net/nat64
Package nat64 provides a stateless bi-directional NAT64 implementation.
Package nat64 provides a stateless bi-directional NAT64 implementation.
net/system
Package system contains utilities for managing network interfaces on the system.
Package system contains utilities for managing network interfaces on the system.
net/system/dns
Package dns contains utility functions for DNS.
Package dns contains utility functions for DNS.
net/system/firewall
Package firewall contains an interface for interacting with the system firewall.
Package firewall contains an interface for interacting with the system firewall.
net/wireguard
Package wireguard contains utilities for working with wireguard interfaces.
Package wireguard contains utilities for working with wireguard interfaces.
plugins
Package plugins contains the interface for using plugins to extend the functionality of the node.
Package plugins contains the interface for using plugins to extend the functionality of the node.
plugins/builtins
Package builtins contains the built-in plugin implementations.
Package builtins contains the built-in plugin implementations.
plugins/builtins/basicauth
Package basicauth is an authentication plugin that uses basic auth.
Package basicauth is an authentication plugin that uses basic auth.
plugins/builtins/debug
Package debug implements a plugin that exposes an HTTP server for debugging purposes.
Package debug implements a plugin that exposes an HTTP server for debugging purposes.
plugins/builtins/ipam
Package ipam provides a plugin for simple mesh IPAM.
Package ipam provides a plugin for simple mesh IPAM.
plugins/builtins/ldap
Package ldap implements a basic LDAP authentication plugin.
Package ldap implements a basic LDAP authentication plugin.
plugins/builtins/mtls
Package mtls is an authentication plugin that uses mTLS.
Package mtls is an authentication plugin that uses mTLS.
plugins/clients
Package clients contains the interface for using plugin clients.
Package clients contains the interface for using plugin clients.
plugins/plugindb
Package plugindb contains a SQL driver for running data queries over a Plugin Query stream.
Package plugindb contains a SQL driver for running data queries over a Plugin Query stream.
raft
Package raft contains Raft consensus for WebMesh.
Package raft contains Raft consensus for WebMesh.
services
Package services contains the gRPC server for inter-node communication.
Package services contains the gRPC server for inter-node communication.
services/admin
Package admin provides the admin gRPC server.
Package admin provides the admin gRPC server.
services/campfire
Package campfire provides the campfire service to webmesh clients.
Package campfire provides the campfire service to webmesh clients.
services/dashboard
Package dashboard contains a service that serves a web dashboard.
Package dashboard contains a service that serves a web dashboard.
services/leaderproxy
Package leaderproxy provides a gRPC interceptor that proxies requests to the leader node.
Package leaderproxy provides a gRPC interceptor that proxies requests to the leader node.
services/meshapi
Package meshapi contains the webmesh Mesh API service.
Package meshapi contains the webmesh Mesh API service.
services/meshdns
Package meshdns contains the Mesh DNS server.
Package meshdns contains the Mesh DNS server.
services/node
Package node contains the webmesh node service.
Package node contains the webmesh node service.
services/peerdiscovery
Package peerdiscovery contains the webmesh PeerDiscovery API service.
Package peerdiscovery contains the webmesh PeerDiscovery API service.
services/rbac
Package rbac contains utilities for evaluating requests against roles.
Package rbac contains utilities for evaluating requests against roles.
services/turn
Package turn contains the STUN/TURN server.
Package turn contains the STUN/TURN server.
services/webrtc
Package webrtc contains the webmesh WebRTC service.
Package webrtc contains the webmesh WebRTC service.
storage
Package storage contains the interface for storing and retrieving data about the state of the mesh.
Package storage contains the interface for storing and retrieving data about the state of the mesh.
version
Package version contains compile-time version information.
Package version contains compile-time version information.

Jump to

Keyboard shortcuts

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