elghazal-a / autowire Goto Github PK
View Code? Open in Web Editor NEWAutomatically configure Wireguard interfaces in distributed system. It supports Consul as backend.
License: Mozilla Public License 2.0
Automatically configure Wireguard interfaces in distributed system. It supports Consul as backend.
License: Mozilla Public License 2.0
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?
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 ??
Using Okta/O365/Google with rotating keys is a lot more secure than sharing static keys.
Thank you!
is there any plan to support etcd as a backend?
Autowire doesn't have an option to submit "PostDown" commands.
[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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.