Difference between revisions of "Reset a VPN via script"

From Tech-Wiki
Jump to: navigation, search
(Created page with "Category:CheckPoint #!/bin/sh source /etc/profile.d/vsenv.sh vsenv 6 vpn shell /tunnels/delete/IKE/peer/[peer ip]")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:CheckPoint]]
 
[[Category:CheckPoint]]
 +
'''[[Check Point#VSX and MDS|Back to VSX and MDS]]'''
 +
 +
This script will change context to your VSX system then clear the IPsec SA for the specific peer
  
 
  #!/bin/sh
 
  #!/bin/sh
 
  source /etc/profile.d/vsenv.sh
 
  source /etc/profile.d/vsenv.sh
  vsenv 6
+
  vsenv 2
 
  vpn shell /tunnels/delete/IKE/peer/[peer ip]
 
  vpn shell /tunnels/delete/IKE/peer/[peer ip]
 +
vpn shell /tunnels/delete/IPsec/peer/[peer ip]

Latest revision as of 14:46, 25 June 2018

Back to VSX and MDS

This script will change context to your VSX system then clear the IPsec SA for the specific peer

#!/bin/sh
source /etc/profile.d/vsenv.sh
vsenv 2
vpn shell /tunnels/delete/IKE/peer/[peer ip]
vpn shell /tunnels/delete/IPsec/peer/[peer ip]