From 624756dec97599f32afe125a7ec312ab08579435 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 9 Feb 2022 08:41:34 +0100 Subject: [PATCH] modif script --- ansible/roles/doku/tasks/main.yml | 4 +- wireguard/truc.sh | 6687 ----------------------------- 2 files changed, 2 insertions(+), 6689 deletions(-) delete mode 100644 wireguard/truc.sh diff --git a/ansible/roles/doku/tasks/main.yml b/ansible/roles/doku/tasks/main.yml index ea406d9..eb6c8bb 100644 --- a/ansible/roles/doku/tasks/main.yml +++ b/ansible/roles/doku/tasks/main.yml @@ -6,7 +6,7 @@ - name: Extraction archive unarchive: src: /tmp/dokuwiki-stable.tgz - dest: /var/www/html/ + dest: /var/www/html remote_src: yes - name: stat rept @@ -16,7 +16,7 @@ - name: Renommage de dokuwiki-stable command: mv /var/www/html/dokuwiki-2020-07-29 /var/www/html/doku - when: not rept_stat.stat.exists + when: rept_stat.stat.exists - name: Droit root recursive file: diff --git a/wireguard/truc.sh b/wireguard/truc.sh deleted file mode 100644 index c5890f2..0000000 --- a/wireguard/truc.sh +++ /dev/null @@ -1,6687 +0,0 @@ -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=192.168.1.81 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -#!/bin/bash -set -u -set -e - -AddressAwg=10.0.0.1/32 # Adresse VPN Wireguard extremite A -EndpointA=10.121.38.68 # Adresse extremite A -PortA=51820 # Port ecoute extremite A -AddressBwg=10.0.0.2/32 # Adresse VPN Wireguard extremite B -EndpointB=192.168.1.82 # Adresse extremite B -PortB=51820 # Port ecoute extremite B - -umask 077 ; -wg genkey > endpoint-a.key -wg pubkey < endpoint-a.key > endpoint-a.pub - -wg genkey > endpoint-b.key -wg pubkey < endpoint-b.key > endpoint-b.pub - -PKA=$(cat endpoint-a.key) -pKA=$(cat endpoint-a.pub) -PKB=$(cat endpoint-b.key) -pKB=$(cat endpoint-b.pub) - -cat < wg0-a.conf -# local settings for Endpoint A -[Interface] -PrivateKey = $PKA -Address = $AddressAwg -ListenPort = $PortA - -# remote settings for Endpoint B -[Peer] -PublicKey = $pKB -#Endpoint = ${EndpointB}:$PortB -AllowedIPs = $AddressBwg -FINI - - -cat < wg0-b.conf -# local settings for Endpoint B -[Interface] -PrivateKey = $PKB -Address = $AddressBwg -ListenPort = $PortB - -# remote settings for Endpoint A -[Peer] -PublicKey = $pKA -Endpoint = ${EndpointA}:$PortA -AllowedIPs = $AddressAwg -FINI -