You are not logged in.

#1 2023-08-13 17:33:31

genji
Member
Registered: 2023-08-13
Posts: 61

[solved] wireguard section 2.4.1 of wiki too confusing

hi there, i am trying to enable wireguard at boot, it is working properly already when i do `wg-quick up wg0` but the wiki is making too many assumptions in section 2.4.1 of this page: https://wiki.archlinux.org/title/WireGuard

what does this mean?

To start the tunnel at boot, enable the unit.

i clicked the word enable but am still confused

[root@gateway-wind sysctl.d]# systemctl enable wg0.service
Failed to enable unit: Unit file wg0.service does not exist.
[root@gateway-wind sysctl.d]# systemctl enable wireguard.service
Failed to enable unit: Unit file wireguard.service does not exist.
[root@gateway-wind sysctl.d]# systemctl enable wg.service
Failed to enable unit: Unit file wg.service does not exist.
[root@gateway-wind sysctl.d]# systemctl enable wg-quick.service
Failed to enable unit: Unit file wg-quick.service does not exist.
[root@gateway-wind sysctl.d]#

this arch documentation is too sparse and makes too many assumptions, i am not able to figure it out based on whats provided, thanks very much

Last edited by genji (2023-08-13 17:50:51)

Offline

#2 2023-08-13 17:47:50

frostschutz
Member
Registered: 2013-11-15
Posts: 1,647

Re: [solved] wireguard section 2.4.1 of wiki too confusing

if you have an interfacename.conf you enable the wg-quick@interfacename.service - replace interfacename with your config file name

Offline

#3 2023-08-13 17:49:56

genji
Member
Registered: 2023-08-13
Posts: 61

Re: [solved] wireguard section 2.4.1 of wiki too confusing

frostschutz wrote:

if you have an interfacename.conf you enable the wg-quick@interfacename.service - replace interfacename with your config file name

Hi there, indeed, my configuration is wg0.conf, so I am to do

systemctl enable wg-quick@wg0.service

?

thanks very much, it accepted this command

Last edited by genji (2023-08-13 17:50:37)

Offline

Board footer

Powered by FluxBB