isystem-io / wireguard-aws

Scripts automate the installation and use of Wireguard on AWS with Ubuntu Server 18.04
https://wireguard.isystem.io
MIT License
160 stars 64 forks source link

Erro Create user #1

Open talesam opened 5 years ago

talesam commented 5 years ago

Hi, The following error is appearing when I try to create a user. The only thing I did differently was to use Door 53, the rest did everything the same, do you know what it could be?

Enter VPN user name: tales@mobile Job for wg-quick@wg0.service failed because the control process exited with error code. See "systemctl status wg-quick@wg0.service" and "journalctl -xe" for details.

`systemctl status wg-quick@wg0.service ● wg-quick@wg0.service - WireGuard via wg-quick(8) for wg0 Loaded: loaded (/lib/systemd/system/wg-quick@.service; indirect; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2019-06-01 04:55:10 UTC; 5min 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: 9926 ExecStart=/usr/bin/wg-quick up wg0 (code=exited, status=2) Main PID: 9926 (code=exited, status=2)

Jun 01 04:55:10 ip systemd[1]: Starting WireGuard via wg-quick(8) for wg0... Jun 01 04:55:10 ip wg-quick[9926]: [#] ip link add wg0 type wireguard Jun 01 04:55:10 ip wg-quick[9926]: [#] wg setconf wg0 /dev/fd/63 Jun 01 04:55:10 ip wg-quick[9926]: [#] ip address add 10.50.0.1 dev wg0 Jun 01 04:55:10 ip wg-quick[9926]: [#] ip link set mtu 8921 up dev wg0 Jun 01 04:55:10 ip wg-quick[9926]: RTNETLINK answers: Address already in use Jun 01 04:55:10 ip wg-quick[9926]: [#] ip link delete dev wg0 Jun 01 04:55:10 ip systemd[1]: wg-quick@wg0.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Jun 01 04:55:10 ip-systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'. Jun 01 04:55:10 ip- systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0. `

talesam commented 5 years ago

The problem is the service you do not want to start, do you know what it can be?

Before running your script I updated the entire system with dist-upgrade

talesam commented 5 years ago

I discovered the problem, it does not work on port 53 of the conflict. Any idea how I use it on port 53? Listen to DNS on another port?

qJkee commented 4 years ago

@talesam Actually, you have 2 ways. 1st. Turn off the app which is using 53 port. 2nd. Use another port