Deprecated Options in OpenVPN

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

Deprecated Options in OpenVPN

Post by rseiler »

Using the latest OpenVPN client (as opposed to some older ones, which didn't show this), I've noticed a warning coming up in the log displayed in the client:

"WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead."

I then found this page, which explains it:
https://community.openvpn.net/openvpn/w ... -cert-type

I don't see where --ns-cert-type is being used, however. It's not obviously in server.conf, and it's not in my .ovpn. So I bring it up here in case it's something beyond our control that maybe should be updated in the ROM at some point, possibly along with some of the others on that page, if applicable.

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Deprecated Options in OpenVPN

Post by ispyisail »

I have also reported this

https://github.com/ericpaulbishop/gargoyle/issues/663

I'm not sure its at the critical level?

rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

Re: Deprecated Options in OpenVPN

Post by rseiler »

It doesn't seem critical, since worst case we could just stick with the current client, but eventually it might be a problem (it sounds like --ns-cert-type might still be OK with 2.5, depending on whether the remapping they mention works).

I should mention that I also get the password cache warning, but I assumed that was my doing, since I've implemented a workaround to eliminate the need for the user to enter a password. Apparently not though.

For whatever reason, I don't get the other three you mentioned (--keysize and the two about ciphers), so those would seem to relate to configuration choices. We could always compare notes on that.

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Deprecated Options in OpenVPN

Post by ispyisail »

so those would seem to relate to configuration choices.
I use the default settings, maybe the Gargoyle defaults should be increased?

Down side is CPU capacity?

Image

rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

Re: Deprecated Options in OpenVPN

Post by rseiler »

Same here except for my use of "AES-CBC 128bit," which I'm using probably based on searching around to see which one I should be using (i.e. I don't recall the specific reasons now).

Based on your error message though ("INSECURE cipher with block size less than 128 bit (64 bit)...Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC)"), I have to wonder why I don't also get the warning, as I'm not using 256bit. Actually, it says less than 128bit. Hmmm.

I never tested 256bit to see the impact on CPU, but it might be substantial, since that's a huge difference.

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Deprecated Options in OpenVPN

Post by ispyisail »

New Test

Image

Code: Select all

Thu Oct 12 10:54:09 2017 WARNING: --keysize is DEPRECATED and will be removed in OpenVPN 2.6

Code: Select all

Thu Oct 12 10:54:09 2017 WARNING: --ns-cert-type is DEPRECATED.  Use --remote-cert-tls instead.

Code: Select all

Thu Oct 12 10:54:11 2017 WARNING: cipher with small block size in use, reducing reneg-bytes to 64MB to mitigate SWEET32 attacks.

Code: Select all

Thu Oct 12 10:54:16 2017 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Deprecated Options in OpenVPN

Post by ispyisail »

When I change to

Image

Only two errors

Code: Select all

Thu Oct 12 11:09:45 2017 WARNING: --ns-cert-type is DEPRECATED.  Use --remote-cert-tls instead.

Code: Select all

Thu Oct 12 11:09:51 2017 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Deprecated Options in OpenVPN

Post by ispyisail »

Current Server Config

Code: Select all

client
remote          192.168.10.141 1194
dev             tun
proto           udp
status          current_status
resolv-retry    infinite
ns-cert-type    server
topology        subnet
verb            3

cipher          BF-CBC
keysize               128

ca              ca.crt
cert            client1.crt
key             client1.key
tls-auth        ta.key 1

nobind
persist-key
persist-tun
comp-lzo
Looks like we need to change

Code: Select all

ns-cert-type    server
to

Code: Select all

--remote-cert-tls server
and add

Code: Select all

-- use the auth-nocache

rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

Re: Deprecated Options in OpenVPN

Post by rseiler »

Based on the first and second of your new messages, I guess we can conclude that the warning is more about Blowfish than the bits. Maybe it's Blowfish that's deprecated.

On your last message, is that /etc/openvpn/server.conf that you're showing? I don't have the "ns-cert-type" line at all, but maybe that's the default even if absent.

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Deprecated Options in OpenVPN

Post by ispyisail »

https://www.bestvpn.com/vpn-encryption- ... ete-guide/

Looks like "Blowfish" is being replaced with "AES" and "Camellia"?

Post Reply