Error calling protect method on socket [Mac M1] #243
Comments
alexsmartens commented Sep 19, 2022 •
This issue is related to #139 which was unfortunately closed without anyone attempting to solve it.
I’m seeing this problem on an M1 Mac.
OpenVPN Connect 3.3.6 (4368): Error calling protect () method on socket. Here’s my log:
The text was updated successfully, but these errors were encountered:
alexsmartens commented Sep 19, 2022
The OpenVPN community would really appreciate if someone could take care of fixing the above problem.
For now, @antonb-taod suggested a good temporary fix that worked for me:
I don’t know what issue other have, but I was able to solve mine today.
I was getting an error calling protected() method and same logs as mentiones above. I figured out that the file /var/run/agent_ovpnconnect.sock didn’t exist and apparently the problem was that for any reason the ovpn agent wasn’t running. To solve this I had to start /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent manually (I’m using macOS M1 12.2.1).
Hope it will help someone.
ordex commented Sep 19, 2022
This bug tracker is about the OpenVPN3 library.
For problems with OpenVPN Connect (that is a commercial product), please go to https://openvpn.net/support
Footer
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
OpenVPN Support Forum
Community Support Forum
OpenVPN W10 socket protect error
OpenVPN W10 socket protect error
Post by Jippy » Wed Oct 28, 2020 3:02 am
I have a strange one where I can’t get one computer out of 6 or 7 machines so far to connect to my VPN hosted through my Synology NAS. All the machines run Windows 10 Home and are either a desktop machine I custom assembled, or a variant of a Lenovo Yoga or Thinkpad laptop. I was also able to connect my Android phone without issue, there is just this one machine (one of the Lenovo’s) that just won’t connect.
I have tried allowing an exception to the firewall, disabling the firewall altogether, disabling the anti-virus, checking all the settings against the other machines, flushing the DNS, disabling IPv6 and short of throwing the computer in the bin and buying a new one, tried just about all else.
The log is showing a «socket_protect error (UDP)» and it just attempts to reconnect, brings this error, disconnects, attempts again, rinse and repeat. It has declining so quickly that it feels like it is a firewall issue, however as I mentioned, I disabled that and it did not change anything. The log on the server end is not even showing an attempt by this username to log in which helps cement the suspiction it is being blocked at the local machine end.
It is frustrating that it is just this one machine so far in isolation doing this.
Does anyone have any ideas as to what is causing this?
My configuration (although I doubt this is the issue as it is working on all the other machines):
dev tun
tls-client
Remote was here and removed
# The «float» tells OpenVPN to accept authenticated packets from any address,
# not only the address which was specified in the —remote option.
# This is useful when you are connecting to a peer which holds a dynamic address
# such as a dial-in user or DHCP client.
# (Please refer to the manual of OpenVPN for more information.)
# If redirect-gateway is enabled, the client will redirect it’s
# default network gateway through the VPN.
# It means the VPN connection will firstly connect to the VPN Server
# and then to the internet.
# (Please refer to the manual of OpenVPN for more information.)
# dhcp-option DNS: To set primary domain name server address.
# Repeat this option to set secondary DNS server addresses.
#dhcp-option DNS DNS_IP_ADDRESS
# If you want to connect by Server’s IPv6 address, you should use
# «proto udp6» in UDP mode or «proto tcp6-client» in TCP mode
proto udp
auth-user-pass
——BEGIN CERTIFICATE——
MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/
MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT
DkRTVCBSb290IENBIFgzMB4XDTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVow
PzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3QgQ28uMRcwFQYDVQQD
Ew5EU1QgUm9vdCBDQSBYMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AN+v6ZdQCINXtMxiZfaQguzH0yxrMMpb7NnDfcdAwRgUi+DoM3ZJKuM/IUmTrE4O
rz5Iy2Xu/NMhD2XSKtkyj4zl93ewEnu1lcCJo6m67XMuegwGMoOifooUMM0RoOEq
OLl5CjH9UL2AZd+3UWODyOKIYepLYYHsUmu5ouJLGiifSKOeDNoJjj4XLh7dIN9b
xiqKqy69cK3FCxolkHRyxXtqqzTWMIn/5WgTe1QLyNau7Fqckh49ZLOMxt+/yUFw
7BZy1SbsOFU5Q9D8/RhcQPGX69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ERTIFICATE——
bug for mac #139
Comments
Ran-Xing commented Jan 18, 2021
Transport Error: socket_protect error (UDP)
I can link normally with my mobile phone, but not with my Mac,
The computer can’t link when the mobile phone is off
The text was updated successfully, but these errors were encountered:
zhangjiji03 commented Jun 29, 2021
ptdtan commented Aug 27, 2021
Song-HaiFeng commented Nov 8, 2021
cdcdx commented Dec 15, 2021
runforprogram commented Feb 17, 2022
i am use it on m1 and Monterey。same bug
runforprogram commented Feb 22, 2022
Tunnelblick can work
xuxinping commented Apr 3, 2022
effolkronium commented Apr 8, 2022
jh-leong commented Apr 10, 2022
SeanChang commented Apr 29, 2022
evan2884 commented May 17, 2022
jiangzhiyun-yun commented Aug 12, 2022
antonb-taod commented Aug 15, 2022
schwabe commented Aug 15, 2022
Closing this bug since has no actual information and there seem to be only a flood of useless «me too» responses that also have no detailed information.
effolkronium commented Aug 15, 2022
Lmao, did u even tried to investigate it ?
antonb-taod commented Aug 15, 2022 •
I don’t know what issue other have, but I was able to solve mine today.
I was getting an error calling protected() method and same logs as mentiones above. I figured out that the file /var/run/agent_ovpnconnect.sock didn’t exist and apparently the problem was that for any reason the ovpn agent wasn’t running. To solve this I had to start /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent manually (I’m using macOS M1 12.2.1).
Hope it will help someone.
effolkronium commented Aug 15, 2022
effolkronium commented Aug 15, 2022
schwabe commented Aug 15, 2022
@effolkronium the original error is just failing to connect to a UDP server. Any kind of condition can lead to that like no network connection. So without any further information and just hte error message, there is nothing we can do and that is why I closed the ticket.
effolkronium commented Aug 15, 2022
@schwabe then it would be better to extend logging for this error, so guys will have a chance to send meaningful reports. Just an idea
jh-leong commented Aug 17, 2022
I don’t know what issue other have, but I was able to solve mine today.
I was getting an error calling protected() method and same logs as mentiones above. I figured out that the file /var/run/agent_ovpnconnect.sock didn’t exist and apparently the problem was that for any reason the ovpn agent wasn’t running. To solve this I had to start /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent manually (I’m using macOS 12.2.1).
Hope it will help someone.
thanks so much man, all works well now.
alexsmartens commented Sep 15, 2022 •
I’m seeing the same problem on an M1 Mac.
OpenVPN Connect 3.3.6 (4368): Error calling protect () method on socket. Here’s my log:
alexsmartens commented Sep 15, 2022 •
To solve this I had to start /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent manually (I’m using macOS 12.2.1).
This solved it for me, thanks!
It’s bummer that we need to lunch this process ourselves though :-/
alexsmartens commented Sep 15, 2022
@schwabe do you mind reopening this issue? It still persists and needs to be addressed. We will help with the logs and whatever else you need
xiaowanxiong52hao commented Dec 16, 2022
taopanwoaini commented Dec 19, 2022
$ sudo /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent this command is all right! thanks up man! thanks you;
fatihsari commented Dec 29, 2022
I don’t know what issue other have, but I was able to solve mine today.
I was getting an error calling protected() method and same logs as mentiones above. I figured out that the file /var/run/agent_ovpnconnect.sock didn’t exist and apparently the problem was that for any reason the ovpn agent wasn’t running. To solve this I had to start /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent manually (I’m using macOS M1 12.2.1).
Hope it will help someone.
Thank you @antonb-taod
I’ve been having this issue for a few days now and it’s because I’m using hardware tokens.
I’ve fixed with sudo /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent .
fchienvuhoang commented Jan 5, 2023
thanks it work like a charm
enderphan94 commented Jan 11, 2023
Footer
© 2023 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
OpenVPN Support Forum
Community Support Forum
mac m1 connect error:Transport Error: socket_protect error (UDP)
mac m1 connect error:Transport Error: socket_protect error (UDP)
Post by jagger » Mon Jun 06, 2022 1:15 pm
macos system monterey version 12.4
openvpn version: 3.3.6(4368)
error log:
⏎[Jun 6, 2022, 21:04:06] Transport Error: socket_protect error (UDP)
⏎[Jun 6, 2022, 21:04:06] Client terminated, restarting in 2000 ms.
⏎[Jun 6, 2022, 21:04:08] EVENT: RECONNECTING ⏎[Jun 6, 2022, 21:04:08] EVENT: RESOLVE ⏎[Jun 6, 2022, 21:04:08] Contacting 7.6.3.7:11940(host) via UDP
⏎[Jun 6, 2022, 21:04:08] EVENT: WAIT ⏎[Jun 6, 2022, 21:04:08] UnixCommandAgent: transmitting bypass route to /var/run/agent_ovpnconnect.sock
<
«host» : «host»,
«ipv6» : false,
«pid» : 4487
>
⏎[Jun 6, 2022, 21:04:08] Transport Error: socket_protect error (UDP)
⏎[Jun 6, 2022, 21:04:08] Client terminated, restarting in 2000 ms.
⏎
Re: mac m1 connect error:Transport Error: socket_protect error (UDP)
Post by openvpn_inc » Fri Jul 15, 2022 3:42 pm
Based on the error logs which is «Transport Error: socket_protect error (UDP)»
This means that Agent (system OpenVPN service) most likely is not running. You should check it in the Services, and the service name is agent_ovpnconnect. If it is not running, start it manually.
Error calling method on socket openvpn
⏎06.02.2021, 7:58:56 Transport Error: socket_protect error (UDP)
⏎06.02.2021, 7:58:56 Client terminated, restarting in 2000 ms.
⏎06.02.2021, 7:58:58 EVENT: RECONNECTING ⏎06.02.2021, 7:58:58 EVENT: RESOLVE ⏎06.02.2021, 7:58:58 Contacting [2607:5300:61:111:7a::111]:52614 via UDP
⏎06.02.2021, 7:58:58 WinCommandAgent: transmitting bypass route to 2607:5300:61:111:7a::111
<
«host» : «2607:5300:61:111:7a::111»,
«ipv6» : true
>
Оглавление |
1,8,9,13,14 |
Сообщения | [Сортировка по времени | RSS] |
1. «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от qwertykma (ok), 29-Мрт-21, 12:10 | ||
Ответить | Правка | Наверх | Cообщить модератору |
2. «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от lotric | ||
не соображу как проверить, вроде нет поддержки ип6 telnet -6 2607:5300:61:167:7a::1111 53614 тут говно формотировоние все сбивает все в кучу. Причем я тут вижу все норм, сообщение посылаю это форум все уродует на****я вобшем введеная команда не работает, параметр -6 не поодерживается | ||
Ответить | Правка | Наверх | Cообщить модератору |
3. «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от qwertykma (ok), 30-Мрт-21, 08:14 | ||
В любом случае если под пингвина все работает, то все проблемы на стороне виндовс. Или брандмауэр или их тспи 6 — самый тспёвый из тспи. Может тсп 4 попробовать? | ||
Ответить | Правка | Наверх | Cообщить модератору |
4. «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от Andrey (??), 30-Мрт-21, 08:56 | ||
> telnet -6 2607:5300:61:167:7a::1111 53614 А!! Держите меня все! Включите расширенную отладку в клиенте с помощью параметра verb в конфигурационном файле клиента. | ||
Ответить | Правка | К родителю #2 | Наверх | Cообщить модератору |
5. «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от qwertykma (ok), 30-Мрт-21, 09:20 | ||
Ошибаются все. Да я не помню что телнет не работает по удп (тунельное мышление). Может вы посоветуете чем это сделать под виндовс? Наверное человек проверил наличие тсп 6 на виндовс, не настолько же все плохо? | ||
Ответить | Правка | Наверх | Cообщить модератору |
6. «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от Andrey (??), 30-Мрт-21, 10:24 | ||
verb [1-11] > не настолько же все | ||
Ответить | Правка | Наверх | Cообщить модератору |
7. «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от qwertykma (ok), 30-Мрт-21, 10:42 | ||
Ответить | Правка | Наверх | Cообщить модератору |
11 . «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от ыы (?), 01-Апр-21, 20:20 | ||
у nc есть версия под виндовс | ||
Ответить | Правка | Наверх | Cообщить модератору |
8. «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от lotric | ||
5. лог полный клиента, не обрезанный с бесполезной инфой: ⏎30.03.2021, 12:50:36 Transport Error: socket_protect error (UDP) | ||
Ответить | Правка | Наверх | Cообщить модератору |
10. «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от Andrey (??), 31-Мрт-21, 08:48 | ||
Может в этом дело? Клиент на винде не может достучаться до сервера и на сервере поэтому нет логов от подключений виндовой машины? Тогда это не проблема OpenVPN, а проблема винды. Это вам на другой форум. > 5. лог полный клиента, не обрезанный с бесполезной инфой: Возьмите другую реализацию VPN. В которой будут только полезные с _вашей_ _точки_ _зрения_ логи. И третий раз для закрепления: повышайте уровень логирования. Потом изучайте логи. | ||
Ответить | Правка | Наверх | Cообщить модератору |
12 . «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от And (??), 02-Апр-21, 18:48 | ||
-verb n | ||
Ответить | Правка | К родителю #8 | Наверх | Cообщить модератору |
9. «openvpn не подключается на win10. на линукс все ок.» | +1 + / – | |
Сообщение от Аноним (9), 31-Мрт-21, 02:24 | ||
Удалить win10 и проблема решена. | ||
Ответить | Правка | Наверх | Cообщить модератору |
13 . «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от Аноним (13), 15-Май-21, 22:11 | ||
Строка proto в конфиге сервера и конфиге клиента точно совпадает? А если заменить её в обоих конфигах на proto udp4? А на proto udp6? А порт на сервере точно открыт для UDP, не TCP? | ||
Ответить | Правка | Наверх | Cообщить модератору |
14 . «openvpn не подключается на win10. на линукс все ок.» | + / – | |
Сообщение от дэнчик (?), 30-Июн-21, 14:17 | ||
Всё точно также. Решили как-то? Adblockdetector |