Giter Site home page Giter Site logo

elghazal-a / autowire Goto Github PK

View Code? Open in Web Editor NEW
203.0 203.0 19.0 44 KB

Automatically configure Wireguard interfaces in distributed system. It supports Consul as backend.

License: Mozilla Public License 2.0

Dockerfile 1.05% Makefile 0.58% Go 98.37%
consul devops networking security vpn wireguard

autowire's People

Contributors

elghazal-a avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

autowire's Issues

Rebind Consul to wireguard interface

First off congratulations on execution of a genius idea.
I was looking for a solution to exactly that problem.

One minor feature that I would like to see added would be to no also autoconfigure wireguard via consul but also move all consul instances over to the new wireguard network.

Is this even possible or would this create a chicken-egg problem where one relies on the other?

health check failed when runnnig autowire

error messages

chchang@warp:~$ ./autowire -wg-endpoint-ip 123.123.123.123 -wg-range 192.168.10.0/24 -wg-config-folder /tmp/wireguard -wg-port 12000
2021/08/04 10:34:31 INFO: Connecting to consul 127.0.0.1:8500
2021/08/04 10:34:31 ERROR: health check failed for 127.0.0.1:8500
2021/08/04 10:34:31 FATAL: Get "http://127.0.0.1:8500/v1/health/state/any": dial tcp 127.0.0.1:8500: connect: connection refused

why connect to tcp port 8500 ??

Add SAML support

Using Okta/O365/Google with rotating keys is a lot more secure than sharing static keys.

Thank you!

Wireguard PostDown

Autowire doesn't have an option to submit "PostDown" commands.

Server Config

[Interface]
Address = 10.200.200.1/24
ListenPort = 51820
PrivateKey = SERVER_PRIVATE_KEY

PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.