Your blood is worth bottling...
In other words success!
Final (Working) Config
server.conf
port 1194 #- port
proto udp #- protocol
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
reneg-sec 0
cipher BF-CBC
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
tls-auth /etc/openvpn/easy-rsa/2.0/keys/ta.key 0
#plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login #- Comment this line if you are using FreeRADIUS
#plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf #- Uncomment this line if you are using FreeRADIUS
#client-cert-not-required
#username-as-common-name
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status 1194.log
verb 3
client.ovpn
client
dev tun
;dev-node TAP-Windows Adapter V9
proto udp
remote 178.18.26.106 1194
;remote-random
resolv-retry infinite
nobind
;user vpnuser
;group vpnuser
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\lazer3.crt"
key "C:\\Program Files\\OpenVPN\\config\\lazer3.key"
ns-cert-type server
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 1
cipher BF-CBC
comp-lzo
verb 3
;mute 20
/var/log/messages
Nov 20 14:05:36 pchost openvpn[552]: MULTI: multi_create_instance called
Nov 20 14:05:36 pchost openvpn[552]: 122.150.29.92:60734 Re-using SSL/TLS context
Nov 20 14:05:36 pchost openvpn[552]: 122.150.29.92:60734 LZO compression initialized
Nov 20 14:05:36 pchost openvpn[552]: 122.150.29.92:60734 Control Channel MTU parms [ L:1574 D:166 EF:66 EB:0 ET:0 EL:0 ]
Nov 20 14:05:36 pchost openvpn[552]: 122.150.29.92:60734 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 ET:32 EL:0 AF:3/1 ]
Nov 20 14:05:36 pchost openvpn[552]: 122.150.29.92:60734 Local Options hash (VER=V4): '7cd8ed90'
Nov 20 14:05:36 pchost openvpn[552]: 122.150.29.92:60734 Expected Remote Options hash (VER=V4): 'ec497616'
Nov 20 14:05:36 pchost openvpn[552]: 122.150.29.92:60734 TLS: Initial packet from 122.150.29.92:60734, sid=92f6d619 23089bef
Nov 20 14:05:38 pchost openvpn[552]: 122.150.29.92:60734 VERIFY OK: depth=1, /C=AU/ST=QLD/L=Maryborough/O=Compersol-AU.Com/OU=PCHost.Org-OpenVPN/CN=pchost.org/name=PCHost.Org-OpenVPN/emailAddress=Admin@PCHost.org
Nov 20 14:05:38 pchost openvpn[552]: 122.150.29.92:60734 VERIFY OK: depth=0, /C=AU/ST=QLD/L=Maryborough/O=Compersol-AU.Com/OU=PCHost.Org-OpenVPN/CN=server/name=PCHost.Org-OpenVPN/emailAddress=Admin@PCHost.org
Nov 20 14:05:39 pchost openvpn[552]: 122.150.29.92:60734 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1574', remote='link-mtu 1542'
Nov 20 14:05:39 pchost openvpn[552]: 122.150.29.92:60734 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
Nov 20 14:05:39 pchost openvpn[552]: 122.150.29.92:60734 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Nov 20 14:05:39 pchost openvpn[552]: 122.150.29.92:60734 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Nov 20 14:05:39 pchost openvpn[552]: 122.150.29.92:60734 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Nov 20 14:05:39 pchost openvpn[552]: 122.150.29.92:60734 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Nov 20 14:05:39 pchost openvpn[552]: 122.150.29.92:60734 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Nov 20 14:05:39 pchost openvpn[552]: 122.150.29.92:60734 [server] Peer Connection Initiated with 122.150.29.92:60734
Nov 20 14:05:39 pchost openvpn[552]: server/122.150.29.92:60734 MULTI: Learn: 10.8.0.6 -> server/122.150.29.92:60734
Nov 20 14:05:39 pchost openvpn[552]: server/122.150.29.92:60734 MULTI: primary virtual IP for server/122.150.29.92:60734: 10.8.0.6
Nov 20 14:05:42 pchost openvpn[552]: server/122.150.29.92:60734 PUSH: Received control message: 'PUSH_REQUEST'
Nov 20 14:05:42 pchost openvpn[552]: server/122.150.29.92:60734 SENT CONTROL [server]: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route 10.8.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.8.0.6 10.8.0.5' (status=1)
Nov 20 14:05:42 pchost openvpn[552]: server/122.150.29.92:60734 IPv6 in tun mode is not supported in OpenVPN 2.2
Thankyou Debbie... I would have given up.. I was completely "over it"..
Of course I wonder why no one else said to comment out:
#plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login #- Comment this line if you are using FreeRADIUS
#plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf #- Uncomment this line if you are using FreeRADIUS
#client-cert-not-required
#username-as-common-name
??
I noticed a few days ago that
/etc/pam.d/login
didn't even exist on either version of Centos..
I guess when I had previously tried to comment out the
#plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login #- Comment this line if you are using FreeRADIUS
line.. Other things must have been screwed up. *sigh
Thanks again Debbie 🙂