<?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: VPN traffic exclusion with crypt.def in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167613#M27848</link>
    <description>&lt;P&gt;Just MAKE SURE whatever you do, save the original copy by doing cd $FWDIR/lib and then cp crypt.def crypt.def.ORIGINAL&lt;/P&gt;
&lt;P&gt;That way, if anything gets f-ed up, you can revert back easily.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 14:38:01 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2023-01-12T14:38:01Z</dc:date>
    <item>
      <title>VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167592#M27836</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to exclude some traffic from VPN, I went through sk98241 also read some posts on checkmates but to make sure (will be configuring for the first time). The scenario is , I have 3 remote VPN sites :&lt;BR /&gt;site1=192.168.1.0/24&lt;BR /&gt;site2=192.168.2.0/24&lt;BR /&gt;site3=192.168.3.0/24&lt;/P&gt;&lt;P&gt;and SMS in the cloud&lt;BR /&gt;I have SCCM GW in the cloud with IP 1.2.3.4, that's the traffic that I want to exclude from VPN and send it dierctly from hosts in VPN domain to SCCM GW 1.2.3.4, the changes in crypt.def On SMS in the cloud should be looking in this way ?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifndef IPV6_FLAVOR&lt;BR /&gt;#define NON_VPN_TRAFFIC_RULES (dst=1.2.3.4)&lt;BR /&gt;#else&lt;BR /&gt;#ifndef NON_VPN_TRAFFIC_RULES 0&lt;BR /&gt;#endif&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;OR only for specified VPN 2 subnets&lt;/P&gt;&lt;P&gt;all@site1 vpn_exclude={192.168.1.1,192.168.1.255};&lt;BR /&gt;all@site2 vpn_exclude={192.168.2.1,192.168.2.255};&lt;/P&gt;&lt;P&gt;#define NON_VPN_TRAFFIC_RULES ((src vpn_exclude) and (dst=1.2.3.4))&lt;/P&gt;&lt;P&gt;Pushing Policy on SMS&lt;/P&gt;&lt;P&gt;I this Ok ? Also is there anything else that has to be done ?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 13:44:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167592#M27836</guid>
      <dc:creator>marcinw</dc:creator>
      <dc:date>2023-01-12T13:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167594#M27838</link>
      <description>&lt;P&gt;On surface, that looks right to me. By the way, IF syntax is wrong, you would see it for sure when pushing the policy, as it would error out 100% and tell you exactly what its complaining about.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 13:48:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167594#M27838</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-01-12T13:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167604#M27843</link>
      <description>&lt;P&gt;thanks for reply , I suppose you mean this line&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifndef NON_VPN_TRAFFIC_RULES 0&lt;/P&gt;&lt;P&gt;instead of&amp;nbsp;&lt;SPAN&gt;#define NON_VPN_TRAFFIC_RULES 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;also this one should be fixed&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#ifndef IPV6_FLAVOR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to&amp;nbsp;#ifdef IPV6_FLAVOR&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:11:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167604#M27843</guid>
      <dc:creator>marcinw</dc:creator>
      <dc:date>2023-01-12T14:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167609#M27844</link>
      <description>&lt;P&gt;This is from sk108600. Let me see if I can find a file that customer modified ages ago and it worked fine, maybe I can send you the example.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Backup the relevant "&lt;EM&gt;crypt.def&lt;/EM&gt;" file (refer to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://supportcontent.checkpoint.com/solutions?id=sk98241" target="_blank" rel="noopener"&gt;sk98241&lt;/A&gt;) on Security Management Server / Domain Management Server.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Open the relevant "&lt;EM&gt;crypt.def&lt;/EM&gt;" file in a plain-text editor (Vi on Unix-based OS ; Notepad/Notepad++ on Windows OS).&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Find this line:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;EM&gt;#define NON_VPN_TRAFFIC_RULES&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;
You should see the following lines:
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;EM&gt;#ifndef NON_VPN_TRAFFIC_RULES
#define NON_VPN_TRAFFIC_RULES 0
#endif&lt;/EM&gt;
&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Modify the middle line:&lt;/P&gt;
&lt;P&gt;from this single line:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;EM&gt;#define NON_VPN_TRAFFIC_RULES 0&lt;/EM&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;to these lines:&lt;/P&gt;
&lt;UL type="square"&gt;
&lt;LI&gt;to exclude only IPv4 address:
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;EM&gt;#ifndef IPV6_FLAVOR
#define NON_VPN_TRAFFIC_RULES (dst=&lt;/EM&gt;&lt;EM&gt;Destination_IPv4_address,dport=Destination_Port&lt;/EM&gt;&lt;EM&gt;)&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;#else&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;#define NON_VPN_TRAFFIC_RULES 0&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;#endif&lt;/EM&gt;&lt;/PRE&gt;
The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Destination_IPv4_address&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the IPv4 address of the remote peer, which should be excluded from the Gateway's remote encryption domain.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;to exclude multiple IPv4 addresses
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;EM&gt;#ifndef IPV6_FLAVOR
#define NON_VPN_TRAFFIC_RULES (dst=Destination_IPv4_address_1 or dst=Destination_IPv4_address_2)
#else
#define NON_VPN_TRAFFIC_RULES 0
#endif&lt;/EM&gt;&lt;/PRE&gt;
The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Destination_IPv4_address&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the IPv4 address of the remote peer, which should be excluded from the Gateway's remote encryption domain.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;to exclude only IPv6 address:
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;EM&gt;#ifndef IPV6_FLAVOR
#define NON_VPN_TRAFFIC_RULES 0
#else
#define NON_VPN_TRAFFIC_RULES (dst=Destination_IPv6_address,dport=Destination_Port)
#endif&lt;/EM&gt;&lt;/PRE&gt;
The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Destination_IPv6_address&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the IPv6 address of the remote peer, which should be excluded from the Gateway's remote encryption domain.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;LI&gt;to exclude both IPv4 address and IPv6 address:
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;EM&gt;#ifndef IPV6_FLAVOR
#define NON_VPN_TRAFFIC_RULES (dst=Destination_IPv4_address,dport=Destination_Port)
#else
#define NON_VPN_TRAFFIC_RULES (dst=Destination_IPv6_address,dport=Destination_Port)
#endif&lt;/EM&gt;&lt;/PRE&gt;
The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Destination_IPv4_address&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the IPv4 address of the remote peer, which should be excluded from the Gateway's remote encryption domain.&lt;BR /&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Destination_IPv6_address&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the IPv6 address of the remote peer, which should be excluded from the Gateway's remote encryption domain.&lt;/BLOCKQUOTE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Save the changes in the "&lt;EM&gt;crypt.def&lt;/EM&gt;" file and exit from the editor.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Connect with SmartDashboard to Security Management Server / Domain Management Server.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Install the security policy onto relevant Security Gateway / Cluster.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:21:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167609#M27844</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-01-12T14:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167610#M27845</link>
      <description>&lt;P&gt;thank you very much sir I won't find better explanation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; cheers&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:24:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167610#M27845</guid>
      <dc:creator>marcinw</dc:creator>
      <dc:date>2023-01-12T14:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167611#M27846</link>
      <description>&lt;P&gt;Its not an issue, as that company switched to another vendor 5 years ago or so, so if I can find that file, no harm in sending it, all good.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:25:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167611#M27846</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-01-12T14:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167612#M27847</link>
      <description>&lt;P&gt;I dont sadly have the file itself, but, I found an email from ages ago where TAC told them to follow this example on that line:&lt;/P&gt;
&lt;PRE&gt;&lt;EM&gt;#define NON_VPN_TRAFFIC_RULES ((src=x.x.x.x or dst=y.y.y.y) and (src=x.x.x.x and dst=y.y.y.y) or )) &lt;BR /&gt;&lt;/EM&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:36:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167612#M27847</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-01-12T14:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167613#M27848</link>
      <description>&lt;P&gt;Just MAKE SURE whatever you do, save the original copy by doing cd $FWDIR/lib and then cp crypt.def crypt.def.ORIGINAL&lt;/P&gt;
&lt;P&gt;That way, if anything gets f-ed up, you can revert back easily.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:38:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167613#M27848</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-01-12T14:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167614#M27849</link>
      <description>&lt;P&gt;Also, below link may help as well.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/General-Topics/How-is-VPN-traffic-excluded-via-crypt-def-routed/m-p/163421" target="_blank"&gt;https://community.checkpoint.com/t5/General-Topics/How-is-VPN-traffic-excluded-via-crypt-def-routed/m-p/163421&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:42:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167614#M27849</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-01-12T14:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167615#M27850</link>
      <description>&lt;P&gt;of course backup will be done, however&amp;nbsp; I am going to configure this in the lab first to check and minimize losses &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:46:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167615#M27850</guid>
      <dc:creator>marcinw</dc:creator>
      <dc:date>2023-01-12T14:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167618#M27851</link>
      <description>&lt;P&gt;Yes sir Marcin, 100% always an excellent idea.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 14:55:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/167618#M27851</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-01-12T14:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: VPN traffic exclusion with crypt.def</title>
      <link>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/187603#M31403</link>
      <description>&lt;P&gt;Anyone know what the @ symbol does? Does all mean "all interfaces"? Can you write it like &lt;A href="mailto:eth1@fw200" target="_blank"&gt;eth1@east-fw&lt;/A&gt; ? Not seeing documentation on it like in &lt;A href="https://support.checkpoint.com/results/sk/sk113112" target="_self"&gt;sk113112&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 22:03:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/VPN-traffic-exclusion-with-crypt-def/m-p/187603#M31403</guid>
      <dc:creator>B_P</dc:creator>
      <dc:date>2023-07-25T22:03:10Z</dc:date>
    </item>
  </channel>
</rss>

