I’m attempting to start a OpenVPN connection to a Torguard.net server. The service is running, the instance is marked as enabled, and I clicked ‘start’.
The System Log contains these messages:
2017-05-05T20:08:13-05:00 err openvpn(net_torguard_us_new_jer[5966]: Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/net.torguard/udp/TorGuard.USA-NEW-JERSEY.ovpn:1: client (2.4.0)
2017-05-05T20:08:13-05:00 warning openvpn(net_torguard_us_new_jer[5966]: Use --help for more information.
2017-05-05T20:08:18-05:00 info hostapd: wlan0: STA c8:e0:eb:19:b5:29 WPA: group key handshake completed (RSN)
# cat TorGuard.USA-NEW-JERSEY.ovpn
client
dev tun
proto udp
remote nj.east.usa.torguardvpnaccess.com 1912
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
tls-auth ta.key 1
auth SHA256
cipher AES-128-CBC
remote-cert-tls server
auth-user-pass /etc/openvpn/net.torguard/credential.auth
comp-lzo
verb 1
reneg-sec 0
fast-io
# Uncomment these directives if you have speed issues
;sndbuf 393216
;rcvbuf 393216
;push "sndbuf 393216"
;push "rcvbuf 393216"
The ca.crt
, ta.key
, and credentials.auth
files exist and contain the correct data–I know they work because I copied them from a second Omnia (the VPN functions as expected).
What am I missing? Could it be a file encoding issue?
If it matters, each row in the .ovpn
file ends with ^M
, but this is present on the second Omnia as well.
** edit 1 **
I revised the /etc/config/openvpn
to add a second VPN instance. The resulting file:
config openvpn 'net_torguard_us_new_jersey_udp'
option config '/etc/openvpn/net.torguard/udp/TorGuard.USA-NEW-JERSEY.ovpn'
option enabled '1'
config openvpn 'net_torguard_vpn'
option dev 'tun'
option nobind '1'
option verb '3'
option comp_lzo 'yes'
option fast_io '1'
option client '1'
option proto 'udp'
option resolv_retry 'infinite'
option auth 'SHA256'
option cipher 'AES-128-CBC'
option ca '/etc/openvpn/net.torguard/ca.crt'
option tls_auth '/etc/openvpn/net.torguard/ta.key 1'
option auth_user_pass '/etc/openvpn/net.torguard/credential.auth'
option persist_tun '1'
option persist_key '1'
option remote_cert_tls 'server'
option reneg_sec '0'
list remote 'ny.east.usa.torguardvpnaccess.com 1912'
Attempts to start the second instance adds the following error to the System Log:
2017-05-05T20:20:50-05:00 err openvpn(net_torguard_vpn)[7327]: Options error: Unrecognized option or missing or extra parameter(s) in openvpn-net_torguard_vpn.conf:1: client (2.4.0)
2017-05-05T20:20:50-05:00 warning openvpn(net_torguard_vpn)[7327]: Use --help for more information.
** edit 2 **
# file -i openvpn
openvpn: text/plain; charset=us-ascii
# file -i /etc/openvpn/net.torguard/udp/TorGuard.USA-NEW-JERSEY.ovpn
/etc/openvpn/net.torguard/udp/TorGuard.USA-NEW-JERSEY.ovpn: text/plain; charset=us-ascii
# file -i /etc/openvpn/net.torguard/credential.auth
/etc/openvpn/net.torguard/credential.auth: text/plain; charset=us-ascii
# file -i /etc/openvpn/net.torguard/ca.crt
/etc/openvpn/net.torguard/ca.crt: text/plain; charset=us-ascii
# file -i /etc/openvpn/net.torguard/ta.key
/etc/openvpn/net.torguard/ta.key: text/plain; charset=us-ascii