What's new
SNBForums

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Stuck on OpenVPN: Looking up DNS name

JohnnyBeGood

Regular Contributor
Hi all,

I already have PPTP server set up successfully and wanted to see if I can get faster connection speed using OpenVPN (although I've read PPTP is faster).
This is what I've done:
1.created user name and password
2. exported OpenVPN configuration file
3. Installed OpenVPN connect app on my S4
4. Imported file into app

When I try to connect it sits on " OpenVPN: Looking up DNS name" after some time it times out. Before I start changing setting that I'm not familiar with what else I need to do?
Open certain ports?

uploadfromtaptalk1397879339776.jpg

uploadfromtaptalk1397879373180.jpg

TIA

Sent from my SCH-I545 using Tapatalk
 
is the server's ip/ddns address in the ovpn? it may be simpler if you could post your configuration. the exported configuration shouldn't have any keys afaik, but if there are, omit them.

assuming you have DDNS setup if you've had PPTP working
 
Thanks for taking time to reply!

Here's what's in client1.ovpn with X's for private key parts

Code:
client
dev tun
proto udp
remote linux 1194
float
comp-lzo adaptive
keepalive 15 60
<ca>
-----BEGIN CERTIFICATE-----
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-----END PRIVATE KEY-----
</key>
ns-cert-type server
resolv-retry infinite
nobind
 
Thanks for taking time to reply!

Here's what's in client1.ovpn with X's for private key parts

Code:
remote linux 1194

"linux" is not a resolvable name on the Internet. Make sure you enter a FQDN name there which can be resolved over the Internet.
 
"linux" is not a resolvable name on the Internet. Make sure you enter a FQDN name there which can be resolved over the Internet.
Ok, for pointing it out. I'm using namecheap for my DDNS service and I have mydomain.net registered with them. Ever since I've setup on the main page I get this:

linux.JPG

Instead of linux.mydomain.net



Here's the DDNS page:

ddns.jpg

To solve this issue I could edit client1.ovpn file and change linux into linux.mydomain.net ?
 
Ok, for pointing it out. I'm using namecheap for my DDNS service and I have mydomain.net registered with them. Ever since I've setup on the main page I get this:

View attachment 2230

Instead of linux.mydomain.net



Here's the DDNS page:

View attachment 2231

To solve this issue I could edit client1.ovpn file and change linux into linux.mydomain.net ?

As I said, don't use just "linux" as the hostname, but the FQDN. Have you tried doing that on the DDNS config page too?
 
As I said, don't use just "linux" as the hostname, but the FQDN. Have you tried doing that on the DDNS config page too?
Hi RMerlin,
Thanks for all your hard work!

When I enter linux.mydomain.net as hostname under DDNS config page I get error: see below, it accepts only linux and not linux.mydomain.net

linux.jpg

linux2.jpg
 
Hi RMerlin,
Thanks for all your hard work!

When I enter linux.mydomain.net as hostname under DDNS config page I get error: see below, it accepts only linux and not linux.mydomain.net

View attachment 2233

View attachment 2234

heya, you need to manually edit the OVPN for the destination ip/FQDN.

remote linux 1194 < should read like;

remote linux.mydomain.net 1194 if this is properly yours and being updated with your IP
 
heya, you need to manually edit the OVPN for the destination ip/FQDN.

remote linux 1194 < should read like;

remote linux.mydomain.net 1194 if this is properly yours and being updated with your IP

Howdy. I did that already but when I connect there's no Internet.

Sent from my SCH-I545 using Tapatalk
 
Howdy. I did that already but when I connect there's no Internet.

Sent from my SCH-I545 using Tapatalk

assuming you have verified that your DDNS is properly resolving to your WAN IP; try adding the line 'float' to your client OVPN

[edit1] and see attached [/edit2]

[edit2/] it would appear that the OVPN export function already adds float, so nix that, sorry. is your server config set as in the attached image?
 

Attachments

  • ovpn_server_settings.JPG
    ovpn_server_settings.JPG
    28.2 KB · Views: 1,457
Last edited:
assuming you have verified that your DDNS is properly resolving to your WAN IP; try adding the line 'float' to your client OVPN

[edit1] and see attached [/edit2]

[edit2/] it would appear that the OVPN export function already adds float, so nix that, sorry. is your server config set as in the attached image?

Tried just now and I was able to tunnel thru my connection and I had internet!
So, looks like issue was with my DDNS issue that RMerlin pointed out. For whatever reason even after I've changed to linux.mydomain.net I did not had any internet even though I was connected.

I've tried with "Server 2" and left everything at default as I had internet once connected.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top