summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/asa.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-07-28 19:41:36 +0300
committerGitHub <noreply@github.com>2016-07-28 19:41:36 +0300
commit463db1f76d4530b2875635937452afa6dd1aa56a (patch)
tree40aa6cb29d6fb49aeb54909a135e732462800708 /lib/oxidized/model/asa.rb
parent7d0dba17675a9c432189ec50584f5f449801f7d7 (diff)
parent7fa919c3e0f6a19a1eb685f7ddeaf88e300672a4 (diff)
Merge pull request #514 from fspijkerman/ASA_secret_filters
ASA secret filters for ikev2 IPSEC pre-shared-key
Diffstat (limited to 'lib/oxidized/model/asa.rb')
-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