Mac OpenVPN error: Transport Error: socket_protect error (UDP)

Problem Description

When using OpenVPN on some Macs to connect to the company network, an error occurs:

Transport Error: socket_protect error (UDP)
Client terminated, restarting in 2000 ms...

Reason:

When starting this OpenVPN, I don’t know why /var/run/agent_ovpnconnect.sockthe service did not start normally.

Solution one:

Manually start related services;
the disadvantage is that after restarting the computer, you have to manually enter related commands next time;

sudo /Library/Frameworks/OpenVPNConnect.framework/Versions/Current/usr/sbin/ovpnagent

Solution two:

Set the auto-loading command to load and start related services. You don’t need to manually enable them again after restarting the computer.

sudo launchctl load -w /Library/LaunchDaemons/org.openvpn.client.plist

Reference sources:

For details, please refer to: https://github.com/OpenVPN/openvpn3/issues/139

Guess you like

Origin blog.csdn.net/u013611126/article/details/131895750