Compare commits
No commits in common. "main" and "v0.0.4" have entirely different histories.
@ -1,12 +0,0 @@
|
|||||||
#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
|
|
@ -1,9 +0,0 @@
|
|||||||
#!/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
|
|
@ -1,12 +0,0 @@
|
|||||||
#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
|
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
sudo timedatectl set-timezone Europe/Paris
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y systemd-journal-remote
|
|
||||||
sudo systemctl enable --now systemd-journal-remote.socket
|
|
||||||
sudo cp /lib/systemd/system/systemd-journal-remote.service /etc/systemd/system
|
|
||||||
sudo sed -i 's/--listen-https=-3/--listen-http=-3/' /etc/systemd/system/systemd-journal-remote.service
|
|
||||||
[[ -d /var/log/journal/remote ]] || sudo mkdir /var/log/journal/remote
|
|
||||||
sudo chown systemd-journal-remote /var/log/journal/remote
|
|
||||||
sudo systemctl daemon-reload
|
|
Loading…
x
Reference in New Issue
Block a user