Friday, December 13, 2024

launchd – Begin Wireguard Interface on Boot

launchd – Begin Wireguard Interface on Boot

I’ve got a VPN subscription and have set up WireGuard using the command-line interface on my MacBook running macOS Ventura version 13.6.5.

I’ve configured my system to robotically start a WireGuard interface at boot time, but it still gives me an error.

Warning: `/personal/and so forth/wireguard/se-sto-wg-014.conf' is world accessible
[#] wireguard-go utun0
[+] Interface for se-sto-wg-014 is utun4
[#] wg setconf utun4 /dev/fd/63
[#] ifconfig utun4 inet 10.65.194.168/32 10.65.194.168 alias
[#] ifconfig utun4 up
route: writing to routing socket: File exists
[#] route -q -n add -inet 0.0.0.0/1 -interface utun4
[#] route -q -n add -inet 128.0.0.0/1 -interface utun4
[#] route -q -n add -inet 185.195.233.68 -gateway 192.168.1.1
[#] networksetup -getdnsservers Wi-Fi 100.64.0.55
[#] networksetup -setdnsservers Wi-Fi 100.64.0.55
[+] Backgrounding route monitor
[#] mullvad-upgrade-tunnel -wg-interface utun4
route: writing to routing socket: File exists
route: writing to routing socket: File exists
route: writing to routing socket: File exists
[#] rm -f /var/run/wireguard/utun4.sock
[#] rm -f /var/run/wireguard/se-sto-wg-014.title

After I run sudo wg-quick up se-sto-wg-014 The VPN connection comes alive from the terminal.

Can I automate VPN startup using my system’s settings and a few well-chosen commands?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles