Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX BUGS which may cause trap leading to " wg-quick up wg0 " failure on MACOS #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

piglaker
Copy link

CLIENT: MACOS Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64
SERVER: ALGO on VLUTR
RAW(zsh) :

 > sudo wg-quick up wg0
Warning: `/private/etc/wireguard/wg0.conf' is world accessible
[#] wireguard-go utun
[+] Interface for wg0 is utun3
[#] wg setconf utun3 /dev/fd/63
[#] ifconfig utun3 inet 10.49.0.3 10.49.0.3 alias
[#] ifconfig utun3 inet6 2001:db8:a160::3 alias
[#] ifconfig utun3 up
[#] route -q -n add -inet6 ::/1 -interface utun3
[#] route -q -n add -inet6 8000::/1 -interface utun3
[#] route -q -n add -inet 0.0.0.0/1 -interface utun3
[#] route -q -n add -inet 128.0.0.0/1 -interface utun3
[#] route -q -n add -inet xxxxxxxx -gateway xxxxxxx
[#] networksetup -getdnsservers Wi-Fi
[#] networksetup -getsearchdomains Wi-Fi
[#] networksetup -getdnsservers Thunderbolt Bridge
[#] networksetup -getsearchdomains Thunderbolt Bridge
[#] networksetup -getdnsservers Bluetooth PAN
[#] networksetup -getsearchdomains Bluetooth PAN
[#] networksetup -setdnsservers Bluetooth PAN xxxx
[#] networksetup -setsearchdomains Bluetooth PAN Empty
[#] networksetup -setdnsservers Wi-Fi xxxxxx
[#] networksetup -setsearchdomains Wi-Fi Empty
[#] networksetup -setdnsservers Thunderbolt Bridge xxxxxx
[#] networksetup -setsearchdomains Thunderbolt Bridge Empty
[#] rm -f /var/run/wireguard/utun3.sock
[#] rm -f /var/run/wireguard/wg0.name
[#] route -q -n delete -inet xxxxxxx

locate darwin.bash line 233:"networksetup -listallnetworkservices"
the comman may output like this :

> networksetup -listallnetworkservices
An asterisk (*) denotes that a network service is disabled.
Wi-Fi
*Thunderbolt Bridge
Bluetooth PAN

but the later two contains " " may cause Error like this:

> networksetup -getdnsservers Thunderbolt Bridge
Thunderbolt is not a recognized network service.
** Error: The parameters were not valid.

I simply fix it and modify the Makefile ( I think installing in /usr/local/bin is better than /usr/bin)

@zx2c4-bot zx2c4-bot force-pushed the master branch 9 times, most recently from 542b7c0 to 4ad6d0d Compare June 25, 2021 20:54
@zx2c4-bot zx2c4-bot force-pushed the master branch 3 times, most recently from c39c2ea to ab264f7 Compare July 13, 2021 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant