- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-28-2021 10:14 AM
I would like to disable weak cipher suite in SSH for over 100+ Firewalls with the following commands. The firewalls are running in High-Availability (H/A) mode, version 9.1.10:
configure
set deviceconfig system ssh ciphers mgmt aes256-ctr
set deviceconfig system ssh ciphers mgmt aes256-gcm
set deviceconfig system ssh default-hostkey mgmt key-type ECDSA 256
set deviceconfig system ssh regenerate-hostkeys mgmt key-type ECDSA key-length 256
set deviceconfig system ssh mac mgmt hmac-sha2-256
set deviceconfig system ssh mac mgmt hmac-sha2-512
set deviceconfig system ssh kex mgmt ecdh-sha2-nistp521
commit
exit
set ssh service-restart mgmt
exit
I would like to do this via script. However, when I look at PAN knowledgeable base, I see this:
https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PN5bCAG&lang=en_US
https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000HAsiCAG
The solution provided is not scalable in my environment. Is there a better way? How do Managed Service Providers (MSP) handle this with lot of PAN firewalls.
Thoughts?
10-28-2021 01:23 PM
Hello,
I'm sure there are several ways to perform this task. Perhaps say a loop and feed it the list of firewalls?
Regards,
10-28-2021 03:47 PM
Hi @dtran ,
It is disappointing that these changes cannot be pushed from Panorama. However, you can push an SSH Service Profile and apply it to the management interface that effectively blocks those protocols.
With regard to the CLI, here is a similar (solved) thread -> https://live.paloaltonetworks.com/t5/general-topics/disable-weak-cipher-suites-for-ssl-tls-and-ssh/t....
Thanks,
Tom
10-29-2021 03:59 AM
@TomYoung: The thread you mentioned can not be done via scripting. If you read closely, it stated "require console". Unfortunately, console is NOT available in AWS.
10-29-2021 04:11 AM
Hi @dtran ,
Correct. I added it for your reference, not as a solution. Theoretically, the commands can be done via SSH, but I would not close the current SSH session without testing with a new SSH session.
Thanks,
Tom
10-29-2021 06:18 AM
@TomYoung: Thank you. Can you also elaborate on the SSH service profile? How do I go about doing this?
10-29-2021 06:27 AM
Hi @dtran ,
Sure! This feature was introduced in 10.0. Create the profile under Device > Certificate Management > SSH Service Profile, and apply it under Device > Setup > Management > SSH Management Profile Setting. You configure what algorithms are allowed.
Thanks,
Tom
10-29-2021 06:33 AM
@TomYoung: Unfortunately, that will not help me. I am currently running 9.1.10, and we're not going to 10.x anytime soon ☹️.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!