<?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: Block routes from select BGP ASN in path in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/207183#M34372</link>
    <description>&lt;P&gt;Yes, but slightly different...see below.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;test-fw&amp;gt; set routemap bgp_restrict_and_export id 2 match network 10.0.0.0/8 between&lt;BR /&gt;Configures the Route Map to match routes that are within the given&lt;BR /&gt;IPv4 or IPv6 subnet and which have a mask length that is between&lt;BR /&gt;the given range of values.&lt;/P&gt;
&lt;P&gt;Value: 1 - 32 (IPv4 subnet mask length)&lt;BR /&gt;(or)&lt;BR /&gt;1 - 128 (IPv6 subnet mask length)&lt;/P&gt;
&lt;P&gt;For a given Route Map ID, only one match condition for a given subnet&lt;BR /&gt;can exist. E.g., the following command sequence will cause the first&lt;BR /&gt;command to be overwritten by the second:&lt;/P&gt;
&lt;P&gt;set routemap A id 1 match network 10.1.3.0/24 between 24 and \&lt;BR /&gt;27 restrict on&lt;BR /&gt;set routemap A id 1 match network 10.1.3.0/24 between 28 and \&lt;BR /&gt;32&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 15:40:38 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2024-02-26T15:40:38Z</dc:date>
    <item>
      <title>Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205652#M34131</link>
      <description>&lt;P&gt;Wondering if anyone has any BGP route-map examples to block learning any routes that has a select BGP ASN in its path.&lt;/P&gt;&lt;P&gt;I have a cloudguard FW deployed where I am peering with an Azure route server (ARS)&amp;nbsp; (ASN 65515) and that ARS also is learning routes from an expressroute circuit (ASN 12076).&amp;nbsp; &amp;nbsp;The ARS has some very limited capabilities and can't put any real filters in place when you redistrobute routes there.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, I want my cloudguard FW to accept routes that come from the ARS and its direct vnets (65515) but any routes being learned from the expressroute (i.e. has asn 12076 in its aspath), i want to reject.&lt;/P&gt;&lt;P&gt;I have a feeling i can do this with a import route-map configuration on my peer with the ARS using an aspath-regex.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P class=""&gt;set routemap ARS-Peer-In id 100 on&lt;BR /&gt;set routemap ARS-Peer-In id 100 restrict&lt;BR /&gt;set routemap ARS-Peer-In id 100 match aspath-regex "_12076_" origin any&lt;BR /&gt;set routemap ARS-Peer-In id 200 on&lt;BR /&gt;set routemap ARS-Peer-In id 200 allow&lt;BR /&gt;set routemap ARS-Peer-In id 200 match as 65515 on&lt;BR /&gt;set routemap ARS-Peer-In id 200 action nexthop ip 10.1.1.1&amp;nbsp; &amp;lt;= this being the ip of the GW cluster; 10.1.1.2 used on other cluster.&lt;BR /&gt;set bgp external remote-as 65515&amp;nbsp; import-routemap ARS-Peer-In preference 1 on&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Is this an ample way to address this?&amp;nbsp; &amp;nbsp; &amp;nbsp;(## Note:&amp;nbsp; question relating to ability to block a ASN in a path for check point but accept others; we have confirmed with Microsoft Azure engineering teams that this restriction of ASN 12076 will address our issue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The other validation I wanted to ask was the use of the routemap IDs and preferences.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My understanding is the ID # in the same route-map is the order of processing&amp;nbsp;&lt;UL&gt;&lt;LI&gt;Therefore I want my 'restrict' rule above my allow.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In regards to the route map preferences, can you do this same retriction type with various route maps and place in the preference order?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;set routemap ARS-Peer-restrict id 100 on&lt;BR /&gt;set routemap ARS-Peer-restrict id 100 restrict&lt;BR /&gt;set routemap ARS-Peer-restrict id 100 match aspath-regex "_12076_" origin any&lt;BR /&gt;set routemap ARS-Peer-In id 200 on&lt;BR /&gt;set routemap ARS-Peer-In id 200 allow&lt;BR /&gt;set routemap ARS-Peer-In id 200 match as 65515 on&lt;BR /&gt;set routemap ARS-Peer-In id 200 action nexthop ip 10.1.1.1&amp;nbsp; &amp;lt;= this being the ip of the GW cluster&lt;BR /&gt;set bgp external remote-as 65515&amp;nbsp; import-routemap ARS-Peer-restrict preference 1 on&lt;BR /&gt;set bgp external remote-as 65515&amp;nbsp; import-routemap ARS-Peer-In preference 2 on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It feels normal to me for any vendor BGP configuration to have one set of routemaps on a peer and set the order of operations with the route map IDs.&amp;nbsp; &amp;nbsp; &amp;nbsp;But I wanted to know if i understand the processing here with the multiple map options and preference order if both would indeed be 'inspected' at all times and the preference just is setting the map 'order'.&amp;nbsp; &amp;nbsp; (a.k.a 'best practice' for routemaps with checkpoint &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any assistance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 18:24:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205652#M34131</guid>
      <dc:creator>Scottc98</dc:creator>
      <dc:date>2024-02-10T18:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205654#M34132</link>
      <description>&lt;P&gt;I hear ya there, BGP with Check Point is WAYYY different than Cisco lol&lt;/P&gt;
&lt;P&gt;Anyway, I wish there was way to do routemaps in web UI, hope it becomes available in R82, but for now, here is what I can tell you from my experience. When my colleague and I did this for a customer of ours, restricting via a routemap did not have anything to do with routemap ID. Once I find the fw config, I can send you the example of it, probably tomorrow or Monday.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 18:52:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205654#M34132</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-02-10T18:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205777#M34160</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/38213"&gt;@the_rock&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 14:50:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205777#M34160</guid>
      <dc:creator>Scottc98</dc:creator>
      <dc:date>2024-02-12T14:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205779#M34161</link>
      <description>&lt;P&gt;Sorry mate, cant find it in client's config, I guess we never ended up doing restrict option, but its essentially how you mentioned in the post itself.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 14:57:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205779#M34161</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-02-12T14:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205982#M34181</link>
      <description>&lt;P&gt;All good&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/38213"&gt;@the_rock&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Searching around and may have found some of my own answers.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://support.checkpoint.com/results/sk/sk100501" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk100501&lt;/A&gt;&lt;UL&gt;&lt;LI&gt;This is the reference SK on how routemaps work and now bookmarked so i don't have to search for it again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;From this SK, it does look like i have both the options to do&lt;UL&gt;&lt;LI&gt;1) via one route map and organize via ID # (Putting my blocks lower # than my allows)&amp;nbsp; or&lt;UL&gt;&lt;LI&gt;Per SK, "&lt;SPAN&gt;Within a routemap, the same procedure applies when checking individual routemap IDs: the IDs are checked from lowest to highest until a match is found. Therefore, more specific match conditions should have lower IDs or should be present in lower preference routemaps so that they are checked first, instead of being ignored in favor of less specific match conditions."&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;2) I can do another route map with a different precedence # (placing by block one with a lower preference than my current one used to ensure its matched first)&lt;UL&gt;&lt;LI&gt;Per SK "&lt;SPAN&gt;When multiple import routemaps or export routemaps are configured for the same protocol, the routemap with the lowest configured preference value is applied first; if no match is found, the next highest preference is checked, etc."&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;For the AS path examples, this SK is now a keeper for me&amp;nbsp; "&lt;A href="https://support.checkpoint.com/results/sk/sk103047&amp;quot;" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk103047"&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'll review internally and also with my internal checkpoint team on the best path here to go.&amp;nbsp; &amp;nbsp;The additional route-map here might be the easiest and cleanest path since my existing ones are using a preference of 8 today (i.e. a lower one is available) and might allow for a nice clean route map name that has some context &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(note:&amp;nbsp; &amp;nbsp;it would be nice to have a 'comment' field to use on routemaps so we can note what each map or ID entry is intended for &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 18:19:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205982#M34181</guid>
      <dc:creator>Scottc98</dc:creator>
      <dc:date>2024-02-13T18:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205983#M34182</link>
      <description>&lt;P&gt;I feel like I would know that sk number in my dreams lol. Heard it so many times from TAC people when my colleague and I were helping a customer couple of years back for BGP issue.&lt;/P&gt;
&lt;P&gt;Here is section I always found was most relevant as far as route restrict.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 id="Configuring Export Routemaps - Restricting routes while exporting"&gt;(4-C) Restricting routes while exporting&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Create a routemap to export a set of routes that you wish to restrict a subset of (see the"Exporting all routes from one or more protocols" section or "Exporting only selected routes" section above).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Create a separate new routemap, and create one routemap ID belonging to it for each set of match conditions you wish to specify:&lt;/P&gt;
&lt;STRONG&gt;&lt;CODE&gt;HostName&amp;gt; set routemap&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ROUTEMAP_NAME&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;id&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ID_NUMBER&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;For each ID, set the ID type to "&lt;CODE&gt;Restrict&lt;/CODE&gt;" to block the routes matched:&lt;/P&gt;
&lt;STRONG&gt;&lt;CODE&gt;HostName&amp;gt; set routemap&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ROUTEMAP_NAME&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;id&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ID_NUMBER&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;restrict&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Set the export routemap on the protocol, to which you wish to export the routes:&lt;/P&gt;
&lt;STRONG&gt;&lt;CODE&gt;HostName&amp;gt; set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;PROTOCOL&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;export-routemap&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ROUTEMAP_NAME&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;preference&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;ROUTEMAP_PREFERENCE_NUMBER&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on&lt;/CODE&gt;&lt;/STRONG&gt;
&lt;P&gt;Notes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;There will be two export routemaps - one routemap to restrict routes, and one routemap to allow them.&lt;/LI&gt;
&lt;LI&gt;The restrict routemap should have a lower preference value, so that it takes priority over the allow routemap. Otherwise, the allow routemap may allow routes that you wish to restrict, since it is matched first.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Save Gaia configuration:&lt;/P&gt;
&lt;STRONG&gt;&lt;CODE&gt;HostName&amp;gt; save config&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;EM&gt;Example&lt;/EM&gt;:&lt;/P&gt;
&lt;P&gt;Using the following routemaps:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;routemap '&lt;CODE&gt;bgp_export&lt;/CODE&gt;' from the "Exporting only selected routes" section as the "&lt;CODE&gt;Allow&lt;/CODE&gt;" routemap&lt;/LI&gt;
&lt;LI&gt;new routemap as the "&lt;CODE&gt;Restrict&lt;/CODE&gt;" routemap&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Notes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The preference value for the "&lt;CODE&gt;Allow"&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;routemap is higher than the preference value for the "&lt;CODE&gt;Restrict&lt;/CODE&gt;" routemap, so the restrict routes are matched first.&lt;/LI&gt;
&lt;LI&gt;The command to set the "&lt;CODE&gt;Allow&lt;/CODE&gt;" routemap for BGP is re-stated here. This restrict routemap will restrict routes from BGP AS 100 that are in the prefix 192.168.0.0/16.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Commands:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;HostName&amp;gt; set routemap bgp_restrict id 1 on
HostName&amp;gt; set routemap bgp_restrict id 1 match as 100
HostName&amp;gt; set routemap bgp_restrict id 1 match network 192.168.0.0/16 all
HostName&amp;gt; set routemap bgp_restrict id 1 restrict
HostName&amp;gt; set bgp external remote-as 1 export-routemap bgp_restrict preference 1 on
HostName&amp;gt; set bgp external remote-as 1 export-routemap bgp_export preference 2 on
HostName&amp;gt; save config&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 13 Feb 2024 18:21:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/205983#M34182</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-02-13T18:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/206624#M34280</link>
      <description>&lt;P&gt;Just a quick update:&lt;/P&gt;&lt;P&gt;Was able to deploy this restriction safely last week and it did work as designed.&amp;nbsp; &amp;nbsp; After review of the existing routemaps, we ended up adjusting with a lower ID within the existing maps verses creating a new one with different preferences.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was also a need to tag some 'no-advertise' communities on our exports that worked out as planned.&lt;/P&gt;&lt;P&gt;A couple of notes and lessons learned:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;"show bgp peer &amp;lt;Peer IP&amp;gt; adj-rib-out communities"&lt;OL&gt;&lt;LI&gt;Nice command to validate the communities being advertised to a peer (before and after to confirm your change worked)&lt;OL&gt;&lt;LI&gt;Was really hoping to see from the Microsoft Route Server side on what communities it was receiving but have yet to find out where that can be done with MS docs and engineering support requests.&amp;nbsp; &amp;nbsp;That command here on the CP side saved me &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;" show route inactive bgp aspath"&lt;OL&gt;&lt;LI&gt;So.....not really a fan here on the CP that I can still see these routes I am restricting via "show bgp peer &amp;lt;peer ip&amp;gt; received"&lt;/LI&gt;&lt;LI&gt;And.... "show bgp peer &amp;lt;peer ip&amp;gt; adj-rib-in aspath"&amp;nbsp; doesn't show the restriction either.&lt;/LI&gt;&lt;LI&gt;Lack of grep on these 'show' commands can be a pain when dealing with a lot of routes as well &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Using this command does allow me to dump the output and check manually if there are any routes I am hiding/inactive outside of the as 12076 I was intending to block.&amp;nbsp;&lt;OL&gt;&lt;LI&gt;Combo with just "show route inactive bgp" shows the code of "H" for hidden on these&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Honestly, the lack of grep type of commands where you can look granular would have been a huge help (GAIA OS cli request &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dumping the outputs to comb through was a bigger drag that it should have but noted for future deployments at this time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for everyone's help and insights......hope this helps out others with similar deployments &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 01:18:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/206624#M34280</guid>
      <dc:creator>Scottc98</dc:creator>
      <dc:date>2024-02-21T01:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/206628#M34281</link>
      <description>&lt;P&gt;Thanks for sharring&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/28302"&gt;@Scottc98&lt;/a&gt;&amp;nbsp;, appreciated. I get what you mean by grep, I always found that super challenging as well.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 02:24:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/206628#M34281</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-02-21T02:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/206855#M34330</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/38213"&gt;@the_rock&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Do you think that commands below:&lt;/P&gt;&lt;P&gt;HostName&amp;gt; set routemap bgp_restrict id 1 on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict id 1 match as 100&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict id 1 match network 192.168.0.0/16 all&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict id 1 restrict&lt;BR /&gt;HostName&amp;gt; set bgp external remote-as 1 export-routemap bgp_restrict preference 1 on&lt;BR /&gt;HostName&amp;gt; set bgp external remote-as 1 export-routemap bgp_export preference 2 on&lt;BR /&gt;HostName&amp;gt; save config&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;can be written like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 1 on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 1 match as 100&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 1 match network 192.168.0.0/16 all restrict on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 2 on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 2 match protocol ospf2&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 2 match network 10.0.0.0/8 between 24 and 32&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 2 allow&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 3 on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 3 match as 100 on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 3 allow&lt;BR /&gt;HostName&amp;gt; set bgp external remote-as 1 export-routemap bgp_restrict_and_export preference 1 on&lt;BR /&gt;HostName&amp;gt; save config&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;or like this:&lt;/P&gt;&lt;P&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 1 on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 1 match as 100&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 1 match network 192.168.0.0/16 all&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 1 restrict&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 2 on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 2 match protocol ospf2&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 2 match network 10.0.0.0/8 between 24 and 32&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 2 allow&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 3 on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 3 match as 100 on&lt;BR /&gt;HostName&amp;gt; set routemap bgp_restrict_and_export id 3 allow&lt;BR /&gt;HostName&amp;gt; set bgp external remote-as 1 export-routemap bgp_restrict_and_export preference 1 on&lt;BR /&gt;HostName&amp;gt; save config&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 15:02:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/206855#M34330</guid>
      <dc:creator>DZ_KB</dc:creator>
      <dc:date>2024-02-22T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Block routes from select BGP ASN in path</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/207183#M34372</link>
      <description>&lt;P&gt;Yes, but slightly different...see below.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;test-fw&amp;gt; set routemap bgp_restrict_and_export id 2 match network 10.0.0.0/8 between&lt;BR /&gt;Configures the Route Map to match routes that are within the given&lt;BR /&gt;IPv4 or IPv6 subnet and which have a mask length that is between&lt;BR /&gt;the given range of values.&lt;/P&gt;
&lt;P&gt;Value: 1 - 32 (IPv4 subnet mask length)&lt;BR /&gt;(or)&lt;BR /&gt;1 - 128 (IPv6 subnet mask length)&lt;/P&gt;
&lt;P&gt;For a given Route Map ID, only one match condition for a given subnet&lt;BR /&gt;can exist. E.g., the following command sequence will cause the first&lt;BR /&gt;command to be overwritten by the second:&lt;/P&gt;
&lt;P&gt;set routemap A id 1 match network 10.1.3.0/24 between 24 and \&lt;BR /&gt;27 restrict on&lt;BR /&gt;set routemap A id 1 match network 10.1.3.0/24 between 28 and \&lt;BR /&gt;32&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 15:40:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Block-routes-from-select-BGP-ASN-in-path/m-p/207183#M34372</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-02-26T15:40:38Z</dc:date>
    </item>
  </channel>
</rss>

