Switching and Cisco
Cisco Configuration Sanitizer
Paste a configuration and get a copy that is safe to put in a ticket, a forum post or a vendor case. It is processed in this page and never sent to a server.
Passwords, keys, SNMP communities and certificates are always removed. Choose what else to take out.
Sanitized configuration
Removed or replaced: 7 secrets, 1 username, 3 names and contact details, 1 banner, 2 addresses.
hostname device1 ip domain name example.com enable secret 9 <removed> username user1 privilege 15 secret 5 <removed> ! interface GigabitEthernet0/0 description Circuit 44/KFGS/100392 to Acme Telecom ip address 240.0.30.2 255.255.255.252 ip ospf message-digest-key 1 md5 7 <removed> ! interface GigabitEthernet0/1 description Core uplink ip address 10.1.1.1 255.255.255.0 ! router bgp 65010 neighbor 240.0.30.1 remote-as 64500 neighbor 240.0.30.1 password 7 <removed> ! snmp-server community <removed> RO snmp-server location <removed> tacacs server ISE address ipv4 10.1.50.10 key 7 <removed> banner motd ^C <removed> ^C line vty 0 4 password 7 <removed> transport input ssh
This tool reads Cisco IOS, IOS XE, NX-OS and ASA configuration and works by pattern. It cannot know every command, and it does not look for secrets in free text. Read the result before it leaves your hands.
What is always removed
Enable and user passwords and secrets, line passwords, SNMP communities and SNMPv3 user keys, TACACS+ and RADIUS keys, key chain strings, OSPF, BGP, HSRP, VRRP and NTP authentication keys, pre-shared keys, and the bodies of certificates. The value is replaced and the rest of the line is kept, so the configuration still reads as a configuration.
Hashed and type 7 values are removed like clear text. Type 7 is an encoding that any of several public tools reverses in a moment, and a type 5 hash of a weak password can be found by guessing.
What you can choose to remove
Names: usernames become user1, user2 and so on, the host name becomes device1 wherever it appears, the domain name becomes example.com, and SNMP location, SNMP contact and banner text are removed. Descriptions can be removed too; they often carry circuit IDs and customer names.
IPv4 addresses can be replaced, either public ones only or all of them. Each address keeps its last two octets and gets a new first two, the same every time within one paste, so hosts stay inside their subnets and the configuration still makes sense. The replacements come from 240.0.0.0/4, a range reserved by IANA that no network uses, so nobody can mistake them for real addresses. Summaries shorter than /16 will no longer line up with their parts.
What it cannot promise
The tool works by recognising commands. A secret in a command it does not know, in a comment, or in a name someone chose is not found. It lists the lines that mention a password, secret, key or community and were left alone, so you can check them. IPv6 addresses, MAC addresses, AS numbers and public keys are not changed.
Read the result before you share it. That is true of every sanitizer, and it is why this one runs where you can see everything it does.