Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wg-quick RC-service laptop not using correct iface [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
g047
n00b
n00b


Joined: 22 Aug 2022
Posts: 15

PostPosted: Wed May 03, 2023 7:54 am    Post subject: wg-quick RC-service laptop not using correct iface [SOLVED] Reply with quote

I am setting up a VPN connection over WireGuard and followed the wiki https://wiki.gentoo.org/wiki/WireGuard#wg-quick, it works fine when I am connected to my ethernet, but whenever I try to start the service when using wifi I get the following:

Code:
* WARNING: wg-quick.wg0 will start when net.enp0s25 has started


How do I get the service to recognize the active network iface? Or am I going about this all wrong?

Thanks.


Last edited by g047 on Wed May 03, 2023 8:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3131

PostPosted: Wed May 03, 2023 10:05 am    Post subject: Reply with quote

Running openrc in scrict dependency mode by any chance?

Strict mode requires _all_ services providing net to be active before services needing net can be started. The options you have is to relax dependencies to require only 1 provider, use hotplug, or switch to a single manager that will configure all interfaces you want to use at any time (NetworkManager for very mobile machines; otherwise dhcpcd works well enough)
Hotplug and strict mode are configured in /etc/rc.conf
Back to top
View user's profile Send private message
g047
n00b
n00b


Joined: 22 Aug 2022
Posts: 15

PostPosted: Wed May 03, 2023 8:46 pm    Post subject: Reply with quote

szatox,

That did the trick! Strict dependency mode was set to "yes" (contrary to my memory)

Thank you for your time :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum