Artix Linux Forum

Artix Linux => System => Topic started by: kenny_w on 27 March 2023, 09:31:41

Title: Networkmanager-openvpn broke something
Post by: kenny_w on 27 March 2023, 09:31:41
Hey guys, I broke something while trying to get a VPN to work through networkmanager-openvpn, now I can't connect without either 1: my computer connected via VPN, or 2: I have to run dhcpcd. I added dhcpcd to /run/runit/service/ on boot-up which at least gets me internet but I'm wondering what I did wrong and how I can reset networkmanager so I don't have to rely on dhcpcd
Title: Re: Networkmanager-openvpn broke something
Post by: kenny_w on 27 March 2023, 09:51:10
cat /etc/resolv.conf
# Generated by NetworkManager
nameserver ::1

I suspect there's a problem here, I'm not totally sure what to do, why is networkmanager doing this to me?

if I edit /etc/resolv.conf to 192.168.1.1 instead of ::1 the connection starts working again, but upon every reboot resolv.conf displays ::1 so how do I fix this guys?

I deleted /etc/NetworkManager and then reinstalled NetworkManager and now I'm no longer getting this ::1 nonsense in my resolv.conf, all this for a simple VPN. I'm losing my mind on this lol, any recommendations for a free and easy to config VPN for Linux? Preferably a standalone client that doesn't have to work through networkmanager-openvpn.
Title: Re: Networkmanager-openvpn broke something
Post by: gripped on 27 March 2023, 11:50:47
Which init do you use ?
And I are you trying to connect to openvpn as a client or run it as a server ?
Title: Re: Networkmanager-openvpn broke something
Post by: kenny_w on 27 March 2023, 17:39:32
Which init do you use ?
And I are you trying to connect to openvpn as a client or run it as a server ?
client, and I use Runit.
Title: Re: Networkmanager-openvpn broke something
Post by: gripped on 27 March 2023, 17:51:28
When I posted I was thinking of the Gentoo wiki. I.E. Openrc
But most of it should be applicable to any init.
https://wiki.gentoo.org/wiki/OpenVPN

Quote
why is networkmanager doing this to me?
Best avoided imho.