commit 1fd09194d4ad8027563afd308dd0be43726aa1ac Author: ducoterra Date: Mon Dec 2 14:09:54 2019 -0500 init diff --git a/addclient.sh b/addclient.sh new file mode 100644 index 0000000..9565991 --- /dev/null +++ b/addclient.sh @@ -0,0 +1,5 @@ +echo Peer Pubkey: +read pubkey +echo Matching end of IP \(10.10.0.?\): +read ip +wg set wg0 peer $pubkey allowed-ips 10.10.0.$ip/32,fd86:ea04:1111::$ip/128 \ No newline at end of file diff --git a/client.conf b/client.conf new file mode 100644 index 0000000..bf34652 --- /dev/null +++ b/client.conf @@ -0,0 +1,9 @@ +[Interface] +PrivateKey = +Address = 10.10.0./32, fd86:ea04:1111::/128 +DNS = 3.14.3.2,3.14.3.3 + +[Peer] +PublicKey = +Endpoint = wireguard.ducoterra.net:51820 +AllowedIPs = 0.0.0.0/0, ::/0 \ No newline at end of file diff --git a/genkey.sh b/genkey.sh new file mode 100644 index 0000000..a315d96 --- /dev/null +++ b/genkey.sh @@ -0,0 +1,6 @@ +echo Client Name: +read name +mkdir $name +cd $name +wg genkey | tee $name"_privkey" | wg pubkey | tee $name"_pubkey" +cp ../client.conf $name".conf" \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..162669e --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list +printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable +apt update +apt install -y wireguard qrencode + +privkey=wg genkey | tee "privatekey" | wg pubkey | tee "publickey" +echo <