Page 1 of 2

OpenVPN problems

Posted: Fri Oct 07, 2016 11:57 am
by Pratyay67
I installed the openVPN app on my Amahi HDA.

I forwarded the port on my Netgear AC750 router as: Port No: 1154 (both starting and ending, for both internal and external), UCP.
The internal IP: 192.168.1.5 (the HDA static IP)

Then I checked the openVPN tester on the HDA control panel, and it said "Inactive..Activate it". I rebooted the HDA as well as the router, to get the same message once again when I checked. Then I changed to TCP, as suggested in another discussion (where it worked switching to TCP), with no avail. I still got the same message.
I ran the windows openVPN client and each time the log stops at a line (with the current state still "connecting") which looks something like this:
UDPv4 link remote: (My internet IP address):1194

What's the way around this? I need help.

Re: OpenVPN problems

Posted: Fri Oct 07, 2016 1:43 pm
by bigfoot65
Recommend you check out OpenVPN Troubleshooting guide.

Re: OpenVPN problems

Posted: Tue Oct 11, 2016 8:05 am
by Pratyay67
I tried every possible internet resource, but still haven't been able to reach a solution. Every time I start the HDA and go the 'servers' tab in the dashboard, it shows with a red icon that the OpenVPN server is stopped. And no matter how many times I try to re-start it by the options just below, it won't start.
When I re-install the plugin itself, just after that, it shows that the OpenVPN server is running, but when I test it from the control panel, it shows the same message, 'Inactive..Enable it'.
When I reboot my HDA after that, it goes back to the red icon saying the openVPN server isn't running.

Help me out please, my resources have exhausted.

Re: OpenVPN problems

Posted: Tue Oct 11, 2016 9:48 am
by bigfoot65
Every time I start the HDA and go the 'servers' tab in the dashboard, it shows with a red icon that the OpenVPN server is stopped.
This is related to bug 1910 and should not affect the actual service.

Try the following:

Code: Select all

sudo systemctl status openvpn
but when I test it from the control panel, it shows the same message, 'Inactive..Enable it'.
The tester is not reliable on amahi.org. The key will be what the above command returns.

Also, your ISP could be blocking port 1194 or a firewall on your network. Have you checked out OpenVPN troubleshooting guidance? There may be some help there for your situation.

Re: OpenVPN problems

Posted: Thu Oct 13, 2016 9:40 am
by Pratyay67
Try the following:

Code: Select all
sudo systemctl status openvpn
Like you suggested, I ran it from the terminal, and it returned the two lines.

Loaded: not found (Reason: No such file or directory)
Active: Inactive (dead)

I tried changing the port to 443 from 1194 following the troubleshooting guide, but it didn't help.

Help me out.

Re: OpenVPN problems

Posted: Thu Oct 13, 2016 10:14 am
by bigfoot65
Please provide the URL for the following:

Code: Select all

apaste --sysinfo
Try the following command:

Code: Select all

sudo systemctl status openvpn@amahi

Re: OpenVPN problems

Posted: Thu Oct 13, 2016 10:48 am
by Pratyay67
Please provide the URL for the following:
https://paste.fedoraproject.org/449672/80488147

Re:
Well, I ran the command with @amahi added,

sudo systemctl status openvpn@amahi

and it showed it is working.

loaded : loaded
Active: Active (running) (in green)

Re: OpenVPN problems

Posted: Thu Oct 13, 2016 11:42 am
by Pratyay67
Well, then I connected my laptop to my cellphone data, and tried connecting through the HDAConnect tool in windows.

The log stops at:

Fri Oct 14 00:11:10 2016 UDPv4 link remote: (My External IP):1194

It doesn't connect.

Re: OpenVPN problems

Posted: Thu Oct 13, 2016 12:15 pm
by bigfoot65
It could be the port forwarding is not correct with your router. Did you check how to forward ports on it in the instructions?

Another issue could be a firewall on the router or network blocking traffic. I presume you only have 1 subnet and router on this network, correct.

Re: OpenVPN problems

Posted: Thu Oct 13, 2016 12:29 pm
by Pratyay67
For the port forwarding part:

Router: Netgear AC750
Service Type: UDP
External starting/ending port: 1194 (both)
Internal starting/ending port: 1194 (both)

I really don't have the resources to verify whether this is correct, so maybe you could help me out a bit.

As for your second question, my home network consists of 3 routers (one master and two slaves; the slaves connected LAN-LAN to the master with DHCP turned off).
And yes, I have one subnet set up on the master router.
I can't know (because of my limitations in knowledge) whether the services are being blocked by firewall; again maybe you could shed some light on it, can't you? :D :D