forked from tildeverse/net
update peers and quote values in update script
This commit is contained in:
parent
305e74d8dd
commit
f862868e06
|
@ -22,8 +22,8 @@ Endpoint = thebackupbox.net:1017
|
|||
# tilde.team
|
||||
[Peer]
|
||||
PublicKey = 1kTCrkiu8j2hV1pa2TXtDvWFXZja9dvFyVsVbCUkrE0=
|
||||
AllowedIPs = 10.0.0.48/32
|
||||
Endpoint = 51.79.32.48:54224
|
||||
AllowedIPs = 10.0.0.65/32
|
||||
Endpoint = 167.114.7.65:54224
|
||||
|
||||
# radiofreqs.space
|
||||
[Peer]
|
||||
|
@ -35,7 +35,7 @@ Endpoint = 149.248.19.232:51820
|
|||
[Peer]
|
||||
PublicKey = OTp3CLRBXeECB0gEnDr2btL07Fs3am5eb5x7gf1LtEc=
|
||||
AllowedIPs = 10.0.0.27/32
|
||||
Endpoint = 149.28.186.154:764
|
||||
Endpoint = 139.99.134.13:764
|
||||
|
||||
# You need to contact before adding your network to TildeNet.
|
||||
# You can find us at [ #tildenet on irc.tilde.chat] otherwise
|
||||
|
|
10
peers_update
10
peers_update
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
###########################################################################
|
||||
#
|
||||
|
@ -20,12 +20,12 @@ HEADER_SRC="/root/wg_header"
|
|||
# You can point this direct to your wg-conf, or you can cron something else. Your call
|
||||
WG_CONF="/etc/wireguard/wg0.conf"
|
||||
|
||||
curl $PEERS_SRC > $TMP_PEERS
|
||||
curl "$PEERS_SRC" > "$TMP_PEERS"
|
||||
|
||||
cat $HEADER_SRC $TMP_PEERS > $WG_CONF
|
||||
cat "$HEADER_SRC" "$TMP_PEERS" > "$WG_CONF"
|
||||
|
||||
# Clean up our mess.
|
||||
rm $TMP_PEERS
|
||||
rm "$TMP_PEERS"
|
||||
|
||||
# Uncomment the below, and adjust it to your interface names...
|
||||
# wg-quick down wg-p2p
|
||||
|
@ -34,4 +34,4 @@ rm $TMP_PEERS
|
|||
# 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
|
||||
ping -c 1 10.0.0.65
|
||||
|
|
Loading…
Reference in New Issue