<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: One-liner to show VPN S2S tunnels on gateway in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150509#M970</link>
    <description>&lt;P&gt;This is very useful. A great addition to the power house that is the ccc-script. Just wow!&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 14:48:34 GMT</pubDate>
    <dc:creator>Joshua</dc:creator>
    <dc:date>2022-06-09T14:48:34Z</dc:date>
    <item>
      <title>One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150205#M962</link>
      <description>&lt;DIV class=""&gt;
&lt;P style="text-align: center;"&gt;&lt;span class="lia-unicode-emoji" title=":trophy:"&gt;🏆&lt;/span&gt;&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/t5/General-Topics/CheckMates-Fest-2023-Video-and-Q-amp-A/m-p/167505" target="_self"&gt;Tool of the Year&lt;/A&gt;&lt;/STRONG&gt; 2022&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&amp;nbsp;Works on all VPN gateway types&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt;&amp;nbsp;Available as &lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/t5/SmartConsole-Extensions/Show-VPN-Tunnels/m-p/157756#M242" target="_self"&gt;SmartConsole extension&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One-liner (Bash) to show IPsec VPN site-to-site tunnels&amp;nbsp;on Check Point security gateways.&lt;BR /&gt;&lt;STRONG&gt;In &lt;U&gt;expert&lt;/U&gt; mode run:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo;_vpn=1;if [[ -f /bin/enabled_blades ]];then if [[ `enabled_blades|tr 'A-Z' 'a-z'` != *'vpn'* ]];then _vpn=0;fi;elif [[ -f /opt/fw1/conf/active_blades.txt ]];then if [[ `grep VPN-S2S /opt/fw1/conf/active_blades.txt|awk '{print $NF}'` != '1' ]];then _vpn=0;fi;elif [[ -f /opt/fw1/conf/blades.json ]];then if [[ `jq '.data[]|select(.name=="VPN-S2S")|.enabled' /opt/fw1/conf/blades.json` != '1' ]];then _vpn=0;fi;fi;if [[ $_vpn == 1 ]];then _ha=0;if [[ `$CPDIR/bin/cpprod_util FwIsHighAvail` -eq '1' ]];then _ha=1;if [[ `cphaprob stat|grep \(local\)|tr 'A-Z' 'a-z'` == *'active'* ]];then _ha=0;fi;fi;if [[ $_ha == 0 ]];then if [[ -f /bin/timeout ]];then _stat=`timeout 5 stattest gettable 1.3.6.1.4.1.2620.1.9002.1 2 3 4 1 7 8 9 10 11`;else _stat=`stattest gettable 1.3.6.1.4.1.2620.1.9002.1 2 3 4 1 7 8 9 10 11`;fi;echo "$_stat"|tr ',' ' '|awk '{gsub(/\(.*\)/,"",$2)}1'|awk '{gsub("132","Initialized",$2)}1'|awk '{gsub("131","Down",$2)}1'|awk '{gsub("130","Phase_1",$2)}1'|awk '{gsub("129","Idle",$2)}1'|awk '{gsub("4","Destroyed",$2)}1'|awk '{gsub("3","UP",$2)}1'|awk '{gsub("0","Primary",$6)}1'|awk '{gsub("1","Backup",$6)}1'|awk '{gsub("2","On-demand",$6)}1'|awk '{gsub("0","?",$7)}1'|awk '{gsub("1","Alive",$7)}1'|awk '{gsub("2","!",$7)}1'|awk '{gsub("1","Regular",$8)}1'|awk '{gsub("2","DAIP",$8)}1'|awk '{gsub("3","ROBO",$8)}1'|awk '{gsub("4","LSV",$8)}1'|awk '{gsub("1","Regular",$9)}1'|awk '{gsub("2","Permanent",$9)}1'|sort|sed "s/^/$(hostname) &amp;lt;=&amp;gt; /"|sed '1 i\( , , , , , , , , , , )'|sed '1 i\FROM &amp;lt;=&amp;gt; TO STATE VPN_COMMUNITY PEER_IP SOURCE_IP LINK_PRIORITY PROB_STATE PEER_TYPE VPN_TYPE'|if [[ -f /bin/column ]];then column -t|sed "s/\bUP\b/\x1b[1;32m&amp;amp;\x1b[m/g;s/\bDown\b\|\bDestroyed\b/\x1b[1;31m&amp;amp;\x1b[m/g;s/\bBackup\b\|\bAlive\b\|\bInitialized\b\|\bPhase_1\b/\x1b[1;36m&amp;amp;\x1b[m/g"|sed '/^(.*)$/ s/./=/g'|sed '$a+'|sed '2h;$x'|sed "s/^/ /";echo -e "\033[1;2m Reset VPN tunnel to peer : vpn tu del PEER_IP\n Show VPN tunnel details : vpn tu tlist -p PEER_IP\033[m";else cat|sed '/^(.*)$/ s/./=/g';fi;else echo -e "\033[1;31mNot an active HA member.\033[m";fi;else echo -e "\033[1;31mNot a VPN gateway.\033[m";fi;unset _vpn _ha _stat;echo&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Integrated with our &lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/t5/Scripts/ccc-Common-Check-Point-Commands/m-p/38488#M4" target="_blank" rel="noopener"&gt;ccc script&lt;/A&gt;&lt;/STRONG&gt;.&lt;BR /&gt;To show the VPN topology&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/t5/Security-Gateways/One-liner-to-show-VPN-topology-on-gateways/m-p/57975#M4349" target="_self"&gt;see here&lt;/A&gt;&lt;/STRONG&gt;.&lt;BR /&gt;To list VPN user tunnels&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/t5/Scripts/Show-VPN-Users-One-liner/m-p/134011#M890" target="_self"&gt;see here&lt;/A&gt;&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Jan 2023 20:40:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150205#M962</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-01-18T20:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150208#M963</link>
      <description>&lt;P&gt;Will try it tomorrow and provide feedback ; - )&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 00:53:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150208#M963</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-06-06T00:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150235#M964</link>
      <description>&lt;P&gt;Very good, works well!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 13:10:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150235#M964</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2022-06-06T13:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150289#M965</link>
      <description>&lt;P&gt;Finally. Have been waiting so long for a much simpler method to check the VPN tunnels and here it is.&lt;/P&gt;&lt;P&gt;Works great, thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 07:05:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150289#M965</guid>
      <dc:creator>Dennis_M</dc:creator>
      <dc:date>2022-06-07T07:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150367#M966</link>
      <description>&lt;P&gt;This AWESOME !!! Thanks Very Much.&amp;nbsp; Works Great.&amp;nbsp; I clicked Kudos 50 + times but only went up one -&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-pat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 17:00:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150367#M966</guid>
      <dc:creator>ptuttle_2</dc:creator>
      <dc:date>2022-06-07T17:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150509#M970</link>
      <description>&lt;P&gt;This is very useful. A great addition to the power house that is the ccc-script. Just wow!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 14:48:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150509#M970</guid>
      <dc:creator>Joshua</dc:creator>
      <dc:date>2022-06-09T14:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150676#M971</link>
      <description>&lt;P&gt;Great! Looking forward to the smart console extension &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 09:10:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150676#M971</guid>
      <dc:creator>mombro</dc:creator>
      <dc:date>2022-06-13T09:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150765#M972</link>
      <description>&lt;P&gt;Awesome!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:14:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150765#M972</guid>
      <dc:creator>Friedrich_Taatz</dc:creator>
      <dc:date>2022-06-14T09:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150910#M973</link>
      <description>&lt;P&gt;Good Job ^^&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 11:40:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/150910#M973</guid>
      <dc:creator>Ziegelsambach</dc:creator>
      <dc:date>2022-06-15T11:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151035#M974</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 07:55:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151035#M974</guid>
      <dc:creator>danjue</dc:creator>
      <dc:date>2022-06-16T07:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151039#M975</link>
      <description>&lt;P&gt;Wow holy cow ... cool stuff!!!&lt;/P&gt;
&lt;P&gt;cannot believe we had to wait since 1993 for such a cool CLI command for a nice overview of vpn tunnels!&lt;BR /&gt;Awesome stuff!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 09:21:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151039#M975</guid>
      <dc:creator>Thomas_Eichelbu</dc:creator>
      <dc:date>2022-06-16T09:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151240#M977</link>
      <description>&lt;P&gt;Awesome Job!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 08:30:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151240#M977</guid>
      <dc:creator>jannag</dc:creator>
      <dc:date>2022-06-20T08:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151820#M979</link>
      <description>&lt;P&gt;Awesome tool, works great!&lt;BR /&gt;&lt;BR /&gt;Thank you for your contribution to the community.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 08:53:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151820#M979</guid>
      <dc:creator>Yannic_Schmitt</dc:creator>
      <dc:date>2022-06-27T08:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151890#M980</link>
      <description>&lt;P&gt;Works like a charm. Thank you for sharing!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 06:58:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/151890#M980</guid>
      <dc:creator>Marcus_E</dc:creator>
      <dc:date>2022-06-28T06:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/158396#M996</link>
      <description>&lt;P&gt;Very usefull, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:09:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/158396#M996</guid>
      <dc:creator>OliverBayerlein</dc:creator>
      <dc:date>2022-09-29T07:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/158525#M997</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1384"&gt;@OliverBayerlein&lt;/a&gt;: Thx for your kind words and the DAIP fix.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 11:54:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/158525#M997</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2022-09-30T11:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/193196#M1128</link>
      <description>&lt;P&gt;In VSX mode what modification should be made?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 23:18:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/193196#M1128</guid>
      <dc:creator>DanielJavier</dc:creator>
      <dc:date>2023-09-20T23:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/193353#M1129</link>
      <description>&lt;P&gt;Switch to your specific vsenv first and adjust the paths of the script according to your environment.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 13:10:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/193353#M1129</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-09-22T13:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/255811#M1199</link>
      <description>&lt;P&gt;Hi this is limited up to 100 VPN, do we have a roadmap to support more VPN?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Aug 2025 03:46:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/255811#M1199</guid>
      <dc:creator>Dario_Perez</dc:creator>
      <dc:date>2025-08-24T03:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN S2S tunnels on gateway</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/255831#M1200</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/3205"&gt;@Dario_Perez&lt;/a&gt;&amp;nbsp;: As you are a Check Point employee, it would be nice if you could ask this internally and share the result with us.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Aug 2025 18:45:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-S2S-tunnels-on-gateway/m-p/255831#M1200</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2025-08-24T18:45:01Z</dc:date>
    </item>
  </channel>
</rss>

