No connection to internet possible although connected to OpenVPN server

Ask questions about your Access Server configuration here.
Post Reply
imperator1982
OpenVpn Newbie
Posts: 3
Joined: Thu Mar 26, 2020 7:23 am

No connection to internet possible although connected to OpenVPN server

Post by imperator1982 » Thu Mar 26, 2020 2:34 pm

Transfered from viewtopic.php?f=4&t=29950

Hi all,

I need some help.

I have installed the latest OpenVPN version by using the description on the OpenVPN page (https://openvpn.net/download-open-vpn/) on my Intel Nuc computer on which I have installed Ubuntu 18.4.

The installation was completely done and I was also able to login to the OpenSVN admin page. It is also possible to connect my client (Mac) via OpenVPN Connect and I am also receiving the message that I am successfully connected (In the OpenVPN Connect itself and also on the server side). Unfortunatelly I cannot establish any communication to the internet (e.g www.google.com).

Is there something what I have missed to configure and could anyone of you please help to solve this issue? Please let me know in case of any logs are needed.

best regards

imperator1982
OpenVpn Newbie
Posts: 3
Joined: Thu Mar 26, 2020 7:23 am

Re: No connection to internet possible although connected to OpenVPN server

Post by imperator1982 » Thu Mar 26, 2020 2:44 pm

TinCanTech has already given me How To Link (viewtopic.php?f=30&t=22603)

Unfortunatelly I cannot find any server.conf files on my PC although I have searched for the file server.conf on my machine.

As written in my first post I have done the installation as described here: https://openvpn.net/download-open-vpn/
After that I have followed the quick starter guide: https://openvpn.net/vpn-server-resource ... ss-server/

I am aware that you are struggling with a lot of such requests every day. I would like to appologize for that and hope that someone can help me.

imperator1982
OpenVpn Newbie
Posts: 3
Joined: Thu Mar 26, 2020 7:23 am

Re: No connection to internet possible although connected to OpenVPN server

Post by imperator1982 » Sat Apr 11, 2020 9:53 pm

Hi there,

please find attached server.conf, the client configuration and the log file. Is any further information required?


Server Config
# OpenVPN Port, Protocol, and the Tun
port 1194
proto udp
dev tun
# OpenVPN Server Certificate - CA, server key and certificate
ca /etc/openvpn/server/ca.crt
cert /etc/openvpn/server/hakase-server.crt
key /etc/openvpn/server/hakase-server.key

#DH and CRL key
dh /etc/openvpn/server/dh.pem
crl-verify /etc/openvpn/server/crl.pem

# Network Configuration - Internal network
# Redirect all Connection through OpenVPN Server
server 10.5.0.0 255.255.255.0
push "redirect-gateway def1"

# Using the DNS from https://dns.watch
push "dhcp-option DNS 84.200.69.80"
push "dhcp-option DNS 84.200.70.40"

#Enable multiple clients to connect with the same certificate key
duplicate-cn

# TLS Security
cipher AES-256-CBC
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-CBC-SHA256
auth SHA512
auth-nocache

# Other Configuration
keepalive 20 60
persist-key
persist-tun
compress lz4
daemon
user nobody
group nogroup

# OpenVPN Log
log-append /var/log/openvpn.log
verb 3


Client Config

client
dev tun
proto udp
remote *DynDNS-Address* 1194

ca ca.crt
cert client01.crt
key client01.key

cipher AES-256-CBC
auth SHA512
auth-nocache
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-CBC-SHA256

resolv-retry infinite
compress lz4
nobind
persist-key
persist-tun
mute-replay-warnings
verb 3



logfile

PUSH: Received control message: 'PUSH_REQUEST'
SENT CONTROL []: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS ***,dhcp-option DNS ***,route 10.5.0.1,topology net3$
Data Channel: using negotiated cipher 'AES-256-GCM'
Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
SIGTERM[soft,remote-exit] received, client-instance exiting
TLS: Initial packet from [AF_INET]185.200.118.71:37954, sid=12121212 12121212
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
TLS Error: TLS handshake failed
SIGUSR1[soft,tls-error] received, client-instance restarting

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 7131
Joined: Fri Jun 03, 2016 1:17 pm

Re: No connection to internet possible although connected to OpenVPN server

Post by TinCanTech » Sun Apr 12, 2020 1:43 pm

You are not using Access Server so don't read the wrong documentation.

https://community.openvpn.net/openvpn/wiki/HOWTO

Post Reply