| Linode Forum https://forum.linode.com/ |
|
| How to I set OpenVPN to use passwords? https://forum.linode.com/viewtopic.php?f=19&t=11270 |
Page 1 of 1 |
| Author: | John Henry Eden [ Sat Aug 30, 2014 9:45 am ] |
| Post subject: | How to I set OpenVPN to use passwords? |
Android device VPN setup requires passwords, not keys, so how to I configure OpenVPN for that? I'm looking at this guide: https://www.linode.com/docs/networking/ ... d-debian-7 |
|
| Author: | hawk7000 [ Sat Aug 30, 2014 10:11 am ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
John Henry Eden wrote: Android device VPN setup requires passwords, not keys, so how to I configure OpenVPN for that? I'm looking at this guide: https://www.linode.com/docs/networking/ ... d-debian-7 What OpenVPN client are you using? I just verified that https://play.google.com/store/apps/deta ... pn.openvpn works just fine with certs/keys (embedded in the .ovpn profile that you import). Edit: You may want to look at https://community.openvpn.net/openvpn/w ... nPage#lbAV for some details on how to put the certificates inline. |
|
| Author: | sweh [ Sat Aug 30, 2014 10:45 am ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
I also use that openvpn client on my phone and other android devices, and can confirm it works just fine with key based authentication. |
|
| Author: | John Henry Eden [ Sat Aug 30, 2014 10:48 am ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
As long as it doesn't require root, good find. I was using the settings before. What's the IPtables rule to open the default port on the firewall? EDIT When I tried to use that, it only seems to have options for importing a profile from a website. |
|
| Author: | hawk7000 [ Sat Aug 30, 2014 10:58 am ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
John Henry Eden wrote: As long as it doesn't require root, good find. I was using the settings before. What's the IPtables rule to open the default port on the firewall? It doesn't require root, only a somewhat modern Android version (4.x). As for "the settings", I don't believe stock Android has OpenVPN in the normal vpn settings, so I suppose it depends on what exactly you're running. |
|
| Author: | hawk7000 [ Sat Aug 30, 2014 10:59 am ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
John Henry Eden wrote: EDIT When I tried to use that, it only seems to have options for importing a profile from a website. A local file works fine. |
|
| Author: | John Henry Eden [ Sat Aug 30, 2014 12:10 pm ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
How to I create the .ovpn file? What should I use in IPtables to open the port? |
|
| Author: | hawk7000 [ Sat Aug 30, 2014 12:30 pm ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
John Henry Eden wrote: How to I create the .ovpn file? What should I use in IPtables to open the port? The .ovpn file is just an OpenVPN configuration file, just like the one in the guide you referenced initially. As I mentioned before, I think you'll want to put the certificates/keys inline instead of referencing separate files, though. With just raw iptables it would be something like this: Code: iptables -A INPUT -p udp -m udp --dport 1194 -j ACCEPT However, you probably want to look at whether you are using some firewall manager like ufw, firewalld, etc. If so, you'll probably want to use that to add your new rule. |
|
| Author: | John Henry Eden [ Sat Aug 30, 2014 12:46 pm ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
Thanks. I'm going use a file that contains iptables instructions, as suggested in the Linode guide. So the .opvn file just contains the paths to the various files created by the VPN? Is that something that I have to set up on the device? |
|
| Author: | hawk7000 [ Sat Aug 30, 2014 1:03 pm ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
John Henry Eden wrote: Thanks. I'm going use a file that contains iptables instructions, as suggested in the Linode guide. So the .opvn file just contains the paths to the various files created by the VPN? Is that something that I have to set up on the device? The .ovpn file contains ALL of the openvpn client configuration. If you're following the Linode guide, with the addition of putting the certs/keys inline, it would look like this (same template as suggested there): Code: ############################################## |
|
| Author: | John Henry Eden [ Sat Aug 30, 2014 1:32 pm ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
I have the files: Code: ca.crt So the way I set up the file would be like this? Code: ############################################## |
|
| Author: | John Henry Eden [ Sat Aug 30, 2014 1:50 pm ] |
| Post subject: | Re: How to I set OpenVPN to use passwords? |
Just added that file to the device and I got this error on trying to connect: Code: open ssl core error polarssl error parsing ca certificate : pem - pem string is not as expected : base64 - invalid character in input EDIT I literally copied that file, with the example file paths. EDIT So am I supposed to copy the values from those key files into these sections? Code: <ca> EDIT I just configured the .ovpn file the way that the guide describes. The connection keeps timing out when I try to connect the Android client. EDIT Just finished with the guide, and the connection still times out. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|