Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling Ciphers on Comware 7

davidcannon89
Occasional Visitor

Disabling Ciphers on Comware 7

Hi guys,

As a result of our PEN test we need to disable CBC ciphers and weaker MAC algorithms on our core 5900 switch.

In Provision this is pretty straight forward with the "ip ssh cipher and ip ssh mac" commands, however I can't find anything in the CLI reference for Comware. 

We're running firmware 7.1.045P23, Release 2311P06, so it's not as if we're miles behind on updates and are missing the necessary commands.

I've got a ticket open with support but i'm not getting anywhere fast with it.

Can anyone shed any light on this?

Thanks,

David.

1 REPLY
Apachez-
Trusted Contributor

Re: Disabling Ciphers on Comware 7

From the R7006P15 manual:

authentication-algorithm { md5 | sha | sha256 | sha384 | sha512 }

ciphersuite { rsa_aes_128_cbc_sha | rsa_aes_256_cbc_sha } *

prefer-cipher { rsa_aes_128_cbc_sha | rsa_aes_256_cbc_sha }

scp server [ port-number ] [ vpn-instance vpn-instance-name ] { put | get } source-file-name
[ destination-file-name ] [ identity-key { dsa | ecdsa | rsa } | prefer-compress zlib | prefer-ctos-cipher
{ 3des | aes128 | aes256 | des } | prefer-ctos-hmac { md5 | md5-96 | sha1 | sha1-96 } | prefer-kex
{ dh-group-exchange | dh-group1 | dh-group14 } | prefer-stoc-cipher { 3des | aes128 | aes256 | des }
| prefer-stoc-hmac { md5 | md5-96 | sha1 | sha1-96 }] * [ publickey keyname | source { interface
interface-type interface-number | ip ip-address } ] *

scp ipv6 server [ port-number ] [ vpn-instance vpn-instance-name ] [ -i interface-type interface-number ]
{ put | get } source-file-name [ destination-file-name ] [ identity-key { dsa | ecdsa | rsa } |
prefer-compress zlib | prefer-ctos-cipher { 3des | aes128 | aes256 | des } | prefer-ctos-hmac { md5 |
md5-96 | sha1 | sha1-96 } | prefer-kex { dh-group-exchange | dh-group1 | dh-group14 } |
prefer-stoc-cipher { 3des | aes128 | aes256 | des } | prefer-stoc-hmac { md5 | md5-96 | sha1 |
sha1-96 } ] * [ publickey keyname | source { interface interface-type interface-number | ipv6
ipv6-address } ] *

sftp server [ port-number ] [ vpn-instance vpn-instance-name ] [ identity-key { dsa | ecdsa | rsa } |
prefer-compress zlib | prefer-ctos-cipher { 3des | aes128 | aes256 | des } | prefer-ctos-hmac { md5 |
md5-96 | sha1 | sha1-96 } | prefer-kex { dh-group-exchange | dh-group1 | dh-group14 } |
prefer-stoc-cipher { 3des | aes128 | aes256 | des } | prefer-stoc-hmac { md5 | md5-96 | sha1 |
sha1-96 } ] * [ dscp dscp-value | publickey keyname | source { interface interface-type interface-number
s | ip ip-addres} ] *

sftp ipv6 server [ port-number ] [ vpn-instance vpn-instance-name ] [ -i interface-type interface-number ]
[ identity-key { dsa | ecdsa | rsa } | prefer-compress zlib | prefer-ctos-cipher { 3des | aes128 | aes256
| des } | prefer-ctos-hmac { md5 | md5-96 | sha1 | sha1-96 } | prefer-kex { dh-group-exchange |
dh-group1 | dh-group14 } | prefer-stoc-cipher { 3des | aes128 | aes256 | des } | prefer-stoc-hmac
{ md5 | md5-96 | sha1 | sha1-96 } ] * [ dscp dscp-value | publickey keyname | source { interface
interface-type interface-number | ipv6 ipv6-addres} ] *

ssh2 server [ port-number ] [ vpn-instance vpn-instance-name ] [ identity-key { dsa | ecdsa | rsa } |
prefer-compress zlib | prefer-ctos-cipher { 3des | aes128 | aes256 | des } | prefer-ctos-hmac { md5 |
md5-96 | sha1 | sha1-96 } | prefer-kex { dh-group-exchange | dh-group1 | dh-group14 } |
prefer-stoc-cipher { 3des | aes128 | aes256 | des } | prefer-stoc-hmac { md5 | md5-96 | sha1 |
sha1-96 } ] * [ dscp dscp-value | escape character | publickey keyname | source { interface
interface-type interface-number | ip ip-address } ] *

ssh2 ipv6 server [ port-number ] [ vpn-instance vpn-instance-name ] [ -i interface-type interface-number ]
[ identity-key { dsa | ecdsa | rsa } | prefer-compress zlib | prefer-ctos-cipher { 3des | aes128 | aes256
| des } | prefer-ctos-hmac { md5 | md5-96 | sha1 | sha1-96 } | prefer-kex { dh-group-exchange |
dh-group1 | dh-group14 } | prefer-stoc-cipher { 3des | aes128 | aes256 | des } | prefer-stoc-hmac
{ md5 | md5-96 | sha1 | sha1-96 }] * [ dscp dscp-value | escape character | publickey keyname |
source { interface interface-type interface-number | ipv6 ipv6-address } ] *

Would any of above fit your needs?

Generally speaking I would highly recommend you to use a dedicated mgmt-vlan (or even completely out of band management network) (in the later case the dedicated oob mgmt could have its own encrypted vpn solution) than to rely on which ciphersuites the equipment itself would support (just look at the current Juniper screwup with backdoor passwords etc - in that case it doesnt matter which ciphersuites you had enabled or not).