Hi. OK, understood !
This is my server.conf;
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
tls-auth ta.key 0
key-direction 0
cipher AES-128-CBC
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
I have no idea what version of OpenVPN I'm running - I just followed the guide and installed it with "sudo apt-get openvpn" on Ubuntu.
On my client (linux), I just type in "sudo openvpn --config client1.ovpn" and it asks for my local sudo password then I'm up and running. It never asks for a username and password. I'm sure it must be something in that server.conf, but I can't see where.
My client1.ovpn is; (edited for security);
client
dev tun
proto udp
remote <my server's ip> 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-128-CBC
auth SHA256
key-direction 1
comp-lzo
verb 3
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
<ca>
-----BEGIN CERTIFICATE-----
<certificate data>
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: sha256WithRSAEncryption
<more certificate data>
-----BEGIN CERTIFICATE-----
<and more certificate data!>
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
<private key data>
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
<Static Key data>
-----END OpenVPN Static key V1-----
</tls-auth>