Cannot get OpenVPN working
Posted: Sun Dec 11, 2016 11:13 am
I have tried for several hours over a few days and I'm getting nowhere, so turning here for help.
I'm running Amahi 8 and I'm trying to finally enable external access to my HDA. I wanted to setup and test OpenVPN on my Android phone since that's the easiest way to ensure I'm on an external network that's not using the 192.168.x.x addressing on the client.
My Android phone is running 6.0 and is not rooted.
Here's what I've done so far and my results:
1. I have installed OpenVPN using the app from the site.
2. Went to my Control Panel to test VPN. Test was successful.
3. Installed OpenVPN for Android from the Play Store.
4. Followed the OpenVPN for Android wiki to configure the OpenVPN client on my phone.
5. I could not connect, so I followed the OpenVPN Troubleshooting guide. From that, I found that my ISP Bell is likely blocking 1194 UDP port forwarding. So, I switched to 1194 TCP using the steps in the guide. Restarted openvpn service on amahi and restarted my client on the phone. Tried connecting, but couldn't.
6. I noticed the TLS handshake error in my client's log, so I followed the steps in this guideto fix that.
7. Tried connecting again... nope! Tried the VPN Tester on the Contorl Panel and that's now reporting that VPN is Inactive. I'm getting these errors in my OpenVPN client on Android:
12:43PM TCP/UDP: Preserving recently used remote address: [AF_INET]142.x.x.x:1194
12:43PM Attempting to establish TCP connection with [AF_INET]142.x.x.x:1194 [nonblock]
12:43PM TCP connection established with [AF_INET]142.x.x.x:1194
12:43PM TCP_CLIENT link local: (notbound)
12:43PM TCP_CLIENT link remote: [AF_INET]142.x.x.x:1194
12:43PM Connection reset, restarting [0]
12:43PM SIGUSR1[soft,connection-reset] received, process restarting
8. Not understanding the above error, I went to check the amahi.conf file on my HDA. In it, I spotted that the entries for the push route etc. seemed incorrect and the DNS IP was incorrect as well. It was from my original configuration and since then I switched ISPs and their router uses a different gateway. So, I updated the IPs in the config file. But why did my OpenVPN Tester from my control panel work before I switched the protocol to TCP even with these IP addresses? Should I have left them alone?
9. Still cannot connect. OpenVPN Tester reports "Inactive ...enable it." However, running status command on my HDA shows that OpenVPN is active and running.
I'm at a complete loss as to what to try next and now I have heavily configured the files on both server and client sides following the above tutorials. Please help!
Thank you.
I'm running Amahi 8 and I'm trying to finally enable external access to my HDA. I wanted to setup and test OpenVPN on my Android phone since that's the easiest way to ensure I'm on an external network that's not using the 192.168.x.x addressing on the client.
My Android phone is running 6.0 and is not rooted.
Here's what I've done so far and my results:
1. I have installed OpenVPN using the app from the site.
2. Went to my Control Panel to test VPN. Test was successful.
3. Installed OpenVPN for Android from the Play Store.
4. Followed the OpenVPN for Android wiki to configure the OpenVPN client on my phone.
5. I could not connect, so I followed the OpenVPN Troubleshooting guide. From that, I found that my ISP Bell is likely blocking 1194 UDP port forwarding. So, I switched to 1194 TCP using the steps in the guide. Restarted openvpn service on amahi and restarted my client on the phone. Tried connecting, but couldn't.
6. I noticed the TLS handshake error in my client's log, so I followed the steps in this guideto fix that.
7. Tried connecting again... nope! Tried the VPN Tester on the Contorl Panel and that's now reporting that VPN is Inactive. I'm getting these errors in my OpenVPN client on Android:
12:43PM TCP/UDP: Preserving recently used remote address: [AF_INET]142.x.x.x:1194
12:43PM Attempting to establish TCP connection with [AF_INET]142.x.x.x:1194 [nonblock]
12:43PM TCP connection established with [AF_INET]142.x.x.x:1194
12:43PM TCP_CLIENT link local: (notbound)
12:43PM TCP_CLIENT link remote: [AF_INET]142.x.x.x:1194
12:43PM Connection reset, restarting [0]
12:43PM SIGUSR1[soft,connection-reset] received, process restarting
8. Not understanding the above error, I went to check the amahi.conf file on my HDA. In it, I spotted that the entries for the push route etc. seemed incorrect and the DNS IP was incorrect as well. It was from my original configuration and since then I switched ISPs and their router uses a different gateway. So, I updated the IPs in the config file. But why did my OpenVPN Tester from my control panel work before I switched the protocol to TCP even with these IP addresses? Should I have left them alone?
9. Still cannot connect. OpenVPN Tester reports "Inactive ...enable it." However, running status command on my HDA shows that OpenVPN is active and running.
I'm at a complete loss as to what to try next and now I have heavily configured the files on both server and client sides following the above tutorials. Please help!
Thank you.