{"id":303,"date":"2009-08-28T02:25:14","date_gmt":"2009-08-28T02:25:14","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2009\/08\/28\/netscreen-rekeying-a-vpn-clearing-the-sas\/"},"modified":"2023-01-15T22:33:03","modified_gmt":"2023-01-15T22:33:03","slug":"netscreen-rekeying-a-vpn-clearing-the-sas","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html","title":{"rendered":"Netscreen – Rekeying a VPN \/ Clearing the SA`s"},"content":{"rendered":"

In order to rekey a Netscreen VPN you will need to either clear the phase 1 or phase 2 “keys” from the gateway. Phase 1 being the IKE cookies and phase 2 being the SA`s (Security Association).<\/p>\n

To see an overview of your VPN`s run the command, `get vpn`
\nIn order to find the current IKE Cookies or SA`s, run either of the following commands,<\/p>\n

get ike cookies \r\nget sa active<\/pre>\n

To clear either of these run either or of the following commands,<\/p>\n

clear ike-cookie [gateway ip] \r\nclear sa [id]<\/pre>\n

Below shows you an example of clear a VPN`s SA`s,<\/p>\n

ns5gt-> get sa active\r\nTotal active sa: 1\r\ntotal configured sa: 1\r\nHEX ID\u00a0\u00a0\u00a0 Gateway\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Port Algorithm\u00a0\u00a0\u00a0\u00a0 SPI\u00a0\u00a0\u00a0\u00a0\u00a0 Life:sec kb Sta\u00a0\u00a0 PID vsys\r\n00000007<\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10.1.1.25\u00a0 500 esp:3des\/md5\u00a0 ef1d167f<\/strong>\u00a0 3317 unlim A\/-<\/strong>\u00a0\u00a0\u00a0 22 0\r\n00000007>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10.1.1.25\u00a0 500 esp:3des\/md5\u00a0 fbcb64ee\u00a0 3317 unlim A\/-\u00a0\u00a0\u00a0 -1 0<\/pre>\n

ns5gt-> clear sa 00000007<\/strong><\/p>\n

ns5gt-> get sa active
\nTotal active sa: 1
\ntotal configured sa: 1
\nHEX ID\u00a0\u00a0\u00a0 Gateway\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Port Algorithm\u00a0\u00a0\u00a0\u00a0 SPI\u00a0\u00a0\u00a0\u00a0\u00a0 Life:sec kb Sta\u00a0\u00a0 PID vsys
\n00000007<\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10.1.1.25\u00a0 500 esp:3des\/md5\u00a0 ef1d1680<\/strong>\u00a0 3592 unlim A\/-<\/strong>\u00a0\u00a0\u00a0 22 0
\n00000007>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10.1.1.25\u00a0 500 esp:3des\/md5\u00a0 bd1cbef7\u00a0 3592 unlim A\/-\u00a0\u00a0\u00a0 -1 0<\/p>\n

The main thing to ensure is that you show only the active sa`s as the firewall will not let you clear inactive sa`s. You can tell that they are active as the “Sta” (State) is A\/- which is active. Also note that the Hex ID was used when using the `clear sa` command.<\/p>\n

Click here for Fir3nets Netscreen Site 2 Site VPN troubleshooting guide.<\/a><\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

In order to rekey a Netscreen VPN you will need to either clear the phase 1 or phase 2 “keys” from the gateway. Phase 1 being the IKE cookies and phase 2 being the SA`s (Security Association). To see an overview of your VPN`s run the command, `get vpn` In order to find the current … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"yoast_head":"\nNetscreen - Rekeying a VPN \/ Clearing the SA`s - Fir3net<\/title>\n<meta name=\"description\" content=\"In order to rekey a Netscreen VPN you will need to either clear the phase 1 or phase 2 "keys" from the gateway. Phase 1 being the IKE cookies and phase 2\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Netscreen - Rekeying a VPN \/ Clearing the SA`s - Fir3net\" \/>\n<meta property=\"og:description\" content=\"In order to rekey a Netscreen VPN you will need to either clear the phase 1 or phase 2 "keys" from the gateway. Phase 1 being the IKE cookies and phase 2\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html\" \/>\n<meta property=\"og:site_name\" content=\"Fir3net\" \/>\n<meta property=\"article:published_time\" content=\"2009-08-28T02:25:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-15T22:33:03+00:00\" \/>\n<meta name=\"author\" content=\"Rick Donato\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rick Donato\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html\"},\"author\":{\"name\":\"Rick Donato\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\"},\"headline\":\"Netscreen – Rekeying a VPN \/ Clearing the SA`s\",\"datePublished\":\"2009-08-28T02:25:14+00:00\",\"dateModified\":\"2023-01-15T22:33:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html\"},\"wordCount\":213,\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"articleSection\":[\"Juniper Firewalls\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html\",\"url\":\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html\",\"name\":\"Netscreen - Rekeying a VPN \/ Clearing the SA`s - Fir3net\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/#website\"},\"datePublished\":\"2009-08-28T02:25:14+00:00\",\"dateModified\":\"2023-01-15T22:33:03+00:00\",\"description\":\"In order to rekey a Netscreen VPN you will need to either clear the phase 1 or phase 2 \\\"keys\\\" from the gateway. Phase 1 being the IKE cookies and phase 2\",\"breadcrumb\":{\"@id\":\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.fir3net.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Security\",\"item\":\"https:\/\/www.fir3net.com\/security\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Firewalls\",\"item\":\"https:\/\/www.fir3net.com\/security\/firewalls\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Juniper Firewalls\",\"item\":\"https:\/\/www.fir3net.com\/security\/firewalls\/juniper\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Netscreen – Rekeying a VPN \/ Clearing the SA`s\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.fir3net.com\/#website\",\"url\":\"https:\/\/www.fir3net.com\/\",\"name\":\"Fir3net\",\"description\":\"Keeping you in the know\",\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.fir3net.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.fir3net.com\/#organization\",\"name\":\"Fir3net\",\"url\":\"https:\/\/www.fir3net.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"contentUrl\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"width\":390,\"height\":88,\"caption\":\"Fir3net\"},\"image\":{\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\",\"name\":\"Rick Donato\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"caption\":\"Rick Donato\"},\"description\":\"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Netscreen - Rekeying a VPN \/ Clearing the SA`s - Fir3net","description":"In order to rekey a Netscreen VPN you will need to either clear the phase 1 or phase 2 \"keys\" from the gateway. Phase 1 being the IKE cookies and phase 2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html","og_locale":"en_US","og_type":"article","og_title":"Netscreen - Rekeying a VPN \/ Clearing the SA`s - Fir3net","og_description":"In order to rekey a Netscreen VPN you will need to either clear the phase 1 or phase 2 \"keys\" from the gateway. Phase 1 being the IKE cookies and phase 2","og_url":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html","og_site_name":"Fir3net","article_published_time":"2009-08-28T02:25:14+00:00","article_modified_time":"2023-01-15T22:33:03+00:00","author":"Rick Donato","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rick Donato","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html#article","isPartOf":{"@id":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html"},"author":{"name":"Rick Donato","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037"},"headline":"Netscreen – Rekeying a VPN \/ Clearing the SA`s","datePublished":"2009-08-28T02:25:14+00:00","dateModified":"2023-01-15T22:33:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html"},"wordCount":213,"publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"articleSection":["Juniper Firewalls"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html","url":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html","name":"Netscreen - Rekeying a VPN \/ Clearing the SA`s - Fir3net","isPartOf":{"@id":"https:\/\/www.fir3net.com\/#website"},"datePublished":"2009-08-28T02:25:14+00:00","dateModified":"2023-01-15T22:33:03+00:00","description":"In order to rekey a Netscreen VPN you will need to either clear the phase 1 or phase 2 \"keys\" from the gateway. Phase 1 being the IKE cookies and phase 2","breadcrumb":{"@id":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fir3net.com\/Firewalls\/Juniper\/netscreen-rekeying-a-vpn-clearing-the-sas.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fir3net.com\/"},{"@type":"ListItem","position":2,"name":"Security","item":"https:\/\/www.fir3net.com\/security"},{"@type":"ListItem","position":3,"name":"Firewalls","item":"https:\/\/www.fir3net.com\/security\/firewalls"},{"@type":"ListItem","position":4,"name":"Juniper Firewalls","item":"https:\/\/www.fir3net.com\/security\/firewalls\/juniper"},{"@type":"ListItem","position":5,"name":"Netscreen – Rekeying a VPN \/ Clearing the SA`s"}]},{"@type":"WebSite","@id":"https:\/\/www.fir3net.com\/#website","url":"https:\/\/www.fir3net.com\/","name":"Fir3net","description":"Keeping you in the know","publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fir3net.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fir3net.com\/#organization","name":"Fir3net","url":"https:\/\/www.fir3net.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","contentUrl":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","width":390,"height":88,"caption":"Fir3net"},"image":{"@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037","name":"Rick Donato","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","caption":"Rick Donato"},"description":"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders."}]}},"_links":{"self":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/303"}],"collection":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/comments?post=303"}],"version-history":[{"count":1,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/303\/revisions"}],"predecessor-version":[{"id":3534,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/303\/revisions\/3534"}],"wp:attachment":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/media?parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/categories?post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/tags?post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}