<?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 topology on gateways in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/57989#M1035</link>
    <description>&lt;P&gt;Nice:-)&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 09:08:28 GMT</pubDate>
    <dc:creator>HeikoAnkenbrand</dc:creator>
    <dc:date>2019-07-11T09:08:28Z</dc:date>
    <item>
      <title>One-liner to show VPN topology on gateways</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/57975#M1033</link>
      <description>&lt;DIV class=""&gt;
&lt;P style="text-align: center;"&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;A href="https://community.checkpoint.com/t5/SmartConsole-Extensions/SmartConsole-Extension-Show-VPN-topology-on-gateways/m-p/81719" target="_self"&gt;SmartConsole Extension&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;In &lt;U&gt;expert&lt;/U&gt; mode run:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if [[ `$CPDIR/bin/cpprod_util FwIsFirewallModule 2&amp;gt;/dev/null` != *'1'* ]];then echo;tput bold;tput setab 1;echo ' Not a firewall gateway! ';tput sgr0;echo;else if [[ `grep R80.40 /etc/cp-release|wc -l` != 0 ]];then echo;tput bold;tput setab 1;echo -n ' Info: VPN Domain for Gateway Communities are currently not displayed correctly by this tool! ';tput sgr0;echo;fi;fw tab -t vpn_routing -u|awk 'NR&amp;gt;3 {$0=substr($0,2,28);gsub(", ", "");gsub("; ", "");gsub("..", "0x&amp;amp; "); print}'|xargs printf "%d.%d.%d.%d %d.%d.%d.%d %d.%d.%d.%d\n"|awk '{print $3"."$1" - "$2}'|sort -t . -k  1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n|sed 's/^/x/'|sed 's/\./\n\t/4'|awk '!x[$0]++'|sed '/x/s/$/\n\tEncryption domain/'|sed 's/x/\nVPN Gateway &amp;gt; /'|if [[ $(cat /etc/cp-release) != *"Embedded"* ]];then egrep -C 9999 --color=auto $'VPN Gateway|Encryption domain';else cat $1|sed 's/^\t//';fi;echo;fi;if [[ `grep R80.40 /etc/cp-release|wc -l` != 0 ]];then tput bold;tput setab 1;echo -n ' Info: VPN Domain for Gateway Communities are currently not displayed correctly by this tool! ';tput sgr0;echo;echo;fi&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Integrated with our &lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-2214-common-check-point-commands-ccc" target="_blank" rel="noopener"&gt;ccc script&lt;/A&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks to &lt;A href="https://community.checkpoint.com/migrated-users/41625" target="_blank" rel="noopener"&gt;Tim Hall&lt;/A&gt;'s preliminary work in &lt;A href="https://community.checkpoint.com/t5/General-Topics/command-to-check-particular-segment-is-already-part-of-any/m-p/5740/highlight/true#M660" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt; and&amp;nbsp;reference in his book&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":closed_book:"&gt;📕&lt;/span&gt;&lt;A title="Max Power 2020: Check Point Firewall Performance Optimization (3rd. Ed.)" href="http://www.maxpowerfirewalls.com" target="_blank" rel="noopener"&gt;Max Power 2020&lt;/A&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to &lt;A href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/5815" target="_blank" rel="noopener"&gt;AlexeyB&lt;/A&gt;'s preliminary work in &lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/Show-VPN-Routing-on-CLI/m-p/40226/highlight/true#M3369" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to &lt;A href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/4453" target="_blank" rel="noopener"&gt;Pawel&lt;/A&gt;'s SMB support and testing in &lt;A href="https://community.checkpoint.com/t5/SMB-Appliances-and-SMP/Equivalent-for-quot-fw-tab-f-t-vpn-routing-quot/m-p/59099" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jan 2023 07:49:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/57975#M1033</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-01-12T07:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN topology on gateways</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/57979#M1034</link>
      <description>&lt;P&gt;Nice&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 07:47:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/57979#M1034</guid>
      <dc:creator>Tsvika_Gilman</dc:creator>
      <dc:date>2019-07-11T07:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN topology on gateways</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/57989#M1035</link>
      <description>&lt;P&gt;Nice:-)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 09:08:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/57989#M1035</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-07-11T09:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN topology on gateways</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/59192#M1036</link>
      <description>&lt;P&gt;Very nice, only improvement would be to show the peer's name next to the IP (when there are a lot of peers, it simplifies things).&lt;/P&gt;&lt;P&gt;Thanks for generating this type of one liners.&lt;/P&gt;&lt;P&gt;Paul G.,&lt;/P&gt;&lt;P&gt;CCSM&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:55:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/59192#M1036</guid>
      <dc:creator>Paul_Gademsky</dc:creator>
      <dc:date>2019-07-29T18:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN topology on gateways</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/59875#M1037</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/8666" target="_blank" rel="noopener"&gt;Paul&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;the only place I found on gateways to match a VPN peer's IP address to the object name as configured in SmartConsole is &lt;EM&gt;$FWDIR/state/local/FW1/local.objects&lt;/EM&gt; . Unluckily I haven't found a way yet to extract the object name of an IP as the file structure isn't documented.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 10:56:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/59875#M1037</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2019-08-08T10:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN topology on gateways</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/59896#M1038</link>
      <description>&lt;P&gt;Hi Danny, thanks for the reply.&lt;/P&gt;&lt;P&gt;What I'm looking for is basically the same info that shows up in vpn tu when you select option 1.&lt;/P&gt;&lt;P&gt;It shows "Peer 10.10.10.1, peerfwname SAS:&lt;/P&gt;&lt;P&gt;&amp;nbsp; IKE SA &amp;lt;......&amp;gt;&lt;/P&gt;&lt;P&gt;Don't need the IKE SA, but based on the knowledge that is shown there, it seems like it's ex-tractable somehow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 15:17:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/59896#M1038</guid>
      <dc:creator>Paul_Gademsky</dc:creator>
      <dc:date>2019-08-08T15:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to show VPN topology on gateways</title>
      <link>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/97870#M1039</link>
      <description>&lt;P&gt;Very appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 08:19:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/One-liner-to-show-VPN-topology-on-gateways/m-p/97870#M1039</guid>
      <dc:creator>fabioromano</dc:creator>
      <dc:date>2020-09-30T08:19:40Z</dc:date>
    </item>
  </channel>
</rss>

