Page 1 of 1

Connect openVPN client in dreambox with Synology NAS

Posted: Thu Jul 11, 2013 9:21 pm
by esteen
Hi!

How should i do to connect my dreambox with openVPN to my synology NAS with VPN Server.
The NAS provides config file and ca.crt file but how should i add the usernamn and password?
I added a login.txt file with usernamn and password and pointed the config file to that file.
I get connected but constantly kicked out due to "undefined" user in the Synology NAS.
Anyone that have had the same problem?

Re: Connect openVPN client in dreambox with Synology NAS

Posted: Fri Jul 12, 2013 8:35 am
by esteen
esteen wrote:Hi!

How should i do to connect my dreambox with openVPN to my synology NAS with VPN Server.
The NAS provides config file and ca.crt file but how should i add the usernamn and password?
I added a login.txt file with usernamn and password and pointed the config file to that file.
I get connected but constantly kicked out due to "undefined" user in the Synology NAS.
Anyone that have had the same problem?
In my openvpn.ovpn the following code is written.

Code: Select all

comp-lzo
dev tun
tls-client

remote YOUR_SERVER_IP 1194

# 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

# 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

proto udp
script-security 2

ca ca.crt


reneg-sec 0

auth-user-pass
I changed my YOUR_SERVER_IP to my dyndns address.

I created a new file, login.txt and wrote login.txt after auth-user-path.

The login.txt file contains two rows.
usernamn
password

I have also tried to remove all hashtags, but nothing helps.

In my Synology VPN Server it says the following for the connection.
User: UNDEF, Client IP: 146.247.x.x (I'm not showing my full IP :) ), Dynamic IP: NOTHING, Protocol: OPENVPN,

what am i doing wrong?
anyone that have some idea?