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

Failed to start proxy: set system proxy: set web proxy (interface: USB, port: 54525): exit status 14 ** Error: Command requires admin privileges. #34

Closed
j-peeters opened this issue Dec 18, 2023 · 11 comments · Fixed by #56
Assignees
Labels
bug Something isn't working

Comments

@j-peeters
Copy link

j-peeters commented Dec 18, 2023

Description

Hi, when trying to start the Zen proxy I get the following error. I have nu idea how to further elevate Zen's permissions. I'm an admin user running the app. Thanks for any ideas. Your app looks really promising, would love to be able to use it.

Version

0.2.2

Operating System

macOS 14.2

Steps to Reproduce

  1. Open the app
  2. Press the start button
  3. Error occurs

Additional Context

I have Little Snitch installed but tested this also without LS active and the same error occurrs.

20231218 Zen

@j-peeters j-peeters added the bug Something isn't working label Dec 18, 2023
@anfragment
Copy link
Owner

Hi, thanks for the report! Do you perhaps have the "Require an administrator password to access system-wide settings" switch turned on under the "Privacy & Security" -> "Advanced" menu in the settings? If so, you can temporarily launch the app with elevated permissions from your terminal using sudo /Applications/Zen.app/Contents/MacOS/Zen. I'll think of a way to implement a better solution within the app itself.
image

@j-peeters
Copy link
Author

Hi @anfragment Thanks for your swift response. I tried it how you suggsted and even deactivated the setting in privacy but I still get the same error:

20231218 Zen 3

It gives the following in terminal:
2023/12/18 13:50:19 starting proxy 2023/12/18 13:50:19 filter initialization: added 3781 rules and 0 exceptions from "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext" 2023/12/18 13:50:19 filter initialization: added 32414 rules and 619 exceptions from "https://easylist.to/easylist/easyprivacy.txt" 2023/12/18 13:50:19 filter initialization: added 2205 rules and 0 exceptions from "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-online.txt" 2023/12/18 13:50:19 filter initialization: added 37517 rules and 500 exceptions from "https://easylist-downloads.adblockplus.org/easylist_noelemhide.txt" 2023/12/18 13:50:19 filter initialization: added 78206 rules and 2207 exceptions from "https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_3_Spyware/filter.txt" 2023/12/18 13:50:19 filter initialization: added 34873 rules and 0 exceptions from "https://malware-filter.gitlab.io/malware-filter/phishing-filter.txt" 2023/12/18 13:50:21 filter initialization: added 11678 rules and 0 exceptions from "https://someonewhocares.org/hosts/zero/hosts" 2023/12/18 13:50:21 proxy listening on port 65199 2023/12/18 13:50:21 failed to start proxy: set system proxy: set web proxy (interface: USB, port: 65199): exit status 4 ** Error: The parameters were not valid.

@anfragment
Copy link
Owner

Are you perhaps using an USB Ethernet adapter? Could you please send the output of running netstat -nr and scutil --nwi?

@j-peeters
Copy link
Author

j-peeters commented Dec 19, 2023

Hi, I'm using a RWC Thunderbolt Dock for Ethernet internet. These are the outputs:

netstat -nr

Routing tables

Internet:
Destination        Gateway            Flags               Netif Expire
default            192.168.178.1      UGScg                 en7       
default            192.168.178.1      UGScIg                en0       
default            link#25            UCSIg           bridge100      !
default            link#27            UCSIg           bridge101      !
10.37.129/24       link#27            UC              bridge101      !
10.37.129.2        f6.d4.88.16.c.65   UHLWIi                lo0       
10.37.129.255      ff.ff.ff.ff.ff.ff  UHLWbI          bridge101      !
10.211.55/24       link#25            UC              bridge100      !
10.211.55.2        f6.d4.88.16.c.64   UHLWIi                lo0       
10.211.55.255      ff.ff.ff.ff.ff.ff  UHLWbI          bridge100      !
17.242.176.80      link#25            UHLWIg          bridge100      !
17.242.176.80      link#27            UHLWIg          bridge101      !
127                127.0.0.1          UCS                   lo0       
127.0.0.1          127.0.0.1          UH                    lo0       
169.254            link#13            UCS                   en7      !
169.254            link#15            UCSI                  en0      !
192.168.178        link#13            UCS                   en7      !
192.168.178        link#15            UCSI                  en0      !
192.168.178.1/32   link#13            UCS                   en7      !
192.168.178.1      dc:15:c8:44:bd:e0  UHLWIir               en7   1058
192.168.178.1      dc:15:c8:44:bd:e0  UHLWIir               en0   1180
192.168.178.1/32   link#15            UCSI                  en0      !
192.168.178.14     link#13            UHRLWI                en7      !
192.168.178.20     c8:2a:14:55:55:eb  UHLWIi                en7    856
192.168.178.20     c8:2a:14:55:55:eb  UHLWIi                en0    856
192.168.178.24/32  link#15            UCS                   en0      !
192.168.178.24     f4:d4:88:61:84:44  UHLWI                 lo0       
192.168.178.31/32  link#13            UCS                   en7      !
192.168.178.31     0:23:a4:6:63:4f    UHLWI                 lo0       
192.168.178.31     0:23:a4:6:63:4f    UHLWI                 en0   1076
192.168.178.33     0:4:20:22:43:de    UHLWI                 en7      !
192.168.178.39     ec:b5:fa:2b:77:96  UHLWI                 en7   1179
192.168.178.39     ec:b5:fa:2b:77:96  UHLWI                 en0   1180
192.168.178.49     fa:a0:fc:c7:64:e0  UHLWI                 en7    734
192.168.178.49     fa:a0:fc:c7:64:e0  UHLWI                 en0    734
192.168.178.50     b6:22:2c:16:bb:d4  UHLWI                 en7    417
192.168.178.50     b6:22:2c:16:bb:d4  UHLWIi                en0    501
192.168.178.61     d0:3:4b:56:ed:57   UHLWI                 en7    714
192.168.178.166    link#13            UHRLWI                en7      !
192.168.178.166    link#15            UHRLWI                en0      !
192.168.178.166    link#25            UHLWIg          bridge100      !
192.168.178.166    link#27            UHLWIg          bridge101      !
192.168.178.255    ff:ff:ff:ff:ff:ff  UHLWbI                en7      !
195.240.73.34      link#25            UHLWIg          bridge100      !
195.240.73.34      link#27            UHLWIg          bridge101      !
224.0.0/4          link#13            UmCS                  en7      !
224.0.0/4          link#15            UmCSI                 en0      !
224.0.0.251        1:0:5e:0:0:fb      UHmLWI                en7       
224.0.0.251        1:0:5e:0:0:fb      UHmLWI                en0       
224.0.0.251        1:0:5e:0:0:fb      UHmLWIg         bridge101       
239.255.255.250    1:0:5e:7f:ff:fa    UHmLWI                en7       
239.255.255.250    1:0:5e:7f:ff:fa    UHmLWI                en0       
239.255.255.250    1:0:5e:7f:ff:fa    UHmLWIg         bridge100       
239.255.255.250    1:0:5e:7f:ff:fa    UHmLWIg         bridge101       
255.255.255.255/32 link#13            UCS                   en7      !
255.255.255.255    ff:ff:ff:ff:ff:ff  UHLWbI                en7      !
255.255.255.255/32 link#15            UCSI                  en0      !

Internet6:
Destination                             Gateway                                 Flags               Netif Expire
default                                 fe80::de15:c8ff:fe44:bde0%en7           UGcg                  en7       
default                                 fe80::de15:c8ff:fe44:bde0%en0           UGcIg                 en0       
default                                 fe80::%utun0                            UGcIg               utun0       
default                                 fe80::%utun1                            UGcIg               utun1       
default                                 fe80::%utun2                            UGcIg               utun2       
default                                 fe80::%utun3                            UGcIg               utun3       
default                                 fe80::%utun4                            UGcIg               utun4       
default                                 fe80::%utun5                            UGcIg               utun5       
default                                 fe80::%utun6                            UGcIg               utun6       
default                                 fe80::%utun7                            UGcIg               utun7       
::1                                     ::1                                     UHL                   lo0       
2a10:3781:1317::/48                     fe80::de15:c8ff:fe44:bde0%en0           UGc                   en0       
2a10:3781:1317:1::/64                   link#13                                 UC                    en7       
2a10:3781:1317:1::/64                   link#15                                 UCI                   en0       
2a10:3781:1317:1:82d:7364:97b5:ba90     fa:a0:fc:c7:64:e0                       UHLWI                 en7       
2a10:3781:1317:1:c8e:2bf2:2b2e:a8d8     b6:22:2c:16:bb:d4                       UHLWI                 en7       
2a10:3781:1317:1:c8e:2bf2:2b2e:a8d8     b6:22:2c:16:bb:d4                       UHLWI                 en0       
2a10:3781:1317:1:1008:3b57:68e4:d6c     0:23:a4:6:63:4f                         UHL                   lo0       
2a10:3781:1317:1:10de:f14e:79b5:b601    link#13                                 UHLWI                 en7       
2a10:3781:1317:1:10de:f14e:79b5:b601    link#15                                 UHLWI                 en0       
2a10:3781:1317:1:142a:7c3b:5ba9:cfd     f4:d4:88:61:84:44                       UHL                   lo0       
2a10:3781:1317:1:5c86:904:b9b0:83b0     fa:a0:fc:c7:64:e0                       UHLWI                 en7       
2a10:3781:1317:1:61e2:2aa3:6001:aeca    0:23:a4:6:63:4f                         UHL                   lo0       
2a10:3781:1317:1:64e8:302:5b9c:6a66     b6:22:2c:16:bb:d4                       UHLWI                 en7       
2a10:3781:1317:1:64e8:302:5b9c:6a66     b6:22:2c:16:bb:d4                       UHLWI                 en0       
2a10:3781:1317:1:8885:1942:778f:36de    f4:d4:88:61:84:44                       UHL                   lo0       
2a10:3781:1317:1:a8d6:14a4:bcef:15ee    b6:22:2c:16:bb:d4                       UHLWI                 en7       
2a10:3781:1317:1:d466:cce1:3f4:d2ff     b6:22:2c:16:bb:d4                       UHLWI                 en7       
2a10:3781:1317:1:de15:c8ff:fe44:bde0    dc:15:c8:44:bd:e0                       UHLWIi                en7       
fdb2:2c26:f4e4::/64                     link#25                                 UC              bridge100       
fdb2:2c26:f4e4::                        link#25                                 UHLWI           bridge100       
fdb2:2c26:f4e4::1                       f6.d4.88.16.c.64                        UHL                   lo0       
fdb2:2c26:f4e4:1::/64                   link#27                                 UC              bridge101       
fdb2:2c26:f4e4:1::                      link#27                                 UHLWI           bridge101       
fdb2:2c26:f4e4:1::1                     f6.d4.88.16.c.65                        UHL                   lo0       
fe80::%lo0/64                           fe80::1%lo0                             UcI                   lo0       
fe80::1%lo0                             link#1                                  UHLI                  lo0       
fe80::%en7/64                           link#13                                 UCI                   en7       
fe80::df:e046:42d7:8ea6%en7             b6:22:2c:16:bb:d4                       UHLWIi                en7       
fe80::200:aaff:fed6:7d59%en7            0:0:aa:d6:7d:59                         UHLWI                 en7       
fe80::461:3fe9:6d2b:c4a4%en7            fa:a0:fc:c7:64:e0                       UHLWIi                en7       
fe80::47d:872:241b:17ef%en7             f4:d4:88:61:84:44                       UHLWI                 en7       
fe80::4c5:3bbb:53f6:5cd%en7             d0:3:4b:56:ed:57                        UHLWI                 en7       
fe80::8e6:d91b:8858:64b%en7             c8:2a:14:55:55:eb                       UHLWIi                en7       
fe80::1861:e4c8:33b8:da86%en7           fa:a0:fc:c7:64:e0                       UHLWI                 en7       
fe80::188c:a63a:6bd0:8bc5%en7           0:23:a4:6:63:4f                         UHLI                  lo0       
fe80::de15:c8ff:fe44:bde0%en7           dc:15:c8:44:bd:e0                       UHLWIir               en7       
fe80::%ap1/64                           link#14                                 UCI                   ap1       
fe80::f4d4:88ff:fe61:8444%ap1           f6:d4:88:61:84:44                       UHLI                  lo0       
fe80::%en0/64                           link#15                                 UCI                   en0       
fe80::df:e046:42d7:8ea6%en0             b6:22:2c:16:bb:d4                       UHLWIi                en0       
fe80::461:3fe9:6d2b:c4a4%en0            fa:a0:fc:c7:64:e0                       UHLWI                 en0       
fe80::47d:872:241b:17ef%en0             f4:d4:88:61:84:44                       UHLI                  lo0       
fe80::8e6:d91b:8858:64b%en0             c8:2a:14:55:55:eb                       UHLWIi                en0       
fe80::1861:e4c8:33b8:da86%en0           fa:a0:fc:c7:64:e0                       UHLWI                 en0       
fe80::188c:a63a:6bd0:8bc5%en0           0:23:a4:6:63:4f                         UHLWI                 en0       
fe80::de15:c8ff:fe44:bde0%en0           dc:15:c8:44:bd:e0                       UHLWIir               en0       
fe80::d48b:f1ff:fead:7a01%awdl0         d6:8b:f1:ad:7a:1                        UHLI                  lo0       
fe80::d48b:f1ff:fead:7a01%llw0          d6:8b:f1:ad:7a:1                        UHLI                  lo0       
fe80::%utun0/64                         fe80::ca8b:9b5f:686:ca74%utun0          UcI                 utun0       
fe80::ca8b:9b5f:686:ca74%utun0          link#20                                 UHLI                  lo0       
fe80::%utun1/64                         fe80::a850:d6e2:8a72:cf4c%utun1         UcI                 utun1       
fe80::a850:d6e2:8a72:cf4c%utun1         link#21                                 UHLI                  lo0       
fe80::%utun2/64                         fe80::405f:ca89:8f8b:cd82%utun2         UcI                 utun2       
fe80::405f:ca89:8f8b:cd82%utun2         link#22                                 UHLI                  lo0       
fe80::%utun3/64                         fe80::ce81:b1c:bd2c:69e%utun3           UcI                 utun3       
fe80::ce81:b1c:bd2c:69e%utun3           link#23                                 UHLI                  lo0       
fe80::%bridge100/64                     link#25                                 UCI             bridge100       
fe80::f4d4:88ff:fe16:c64%bridge100      f6.d4.88.16.c.64                        UHLI                  lo0       
fe80::f4d4:88ff:fe61:8444%bridge100     link#25                                 UHLWI           bridge100       
fe80::%bridge101/64                     link#27                                 UCI             bridge101       
fe80::f4d4:88ff:fe16:c64%bridge101      link#27                                 UHLWI           bridge101       
fe80::f4d4:88ff:fe16:c65%bridge101      f6.d4.88.16.c.65                        UHLI                  lo0       
fe80::f4d4:88ff:fe61:8444%bridge101     link#27                                 UHLWI           bridge101       
fe80::%utun4/64                         fe80::c9cb:bb43:4fb4:d0a0%utun4         UcI                 utun4       
fe80::c9cb:bb43:4fb4:d0a0%utun4         link#28                                 UHLI                  lo0       
fe80::%utun5/64                         fe80::cd2c:6588:ff49:5d4c%utun5         UcI                 utun5       
fe80::cd2c:6588:ff49:5d4c%utun5         link#29                                 UHLI                  lo0       
fe80::%utun6/64                         fe80::7eac:5245:e02f:8c6e%utun6         UcI                 utun6       
fe80::7eac:5245:e02f:8c6e%utun6         link#30                                 UHLI                  lo0       
fe80::%utun7/64                         fe80::a28b:98e0:7b89:c5df%utun7         UcI                 utun7       
fe80::a28b:98e0:7b89:c5df%utun7         link#31                                 UHLI                  lo0       
ff00::/8                                ::1                                     UmCI                  lo0       
ff00::/8                                link#13                                 UmCI                  en7       
ff00::/8                                link#14                                 UmCI                  ap1       
ff00::/8                                link#15                                 UmCI                  en0       
ff00::/8                                link#18                                 UmCI                awdl0       
ff00::/8                                link#19                                 UmCI                 llw0       
ff00::/8                                fe80::ca8b:9b5f:686:ca74%utun0          UmCI                utun0       
ff00::/8                                fe80::a850:d6e2:8a72:cf4c%utun1         UmCI                utun1       
ff00::/8                                fe80::405f:ca89:8f8b:cd82%utun2         UmCI                utun2       
ff00::/8                                fe80::ce81:b1c:bd2c:69e%utun3           UmCI                utun3       
ff00::/8                                link#25                                 UmCI            bridge100       
ff00::/8                                link#27                                 UmCI            bridge101       
ff00::/8                                fe80::c9cb:bb43:4fb4:d0a0%utun4         UmCI                utun4       
ff00::/8                                fe80::cd2c:6588:ff49:5d4c%utun5         UmCI                utun5       
ff00::/8                                fe80::7eac:5245:e02f:8c6e%utun6         UmCI                utun6       
ff00::/8                                fe80::a28b:98e0:7b89:c5df%utun7         UmCI                utun7       
ff01::%lo0/32                           ::1                                     UmCI                  lo0       
ff01::%en7/32                           link#13                                 UmCI                  en7       
ff01::%ap1/32                           link#14                                 UmCI                  ap1       
ff01::%en0/32                           link#15                                 UmCI                  en0       
ff01::%utun0/32                         fe80::ca8b:9b5f:686:ca74%utun0          UmCI                utun0       
ff01::%utun1/32                         fe80::a850:d6e2:8a72:cf4c%utun1         UmCI                utun1       
ff01::%utun2/32                         fe80::405f:ca89:8f8b:cd82%utun2         UmCI                utun2       
ff01::%utun3/32                         fe80::ce81:b1c:bd2c:69e%utun3           UmCI                utun3       
ff01::%bridge100/32                     link#25                                 UmCI            bridge100       
ff01::%bridge101/32                     link#27                                 UmCI            bridge101       
ff01::%utun4/32                         fe80::c9cb:bb43:4fb4:d0a0%utun4         UmCI                utun4       
ff01::%utun5/32                         fe80::cd2c:6588:ff49:5d4c%utun5         UmCI                utun5       
ff01::%utun6/32                         fe80::7eac:5245:e02f:8c6e%utun6         UmCI                utun6       
ff01::%utun7/32                         fe80::a28b:98e0:7b89:c5df%utun7         UmCI                utun7       
ff02::%lo0/32                           ::1                                     UmCI                  lo0       
ff02::%en7/32                           link#13                                 UmCI                  en7       
ff02::%ap1/32                           link#14                                 UmCI                  ap1       
ff02::%en0/32                           link#15                                 UmCI                  en0       
ff02::%utun0/32                         fe80::ca8b:9b5f:686:ca74%utun0          UmCI                utun0       
ff02::%utun1/32                         fe80::a850:d6e2:8a72:cf4c%utun1         UmCI                utun1       
ff02::%utun2/32                         fe80::405f:ca89:8f8b:cd82%utun2         UmCI                utun2       
ff02::%utun3/32                         fe80::ce81:b1c:bd2c:69e%utun3           UmCI                utun3       
ff02::%bridge100/32                     link#25                                 UmCI            bridge100       
ff02::%bridge101/32                     link#27                                 UmCI            bridge101       
ff02::%utun4/32                         fe80::c9cb:bb43:4fb4:d0a0%utun4         UmCI                utun4       
ff02::%utun5/32                         fe80::cd2c:6588:ff49:5d4c%utun5         UmCI                utun5       
ff02::%utun6/32                         fe80::7eac:5245:e02f:8c6e%utun6         UmCI                utun6       
ff02::%utun7/32                         fe80::a28b:98e0:7b89:c5df%utun7         UmCI                utun7

scutil --nwi

Network information

IPv4 network interface information
     en7 : flags      : 0x7 (IPv4,IPv6,DNS)
           address    : 192.168.178.31
           reach      : 0x00000002 (Reachable)
     en0 : flags      : 0x7 (IPv4,IPv6,DNS)
           address    : 192.168.178.24
           reach      : 0x00000002 (Reachable)

   REACH : flags 0x00000002 (Reachable)

IPv6 network interface information
     en7 : flags      : 0x7 (IPv4,IPv6,DNS)
           address    : 2a10:3781:1317:1:1008:3b57:68e4:d6c
           reach      : 0x00000002 (Reachable)
     en0 : flags      : 0x7 (IPv4,IPv6,DNS)
           address    : 2a10:3781:1317:1:142a:7c3b:5ba9:cfd
           reach      : 0x00000002 (Reachable)

   REACH : flags 0x00000002 (Reachable)

Network interfaces: en7 en0

@anfragment
Copy link
Owner

anfragment commented Dec 19, 2023

Ok, at first I thought this issue might be related to the one @tangowithfoxtrot raised in #13, but this looks different. I think the problem is that we're incorrectly assuming that network interfaces are always composed of a single word. If I'm correct, the app should be trying to set the proxy for an interface named something like "USB 10/100/1000 LAN" instead of just "USB".
Could you please run the networksetup -listnetworkserviceorder and share its output? This should provide us with the answer.

@j-peeters
Copy link
Author

Great that things are getting clearer. This is the output:

An asterisk (*) denotes that a network service is disabled.
(1) LG Monitor Controls
(Hardware Port: LG Monitor Controls, Device: usbmodem303MAFCG1R792)

(2) USB 10/100/1000 LAN
(Hardware Port: USB 10/100/1000 LAN, Device: en7)

(3) USB 10/100/1000 LAN 2
(Hardware Port: USB 10/100/1000 LAN, Device: en9)

(4) Wi-Fi
(Hardware Port: Wi-Fi, Device: en0)

(5) iPhone USB
(Hardware Port: iPhone USB, Device: en8)

(6) Thunderbolt Bridge
(Hardware Port: Thunderbolt Bridge, Device: bridge0)

(7) VPN thuis
(Hardware Port: IPSec, Device: )

(8) NordVPN NordLynx
(Hardware Port: com.nordvpn.NordVPN, Device: )

(9) JanWireguardVPN
(Hardware Port: com.wireguard.macos, Device: )

(10) NextDNS
(Hardware Port: io.nextdns.NextDNSMac, Device: )

@anfragment
Copy link
Owner

Thank you, that is exactly the case! Looks like something that should have an easy fix. I'll let you know when a working release gets published.

@j-peeters
Copy link
Author

Great that it helped and thanks for letting me know when a fix is available. Good luck with the fix!

@georgesmaragdakis
Copy link

Any progress on this? I'm getting the same error using a USB 4/Thunderbolt 4 dock for ethernet.

@anfragment
Copy link
Owner

@georgesmaragdakis working on it, stay tuned!

@anfragment
Copy link
Owner

@georgesmaragdakis check out the latest release, it should fix the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants