initial commit of this

This commit is contained in:
ubergeek 2019-09-12 21:19:00 -04:00
parent 04f271b4e9
commit b592d6ad18
1 changed files with 35 additions and 0 deletions

35
peers_update Normal file
View File

@ -0,0 +1,35 @@
###########################################################################
#
# $0 - No args
#
# This is alpha software. Use/test/please to be making fix, if applicable.
# Bug reports to ubergeek@thunix.net
#
###########################################################################
#!/bin/bash
PEERS_SRC="https://tildegit.org/tildeverse/net/raw/branch/master/peers.txt"
TMP_PEERS="/tmp/peers.txt"
# This file contains your private key. It should be in a secure location"
HEADER_SRC="/root/wg_header"
# You can point this direct to your wg-conf, or you can cron something else. Your call
WG_CONF="/root/wg-tmp.conf"
curl $PEERS_SRC > $TMP_PEERS
cat $HEADER_SRC $TMP_PEERS > $WG_CONF
# Clean up our mess.
rm $TMP_PEERS
# Uncomment the below, and adjust it to your interface names...
# wg-quick down wg-p2p
# wg-quick up wg-p2p
# We need this to activate the tunnel
ping -c 1 10.0.0.1
ping -c 1 10.0.0.5
ping -c 1 10.0.0.48