summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Spijkerman <fspijkerman@users.noreply.github.com>2016-07-28 18:36:00 +0200
committerGitHub <noreply@github.com>2016-07-28 18:36:00 +0200
commit7fa919c3e0f6a19a1eb685f7ddeaf88e300672a4 (patch)
tree40aa6cb29d6fb49aeb54909a135e732462800708
parent7d0dba17675a9c432189ec50584f5f449801f7d7 (diff)
ASA secret filters for ikev2 IPSEC pre-shared-key
-rw-r--r--lib/oxidized/model/asa.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb
index 1e45a91..67dfe16 100644
--- a/lib/oxidized/model/asa.rb
+++ b/lib/oxidized/model/asa.rb
@@ -13,6 +13,8 @@ class ASA < Oxidized::Model
cmd :secret do |cfg|
cfg.gsub! /enable password (\S+) (.*)/, 'enable password <secret hidden> \2'
cfg.gsub! /username (\S+) password (\S+) (.*)/, 'username \1 password <secret hidden> \3'
+ cfg.gsub! /ikev2 pre-shared-key (\S+)/, 'ikev2 pre-shared-key <secret hidden>'
+ cfg.gsub! /ikev2 (remote|local)-authentication pre-shared-key (\S+)/, 'ikev2 \1-authentication pre-shared-key <secret hidden>'
cfg
end