no internet connection while vpn connecting

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Ghost108
OpenVpn Newbie
Posts: 3
Joined: Mon Sep 07, 2020 12:54 pm

no internet connection while vpn connecting

Post by Ghost108 » Tue Oct 12, 2021 6:46 pm

Hi !

I have a litte problem which I can't solve myself.
My Synology NAS is my openVPN server.

With my iPhone I can connect with problems.
If my vpn server is not reachable, my iPhone will reconnection endless - that's good !!

But: While my iPhone tries to reconnect, I can't access the internet.
I don't understand this because my internet traffic doesn't go via vpn.

Maybe you have an idea?
here is my config file:

Code: Select all

dev tun
tls-client

remote mydomain.de PORT

# The "float" tells OpenVPN to accept authenticated packets from any address,
# not only the address which was specified in the --remote option.
# This is useful when you are connecting to a peer which holds a dynamic address
# such as a dial-in user or DHCP client.
# (Please refer to the manual of OpenVPN for more information.)

#float

# If redirect-gateway is enabled, the client will redirect it's
# default network gateway through the VPN.
# It means the VPN connection will firstly connect to the VPN Server
# and then to the internet.
# (Please refer to the manual of OpenVPN for more information.)

#redirect-gateway def1

# dhcp-option DNS: To set primary domain name server address.
# Repeat this option to set secondary DNS server addresses.

#dhcp-option DNS DNS_IP_ADDRESS

pull

# If you want to connect by Server's IPv6 address, you should use
# "proto udp6" in UDP mode or "proto tcp6-client" in TCP mode
proto udp

script-security 2


comp-lzo

reneg-sec 0

cipher AES-256-CBC

auth SHA512

auth-user-pass
<ca>
-----BEGIN CERTIFICATE-----
XXX
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
XXX
-----END CERTIFICATE-----

</ca>

Post Reply