Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
20a8e0e94e | |||
fff6f809a0 |
9
Partie2/Wireguard/ap31-prod/journald-snd.sh
Normal file
9
Partie2/Wireguard/ap31-prod/journald-snd.sh
Normal 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
|
11
Partie2/Wireguard/ap31-prod/wg0.conf
Normal file
11
Partie2/Wireguard/ap31-prod/wg0.conf
Normal file
@ -0,0 +1,11 @@
|
||||
# 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
|
Reference in New Issue
Block a user