WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Wireguard on MacOS Catalina randomly deletes config
@ 2019-10-10 13:01 Chris Gaffney
  2019-10-16 20:34 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Gaffney @ 2019-10-10 13:01 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 747 bytes --]

Hi,

Version: MacOS App Store 0.0.20190610 (13)
Go Version: 0.0.20190517

I’ve been using Wireguard on MacOS for the last couple of months without issue. Two days ago I upgraded to MacOS 10.15 Catalina and everything had been working fine up until this morning when Wireguard randomly deleted its configuration.

I had connected to my Wireguard server and had an ssh session going over the tunnel when my connection stopped working. Checking Wireguard showed that the tunnel I had been using was no longer listed in the tunnel manager. I tried restating Wireguard but the configuration didn’t come back and had to be recreated.

Logs: https://gist.github.com/gaffneyc/624ea733e1cfa42adabfa2fcbecaf1c8

- Chris Gaffney
@gaffneyc


[-- Attachment #1.2: Type: text/html, Size: 2070 bytes --]

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Version: MacOS App Store 0.0.20190610 (13)</div><div class="">Go Version:&nbsp;0.0.20190517</div><div class=""><br class=""></div><div class="">I’ve been using Wireguard on MacOS for the last couple of months without issue. Two days ago I upgraded to MacOS 10.15 Catalina and everything had been working fine up until this morning when Wireguard randomly deleted its configuration.</div><div class=""><br class=""></div><div class="">I had connected to my Wireguard server and had an ssh session going over the tunnel when my connection stopped working. Checking Wireguard showed that the tunnel I had been using was no longer listed in the tunnel manager. I tried restating Wireguard but the configuration didn’t come back and had to be recreated.</div><div class=""><br class=""></div><div class="">Logs:&nbsp;<a href="https://gist.github.com/gaffneyc/624ea733e1cfa42adabfa2fcbecaf1c8" class="">https://gist.github.com/gaffneyc/624ea733e1cfa42adabfa2fcbecaf1c8</a></div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">- Chris Gaffney</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">@gaffneyc</div>

</div>

<br class=""></div></body></html>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Wireguard on MacOS Catalina randomly deletes config
  2019-10-10 13:01 Wireguard on MacOS Catalina randomly deletes config Chris Gaffney
@ 2019-10-16 20:34 ` Jason A. Donenfeld
  0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2019-10-16 20:34 UTC (permalink / raw)
  To: Chris Gaffney; +Cc: WireGuard mailing list

This appears to be a bug in macOS 10.15. I've informed Apple, and
they're looking into it.

The log file you gave has the line in it:

> 2019-10-10 07:25:16.071772: [APP] Tunnel 'Office' connection status changed to 'invalid'

If you look at your system logs for that timestamp, that will
correspond with a line emitted from com.apple.networkextension like:

> Removing configuration Office because the corresponding VPN application has been removed.

Reverse engineering
/System/Library/Frameworks/NetworkExtension.framework/Versions/A/NetworkExtension
indicates that this comes from the call chain:

-[NEConfigurationManager
handleApplicationsRemoved:completionQueue:withCompletionHandler:]
-->
__90__NEConfigurationManager_handleApplicationsRemoved_completionQueue_withCompletionHandler___block_invoke
-->
__90__NEConfigurationManager_handleApplicationsRemoved_completionQueue_withCompletionHandler___block_invoke_2

So I assume that some kind of inclusion check is failing when it
shouldn't, or some kind of app store notification is being triggered
when it shouldn't.

Jason
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 13:01 Wireguard on MacOS Catalina randomly deletes config Chris Gaffney
2019-10-16 20:34 ` Jason A. Donenfeld

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git