• December 03, 2021, 09:21:49 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Need help setting up OpenVPN connection with Android phone  (Read 2333 times)

Clonimus74

  • Level 1 Member
  • *
  • Posts: 3
Need help setting up OpenVPN connection with Android phone
« on: December 03, 2020, 11:15:32 PM »

Hi,

My DSR-250 is unning the latest firmware 3.17B401C_WW.
I can't figure out how to establish VPN connection, using OpneVPN, with my Android Phone (OpenVPN app)

Can anyone help?
Thank you
Logged

Mr.Mom

  • Technical Engineer
  • Level 2 Member
  • *
  • Posts: 57
Re: Need help setting up OpenVPN connection with Android phone
« Reply #1 on: December 04, 2020, 12:47:22 PM »

If you created a OpenVPN on the DSR-250 do PCs with the certificate connect with any issues.
Logged

Clonimus74

  • Level 1 Member
  • *
  • Posts: 3
Re: Need help setting up OpenVPN connection with Android phone
« Reply #2 on: December 05, 2020, 04:15:08 AM »

I tried with both a PC and Android phone, with the same results.

I don't know how to properly create the certificate.

Here is what I did:
I went to Security»Authentication»Internal User Database»Groups and Users add an group and user for openvpn
I did the following in the OpenVPN settings


In "remote network I have no idea what I should put there, as there's no constant network from which I will be connecting, I'm connecting from the internet and not some known local network.


In OpenVPN app I entered my DDNS address, I tried with and without specifying the port number


I received an error: "Faild to import profile - Host is unreachable"

I tried to go to the VPN>>OpenVPN>>omni Ssl Configuration, and tried to add and download new client configuration file (ovpn), and load it to the OpenVPN phone app, and I received the error: "Failed to parse profile: option_error: remote option not specified"

Logged

Mr.Mom

  • Technical Engineer
  • Level 2 Member
  • *
  • Posts: 57
Re: Need help setting up OpenVPN connection with Android phone
« Reply #3 on: December 07, 2020, 02:32:13 PM »

3.   Now go to VPN»OpenVPN»Remote Networks to setting remote client network informations,
Server need to Push routes to the client(If client had private network behind it) to allow it to reach other private subnets behind the server.
Hence we need to add remote networks in server as follows.

i.For userbased authentication:
common name:"User name which client used to connect"
Remote network:"Private network of the client"
remote netmask:"Remote private network's subnet mask"

ii.For certificate based only or userbased+ certificate based authentication:
common name:"common name of the client certificate" (default certificate common name is client)
Remote network:"Private network of the client"
remote netmask:"Remote private network's subnet mask"
Logged

Clonimus74

  • Level 1 Member
  • *
  • Posts: 3
Re: Need help setting up OpenVPN connection with Android phone
« Reply #4 on: December 13, 2020, 10:12:27 AM »

But what would be the values of:
Remote network:"Private network of the client"
remote netmask:"Remote private network's subnet mask"

If I'm using an Android phone that doesn't have static IP (not sure about the subnet mask, if it is constant)????


3.   Now go to VPN»OpenVPN»Remote Networks to setting remote client network informations,
Server need to Push routes to the client(If client had private network behind it) to allow it to reach other private subnets behind the server.
Hence we need to add remote networks in server as follows.

i.For userbased authentication:
common name:"User name which client used to connect"
Remote network:"Private network of the client"
remote netmask:"Remote private network's subnet mask"

ii.For certificate based only or userbased+ certificate based authentication:
common name:"common name of the client certificate" (default certificate common name is client)
Remote network:"Private network of the client"
remote netmask:"Remote private network's subnet mask"
Logged