<?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 List routes from a vsx gateway by cli in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/List-routes-from-a-vsx-gateway-by-cli/m-p/187206#M34493</link>
    <description>&lt;P&gt;Guys, does anyone know a way to list the routes of a vsx gateway by cli?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 16:22:17 GMT</pubDate>
    <dc:creator>FabioLima1</dc:creator>
    <dc:date>2023-07-21T16:22:17Z</dc:date>
    <item>
      <title>List routes from a vsx gateway by cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/List-routes-from-a-vsx-gateway-by-cli/m-p/187206#M34493</link>
      <description>&lt;P&gt;Guys, does anyone know a way to list the routes of a vsx gateway by cli?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 16:22:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/List-routes-from-a-vsx-gateway-by-cli/m-p/187206#M34493</guid>
      <dc:creator>FabioLima1</dc:creator>
      <dc:date>2023-07-21T16:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: List routes from a vsx gateway by cli</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/List-routes-from-a-vsx-gateway-by-cli/m-p/187223#M34506</link>
      <description>&lt;P&gt;It depends on the version of VSX. Versions of VSX up to R80.30 (I think) are based on some VRF extensions to the Linux kernel.&amp;nbsp;R80.40 and later are based on Linux network namespaces.&lt;/P&gt;
&lt;P&gt;For R80.40 and up, you can get a list of the namespace names using 'ip netns list', then you can run a command in a particular namespace by using 'ip netns exec &amp;lt;namespace name&amp;gt; &amp;lt;command&amp;gt;', like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@MyVsxCluster:0 STANDBY]# fw ver
This is Check Point's software version R80.40 - Build 135

[Expert@MyVsxCluster:0 STANDBY]# ip netns list
CTX00000 (id: 0)
CTX00001 (id: 1)
CTX00002 (id: 2)
...

[Expert@ MyVsxCluster:0 STANDBY]# ip netns exec CTX00002 netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.2.3.1        0.0.0.0         UG        0 0          0 wrp128
10.1.0.0        10.2.3.5        255.255.0.0     UG        0 0          0 bond1.234
10.2.0.0        10.2.3.5        255.255.255.0   UG        0 0          0 bond1.234
...&lt;/LI-CODE&gt;
&lt;P&gt;This ultimately allows you to run any command in any namespace you want&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;from&lt;/EM&gt;&lt;/STRONG&gt; any namespace you want.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 19:59:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/List-routes-from-a-vsx-gateway-by-cli/m-p/187223#M34506</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-07-21T19:59:47Z</dc:date>
    </item>
  </channel>
</rss>

