# +---------------------------+
# |Cognitive Cryptography  VPN|
# |  http://vpn.ccrypto.org/  |
# +---------------------------+
# ${username}${'/'+profile.name if profile else ' (default profile)'}

verb 4
client
tls-client
script-security 2
remote-cert-tls server
dev tun0

auth-user-pass
# you can use this and put username/password, one per line, in a file
# auth-user-pass cred.txt

remote-random-hostname

% if force_udp:
remote ${gateway} 1194 udp
% elif force_tcp:
remote ${gateway} 443 tcp
% else:
<connection>
remote ${gateway} 1194 udp
remote ${gateway} 443 tcp
</connection>
% endif

resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo

% if dhcp:
dhcp-option DNS 10.99.0.20
% endif

# Change default routes
redirect-gateway def1

% if ipv6:
tun-ipv6
route-ipv6 2000::/3 
%endif

% if windows_dns:
# Force Windows to apply new DNS settings
#register-dns
% endif

% if resolvconf:
# Update DNS with resolvconf
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
% endif

<ca>
${openvpn_ca}</ca>


# +---------------------------+
# |Cognitive Cryptography  VPN|
# |  http://vpn.ccrypto.org/  |
# +---------------------------+
# ${username}${'/'+profile.name if profile else ' (default profile)'}

verb 4
client
tls-client
script-security 2
remote-cert-tls server
dev tun
tcp-nodelay

auth-user-pass
# you can use this and put username/password, one per line, in a file
# auth-user-pass cred.txt

remote-random-hostname

% if force_udp:
remote ${gateway} 1194 udp
% elif force_tcp:
remote ${gateway} 443 tcp
% else:
<connection>
remote ${gateway} 1194 udp
remote ${gateway} 443 tcp
</connection>
% endif

resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo

% if dhcp:
dhcp-option DNS 10.99.0.20
% endif

# Change default routes
redirect-gateway def1

% if ipv6:
tun-ipv6
route-ipv6 2000::/3 
%endif

% if windows_dns:
# Force Windows to apply new DNS settings
#register-dns
% endif

% if resolvconf:
# Update DNS with resolvconf
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
% endif

<ca>
${openvpn_ca}</ca>


Fix --tun device name and add --tcp-nodelay
Fix --tun device name and add --tcp-nodelay
