cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1161
Views
0
Helpful
4
Replies

How to disable VPN tunnel

HI community,

I just want to temporarily disable the VPN TUNNELFROM asdm or CLI. Please let me know how can i do it.

4 Replies 4

if it a site to site vpn. just change the pre-shared key. prior to do that make a note of the pre-shared key. as you might need it to re-instate it.

 

 

more system:running-config

 

will show you the pre-shared key configured for this vpn.

or you can disable to nat rule as inactive.

 

 

or another way is disable the crypto map rule

crypto map outside_map 1 match address outside_cryptomap_6 <<<<<<----------
crypto map outside_map 1 set pfs group21
crypto map outside_map 1 set peer 8.8.8.8
crypto map outside_map 7 set ikev2 ipsec-proposal AES256/SHA384
crypto map outside_map 7 set security-association lifetime seconds 3600

please do not forget to rate.

in cli 
only do 
no crypo map <map name> interface OUT <<-
only do this and when you want it again do remove no from commend.

@MHM Cisco World 

 

crypto map outside_map 1 match address outside_cryptomap_123
crypto map outside_map 1 set pfs group20
crypto map outside_map 1 set peer 8.8.8.8
crypto map outside_map 1 set ikev2 ipsec-proposal AES256/SHA384
crypto map outside_map 1 set ikev2 pre-shared-key ab3$4did
crypto map outside_map interface outside

 

using the command "no crypto map outside_map interface outside" will disable all the vpn tunnel. what if the OP only want to disable 1 vpn tunnel. the command you mentioned it will tear all vpns tunnels (if one then one is configured on ASA).

 

This command need to used in under caution "no crypto map outside_map interface outside" and in change control as it will impact the business big time.

please do not forget to rate.

Yes if he run multi Seq then all will disable with commend  mention before 
and if he need to disable only one Seq of crypto map (only one VPN) he can by only remove the match address and keep other cofig , this make traffic never pass without encrypt, i.e. disable this VPN