Здравствуйте!
Порядка полутора лет безпроблемно пользовался WireGuard, тут решил переустановить системы и столкнулся с какой то глупостью!
Ни на одной из двух машин не могу поднять Wireguard.
Делаю так:
Bash |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| sudo add-apt-repository ppa:wireguard/wireguard
sudo apt-get update
sudo apt-get install wireguard
wg genkey | tee privatekey | wg pubkey > publickey
sudo nano /etc/sysctl.conf
sudo ip link add dev wg0 type wireguard
sudo ip link set up dev wg0
sudo nano /etc/wireguard/wg0.conf
sudo systemctl daemon-reload
sudo systemctl start wg-quick@wg0
sudo systemctl enable wg-quick@wg0
sudo systemctl status wg-quick@wg0
sudo wg
sudo reboot |
|
Ошибки:
systemctl status wg-quick@wg0
Bash |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| wg-quick@wg0.service - WireGuard via wg-quick(8) for wg0
Loaded: loaded (/lib/systemd/system/wg-quick@.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-11-16 08:52:41 CET; 12min ago
Docs: man:wg-quick(8)
man:wg(8)
https://www.wireguard.com/
https://www.wireguard.com/quickstart/
https://git.zx2c4.com/WireGuard/about/src/tools/man/wg-quick.8
https://git.zx2c4.com/WireGuard/about/src/tools/man/wg.8
Process: 1392 ExecStart=/usr/bin/wg-quick up wg0 (code=exited, status=1/FAILURE)
Main PID: 1392 (code=exited, status=1/FAILURE)
ноя 16 08:52:41 superport systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
ноя 16 08:52:41 superport wg-quick[1392]: Warning: `/etc/wireguard/wg0.conf' is world accessible
ноя 16 08:52:41 superport wg-quick[1392]: wg-quick: `wg0' already exists
ноя 16 08:52:41 superport systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE
ноя 16 08:52:41 superport systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
ноя 16 08:52:41 superport systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0. |
|
journalctl -xe
Bash |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| -- Subject: Начинается запуск юнита systemd-tmpfiles-clean.service
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Начат процесс запуска юнита systemd-tmpfiles-clean.service.
ноя 16 09:05:46 superport sshd[1561]: Invalid user zanelli from 129.211.117.47 port 40582
ноя 16 09:05:46 superport sshd[1561]: pam_unix(sshd:auth): check pass; user unknown
ноя 16 09:05:46 superport sshd[1561]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rho
ноя 16 09:05:46 superport systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Запуск юнита systemd-tmpfiles-clean.service завершен
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Процесс запуска юнита systemd-tmpfiles-clean.service был завершен.
--
-- Результат: RESULT.
ноя 16 09:05:48 superport sshd[1561]: Failed password for invalid user zanelli from 129.211.117.47 port 40582 ssh2
ноя 16 09:05:49 superport sshd[1561]: Received disconnect from 129.211.117.47 port 40582:11: Bye Bye [preauth]
ноя 16 09:05:49 superport sshd[1561]: Disconnected from invalid user zanelli 129.211.117.47 port 40582 [preauth]
ноя 16 09:05:50 superport sudo[1583]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl start wg-quick@
ноя 16 09:05:50 superport sudo[1583]: pam_unix(sudo:session): session opened for user root by root(uid=0)
ноя 16 09:05:50 superport systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
-- Subject: Начинается запуск юнита wg-quick@wg0.service
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Начат процесс запуска юнита wg-quick@wg0.service.
ноя 16 09:05:50 superport wg-quick[1586]: Warning: `/etc/wireguard/wg0.conf' is world accessible
ноя 16 09:05:50 superport wg-quick[1586]: wg-quick: `wg0' already exists
ноя 16 09:05:50 superport systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=1/FAILURE
ноя 16 09:05:50 superport sudo[1583]: pam_unix(sudo:session): session closed for user root
ноя 16 09:05:50 superport systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
ноя 16 09:05:50 superport systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.
-- Subject: Ошибка юнита wg-quick@wg0.service
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Произошел сбой юнита wg-quick@wg0.service.
--
-- Результат: RESULT.
lines 1977-2016/2016 (END) |
|