I have Configured my Synology NAS as a OpenVPN Server, and have connections to it from tunnelblick on mac functioning. I am trying to configure my portable router as a auto connect client into my home network. I have installed the openvpn openssl via the command line on the router. I get a error
root@OpenWrt:~# openvpn vpn.ovpn
Options error: Unrecognized option or missing parameter(s) in vpn.ovpn:2: tls-client (2.3.6)
Use --help for more information.
root@OpenWrt:~#
I will be the first to admit, i dont fully understand the certificates and authorization that is happening with openvpn. I just know, i took the config file from the synology server, and plopped it in the desktop app and gave it my username and password and it worked... This doesnt seem to be as friendly.
Here is said config file. Any pointers would be appreciated. I have a auth.txt file that includes the username on line 1 and the password on line 2, omitted for obvious reasons.
dev tun
tls-client
remote omited.us 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 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 BF-CBC
auth SHA1
auth-user-pass auth.txt
<ca>
-----BEGIN CERTIFICATE-----
Ommited
-----END CERTIFICATE-----
</ca>