[Resolved] Can't connect to OpenVPN Server from MacOS Client.
Posted: Tue Nov 16, 2021 3:19 pm
Fresh install of OpenVPN on Ubuntu 20.04.3 and I'm having issues connecting a client from my MacOS.
I created a client for my iPhone and it connects with no issue (*edit* just tested from Windows box and it works fine), so that seemiling rules out a lot of things. When I look at the server logs located at /var/log/syslog, I see no mention of the connect attempt from the Mac, but I do see all the connection info from the iphone. So there is definitely some sort of disconnect. I was thinking maybe firewall on my Mac?
Here is part of the OpenVPN log file on my MacOS. I see this repeated several times. Any help is appreciated as I'm traveling soon and really would like to be able to access my home network!
Note* I replaced the domain name it's trying to connect to with xxx for privacy.
[Nov 16, 2021, 07:12:45] Connecting to [xxxxxxx.net]:1398 (192.168.0.228) via UDPv4
[Nov 16, 2021, 07:12:55] Server poll timeout, trying next remote entry...
[Nov 16, 2021, 07:12:55] EVENT: RECONNECTING ⏎[Nov 16, 2021, 07:12:55] EVENT: RESOLVE ⏎[Nov 16, 2021, 07:12:55] Contacting 192.168.0.228:1398 via UDP
[Nov 16, 2021, 07:12:55] EVENT: WAIT ⏎[Nov 16, 2021, 07:12:55] UnixCommandAgent: transmitting bypass route to /var/run/agent_ovpnconnect.sock
{
"host" : "192.168.0.228",
"ipv6" : false,
"pid" : 597
}
[Nov 16, 2021, 07:12:55] Connecting to [xxxxxxxxx.ddns.net]:1398 (192.168.0.228) via UDPv4
[Nov 16, 2021, 07:13:05] Server poll timeout, trying next remote entry...
[Nov 16, 2021, 07:13:05] EVENT: RECONNECTING ⏎[Nov 16, 2021, 07:13:05] EVENT: RESOLVE ⏎[Nov 16, 2021, 07:13:05] Contacting 192.168.0.228:1398 via UDP
[Nov 16, 2021, 07:13:05] EVENT: WAIT ⏎[Nov 16, 2021, 07:13:05] UnixCommandAgent: transmitting bypass route to /var/run/agent_ovpnconnect.sock
{
"host" : "192.168.0.228",
"ipv6" : false,
"pid" : 597
}
I also see this message multiple times early in the logs. But havent seen it recently, meaning subsequent attempts to connect do not produce this message, it just produces the messages above.
[Nov 16, 2021, 05:43:35] UDP send exception: send: Can't assign requested address
I created a client for my iPhone and it connects with no issue (*edit* just tested from Windows box and it works fine), so that seemiling rules out a lot of things. When I look at the server logs located at /var/log/syslog, I see no mention of the connect attempt from the Mac, but I do see all the connection info from the iphone. So there is definitely some sort of disconnect. I was thinking maybe firewall on my Mac?
Here is part of the OpenVPN log file on my MacOS. I see this repeated several times. Any help is appreciated as I'm traveling soon and really would like to be able to access my home network!
Note* I replaced the domain name it's trying to connect to with xxx for privacy.
[Nov 16, 2021, 07:12:45] Connecting to [xxxxxxx.net]:1398 (192.168.0.228) via UDPv4
[Nov 16, 2021, 07:12:55] Server poll timeout, trying next remote entry...
[Nov 16, 2021, 07:12:55] EVENT: RECONNECTING ⏎[Nov 16, 2021, 07:12:55] EVENT: RESOLVE ⏎[Nov 16, 2021, 07:12:55] Contacting 192.168.0.228:1398 via UDP
[Nov 16, 2021, 07:12:55] EVENT: WAIT ⏎[Nov 16, 2021, 07:12:55] UnixCommandAgent: transmitting bypass route to /var/run/agent_ovpnconnect.sock
{
"host" : "192.168.0.228",
"ipv6" : false,
"pid" : 597
}
[Nov 16, 2021, 07:12:55] Connecting to [xxxxxxxxx.ddns.net]:1398 (192.168.0.228) via UDPv4
[Nov 16, 2021, 07:13:05] Server poll timeout, trying next remote entry...
[Nov 16, 2021, 07:13:05] EVENT: RECONNECTING ⏎[Nov 16, 2021, 07:13:05] EVENT: RESOLVE ⏎[Nov 16, 2021, 07:13:05] Contacting 192.168.0.228:1398 via UDP
[Nov 16, 2021, 07:13:05] EVENT: WAIT ⏎[Nov 16, 2021, 07:13:05] UnixCommandAgent: transmitting bypass route to /var/run/agent_ovpnconnect.sock
{
"host" : "192.168.0.228",
"ipv6" : false,
"pid" : 597
}
I also see this message multiple times early in the logs. But havent seen it recently, meaning subsequent attempts to connect do not produce this message, it just produces the messages above.
[Nov 16, 2021, 05:43:35] UDP send exception: send: Can't assign requested address