4 Commits

Author SHA1 Message Date
4661866ca1 wg0.conf ap31-test 2023-11-30 15:02:28 +01:00
7e47f208a9 script wg0.conf 2023-11-30 14:45:31 +01:00
20a8e0e94e wg0 ap31-prod 2023-11-30 14:25:54 +01:00
fff6f809a0 script journald emmeteur 2023-11-30 14:17:01 +01:00
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
# usage : ./journald-snd.sh 10.0.0.1
#sudo timedatectl set-timezone Europe/Paris
#sudo apt-get update
#sudo apt-get install -y systemd-journal-remote
rpl="s/^# URL=/URL=http:\/\/${1}:19532/" # $1 represente l'adresse du recepteur
sudo sed -i "$rpl" /etc/systemd/journal-upload.conf
sudo systemctl enable --now systemd-journal-upload.service
sudo systemctl restart systemd-journal-upload.service

View File

@ -0,0 +1,12 @@
#Fichier wg0-c.conf
# local settings for Endpoint C
[Interface]
PrivateKey = iIMEJjirl1chq2kLfuO9G5f25cJrVbHgK+BgOiHTdUI=
Address = 10.0.0.3/32
ListenPort = 51820
# remote settings for Endpoint A
[Peer]
PublicKey = JkdGvyuNoJRKGF3Vc4OGgiY59WhROJfCDCwnyVgCmjs=
Endpoint = 10.121.38.35:51820
AllowedIPs = 10.0.0.1/32

View File

@ -0,0 +1,9 @@
#!/bin/bash
# usage : ./journald-snd.sh 10.0.0.1
#sudo timedatectl set-timezone Europe/Paris
#sudo apt-get update
#sudo apt-get install -y systemd-journal-remote
rpl="s/^# URL=/URL=http:\/\/${1}:19532/" # $1 represente l'adresse du recepteur
sudo sed -i "$rpl" /etc/systemd/journal-upload.conf
sudo systemctl enable --now systemd-journal-upload.service
sudo systemctl restart systemd-journal-upload.service

View File

@ -0,0 +1,12 @@
#Fichier wg0-b.conf
# local settings for Endpoint B
[Interface]
PrivateKey = WEFEtAFdTwClzY7/AGKW4k0LFqL4Gc4iKIdFYokUa0M=
Address = 10.0.0.2/32
ListenPort = 51820
# remote settings for Endpoint A
[Peer]
PublicKey = JkdGvyuNoJRKGF3Vc4OGgiY59WhROJfCDCwnyVgCmjs=
Endpoint = 10.121.38.35:51820
AllowedIPs = 10.0.0.1/32