<?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 for Address Spoofing Troubleshooting in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/59960#M4533</link>
    <description>&lt;P&gt;The problem is $vsname doesn't even exist on non-VSX boxes. Thus, on non-VSX, it doesn't equal *'unavail'*, so the test always succeeds and takes the VSX path on non-VSX firewalls. The VSX path then tries to do things which don't work on non-VSX firewalls, such as looking for the value of $vsname (which, again, doesn't exist) in the local.set.&lt;/P&gt;&lt;P&gt;The script as it is does not work on non-VSX firewalls.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edited to add&lt;/STRONG&gt;: Also, it looks like $vsname isn't set when you initially log in to a VSX firewall. It's only set after the first vsenv.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second edit&lt;/STRONG&gt;: This combined test should work for both current VRF-based VSX and future netns-based VSX:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if [ $(ls /proc/vrf/ | wc -l) -gt 1 ] || [ $(ip netns list 2&amp;gt;/dev/null | wc -l) -gt 1 ]&lt;/LI-CODE&gt;&lt;P&gt;The STDERR redirection is needed because on pre-3.10 firewalls, 'ip netns' fails and prints an error.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2019 16:07:11 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2019-08-09T16:07:11Z</dc:date>
    <item>
      <title>One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33204#M2659</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; Code Hub &lt;A href="https://community.checkpoint.com/t5/The-CheckMates-Blog/Celebrating-the-Best-of-CheckMates-2019/ba-p/61801" target="_self"&gt;Contribution of the Year&lt;/A&gt; 2019!&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":pushpin:"&gt;📌&lt;/span&gt;&amp;nbsp;Available as &lt;A href="https://community.checkpoint.com/t5/SmartConsole-Extensions/SmartConsole-Extension-Show-interface-topology-on-gateways/m-p/81871" target="_self"&gt;SmartConsole Extension&lt;/A&gt;.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&amp;nbsp;Endorsed by Check Point Support!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One-liner (Bash) to show a summary about each gateway interfaces' &lt;SPAN&gt;calculated topology&lt;/SPAN&gt; and address spoofing setting.&lt;BR /&gt;&lt;STRONG&gt;In &lt;U&gt;expert&lt;/U&gt; mode run:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo;tput bold;if [[ `$CPDIR/bin/cpprod_util FwIsFirewallModule 2&amp;gt;/dev/null` != *'1'* ]];then echo ' Not a firewall gateway!';tput sgr0;echo;elif [[ `grep $(echo -n :[[:space:]]\(;grep $(hostname)$ /etc/hosts|cut -f1 -d' ') $FWDIR/state/local/FW1/local.set|wc -l` == "0" ]] &amp;amp;&amp;amp; ([[ $INSTANCE_VSID == '0' ]] || [[ $INSTANCE_VSID == '' ]]);then echo ' Main IP of '$(hostname)' doesn`t match it`s management interface IP!';tput sgr0;echo;else echo -n ' Interface Topology ';tput sgr0;echo -n '&amp;gt; ';tput bold;tput setaf 1;if [[ -n "$vsname" ]] &amp;amp;&amp;amp; [[ $vsname != *'unavail'* ]];then echo $vsname' (ID: '$INSTANCE_VSID')';else hostname;fi;tput sgr0;echo -n ' ';printf '%.s-' {1..80};echo;egrep -B1 $'ifindex|:ipaddr|\(\x22&amp;lt;[0-9]|objtype|has_addr_info|:monitor_only|:external' $FWDIR/state/local/FW1/local.set|sed -n "/$(if [[ -n "$vsname" ]] &amp;amp;&amp;amp; [[ $vsname != *'unavail'* ]] &amp;amp;&amp;amp; [[ $INSTANCE_VSID != '0' ]];then echo $vsname;else grep `hostname`$ /etc/hosts|cut -f1 -d' ';fi)*$/,\$ p"|tail -n +3|sed 's/[\x22\t()&amp;lt;&amp;gt;]//g'|sed 's/--//g'|sed '$!N;s/\n:ipaddr6/ IPv6/;P;D'|sed '/IPv6/!s/://g'|sed 's/interface_topology/\tCalculated Interface Topology/g'|sed '0,/ifindex 0/{/ifindex 0/d;}'|sed '/ifindex 0/q'|sed '/spoof\|scan/d'|sed 's/has_addr_info true/\tAddress Spoofing Protection: Enabled/g'|sed 's/has_addr_info false/\tAddress Spoofing Protection: Disabled/g'|sed -e '/Prot/{n;d}'|sed '$!N;s/\nmonitor_only true/ (Detect Mode)/;P;D'|sed '$!N;s/\nmonitor_only false/ (Prevent Mode)/;P;D'|sed '$!N;s/\nexternal false/ - Internal Interface/;P;D'|sed '$!N;s/\nexternal true/ - External Interface/;P;D'|sed '/objtype/q'|tac|sed '/ifindex 0/I,+2 d'|sed '/Address/,$!d'|tac|sed '/ifindex/d'|sed 's/,/ -/g'|sed '$!N;s/\nipaddr/ &amp;gt;/;P;D'|sed '/ - /s/^ /\t/'|egrep -C 9999 --color=auto $'&amp;gt;|IPv6|External|Disabled|Detect';echo;fi&lt;/LI-CODE&gt;
&lt;P&gt;&lt;IMG style="display: block; margin-left: auto; margin-right: auto;" class="image-1 j-img-centered jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/66833_pastedImage_10.png" border="0" width="38" height="37" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The One-liner is IPv4 and IPv6 compatible, works on clustered and single gateway environments also within VSX, shows all interface types configured in your firewall object within SmartDashboad, &lt;SPAN&gt;c&lt;/SPAN&gt;&lt;SPAN&gt;o&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;l&lt;/SPAN&gt;&lt;SPAN&gt;o&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;r&lt;/SPAN&gt;&lt;SPAN&gt;s&lt;/SPAN&gt; specific words of the output for easier identification of important settings, adds additional information regarding Address Spoofing setting and mode as well as the topology type of each interface and is of course completely integrated within 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/Enterprise-Appliances-and-Gaia/CLI-Anti-Spoofing-Information/m-p/15663/highlight/true#M1112" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt;.&lt;BR /&gt;&lt;SPAN&gt;Thanks to &lt;A href="https://community.checkpoint.com/migrated-users/42232" target="_blank" rel="noopener"&gt;Norbert Bohusch&lt;/A&gt; for IPv6 support and testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to &lt;A href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/11456" target="_blank" rel="noopener"&gt;Kaspars Zibarts&lt;/A&gt;,&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871" target="_blank" rel="noopener"&gt;Bob Zimmerman&lt;/A&gt;,&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21737" target="_blank" rel="noopener"&gt;Jan Kleinhans&lt;/A&gt;&amp;nbsp;for VSX support and testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to &lt;A href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/30985" target="_blank" rel="noopener"&gt;Anthony Joubaire&lt;/A&gt; for support and testing multiple installation targets.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Feb 2023 17:33:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33204#M2659</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-02-19T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33205#M2660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built something once.&lt;BR /&gt;Depending on the interface, the corresponding networks from the IP spoofing area are displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;More see in this article:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;A _jive_internal="true" class="" data-containerid="2057" data-containertype="14" data-objectid="2990" data-objecttype="102" href="https://community.checkpoint.com/docs/DOC-2990-show-address-spoofing-networks-via-cli"&gt;Show Address Spoofing Networks via CLI &lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First experiment:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;ifconfig -a | grep encap | awk '{print $1}' | grep -v lo | grep -v bond | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second experiment:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;ifconfig -a | grep encap | awk '{print $1}' | grep -v lo | grep -v bond | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq |tr \(\)\&amp;lt;\&amp;gt;\:\" \ '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final version:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ifconfig -a |grep -B 1 inet |grep encap| awk '{print $1}' | grep -v lo | grep -v bond | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq |tr \(\)\&amp;lt;\&amp;gt;\:\" \ '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12px;"&gt;eth0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 10.0.0.0, 10.255.255.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 192.168.1.0, 192.168.1.255&lt;BR /&gt;eth2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 0.0.0.0, 9.255.255.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 11.0.0.0, 126.255.255.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 128.0.0.0, 192.168.41.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 192.168.202.0, 223.255.255.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 192.168.43.0, 192.168.200.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 240.0.0.0, 255.255.255.254&lt;BR /&gt;eth3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 192.168.2.0, 192.168.2.255&lt;BR /&gt;eth5&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 10.172.1.0, 10.172.1.255&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;Can be formatted even better with AWK,TR,SED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px;"&gt;Heiko&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 11:46:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33205#M2660</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-22T11:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33206#M2661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;With IP and netmask:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ifconfig -a |grep -B 1 inet |grep encap| awk '{print $1}' | grep -v lo | grep -v bond | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;more $FWDIR/state/local/FW1/local.set | grep -A 8 %|grep ip| tr \a\d\r\:\(\) \ ;echo -n " mask&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;nbsp; ;ifconfig % | sed -rn "2s/ .*:(.*)$/\1/p";echo " spoofing networks:";more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq |tr \(\)\&amp;lt;\&amp;gt;\:\" \ ;echo " "'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;More see in this article:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;A href="https://community.checkpoint.com/docs/DOC-2990-show-address-spoofing-networks-via-cli" target="_blank"&gt;https://community.checkpoint.com/docs/DOC-2990-show-address-spoofing-networks-via-cli&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Output:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;eth0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; Interface&lt;BR /&gt;&amp;nbsp;ip 10.1.1.251&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; IP&lt;BR /&gt;&amp;nbsp;ip 10.1.1.252&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;mask&amp;nbsp;&amp;nbsp;&amp;nbsp; 255.255.255.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt; Netmask &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;spoofing networks:&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.0.0.0, 10.255.255.255&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; spoofing networks&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 192.168.1.0, 192.168.1.255&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eth2&lt;BR /&gt;&amp;nbsp;ip&amp;nbsp; 1.1.1.211&lt;BR /&gt;&amp;nbsp;ip&amp;nbsp; 1.1.1.212&lt;/P&gt;&lt;P&gt;&amp;nbsp;mask&amp;nbsp;&amp;nbsp;&amp;nbsp; 255.255.255.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;spoofing networks:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0, 9.255.255.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11.0.0.0, 126.255.255.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 128.0.0.0, 192.168.41.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 192.168.220.0, 223.255.255.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 192.168.4.0, 192.168.8.255&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 240.0.0.0, 255.255.255.254&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eth3&lt;BR /&gt;&amp;nbsp;ip&amp;nbsp; 192.168.2.131&lt;BR /&gt;&amp;nbsp;ip&amp;nbsp; 192.168.2.132&lt;/P&gt;&lt;P&gt;&amp;nbsp;mask&amp;nbsp;&amp;nbsp;&amp;nbsp; 255.255.255.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;spoofing networks:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 192.168.2.0, 192.168.2.255&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eth5&lt;BR /&gt;&amp;nbsp;ip&amp;nbsp; 10.172.1.102&lt;BR /&gt;&amp;nbsp;ip 10.172.1.103&lt;/P&gt;&lt;P&gt;&amp;nbsp;mask&amp;nbsp;&amp;nbsp;&amp;nbsp; 255.255.255.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;spoofing networks:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.172.1.0, 10.172.1.255&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;Here two IP addresses are visible, because it is a cluster with vip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2019 09:18:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33206#M2661</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-06-21T09:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33207#M2662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweet!&lt;/P&gt;&lt;P&gt;Does that meet your requirements &lt;A href="https://community.checkpoint.com/migrated-users/41735"&gt;Danny Jung&lt;/A&gt;‌?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 18:41:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33207#M2662</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-06-22T18:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33208#M2663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Denny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2500 points are a bit much 10 while also ok.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;BR /&gt;We all like to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to update the CLI command a little bit this weekend. Maybe there's more you can get out of it.&lt;/P&gt;&lt;P&gt;I think that's very helpful. I would also like to include the routes and separate the VIP and physical IP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 21:18:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33208#M2663</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-22T21:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33209#M2664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your version contains an issue where an interface is still configured in a gateway's topology within SmartDashboard but was deleted on the GAiA OS and is therefore not shown via ifconfig. As your command relies on ifconfig this critical information is not reflected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 07:34:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33209#M2664</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2018-06-25T07:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33210#M2665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #ff0000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;&lt;STRONG&gt;ifconfig -a |grep -B 1 inet |grep encap| awk '{print $1}' | grep -v lo | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;more $FWDIR/state/local/FW1/local.set | grep -A 8 %|grep ip| tr \a\d\r\:\(\) \ ;echo -n " mask&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;nbsp; ;ifconfig % | sed -rn "2s/ .*:(.*)$/\1/p";echo " spoofing networks:";more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq |tr \(\)\&amp;lt;\&amp;gt;\:\" \ ;echo " "'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #000000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;I noticed that the bond interface was not displayed in the old version. Tested it on about 5 firewalls. Everything looks good so far.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;For more infos see in this article with revisions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;A _jive_internal="true" class="" data-containerid="2057" data-containertype="14" data-objectid="2990" data-objecttype="102" href="https://community.checkpoint.com/docs/DOC-2990-show-address-spoofing-networks-via-cli"&gt;Show Address Spoofing Networks via CLI &lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 10:22:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33210#M2665</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-25T10:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33211#M2666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #000000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;&lt;STRONG&gt;Command:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #ff0000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;&lt;STRONG&gt;ifconfig -a |grep -B 1 inet |grep encap| awk '{print $1}' | grep -v lo | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;echo -n "&amp;nbsp;&amp;nbsp; VIP&amp;nbsp;&amp;nbsp;&amp;nbsp; "; cphaprob -a if |grep %|grep -v U|grep -v D | cut -c16-| tr -d "\r\n" ;echo;echo -n "&amp;nbsp;&amp;nbsp; IP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ";ifconfig % | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1;echo -n "&amp;nbsp;&amp;nbsp; Mask&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;nbsp; ;ifconfig % | sed -rn "2s/ .*:(.*)$/\1/p";echo "&amp;nbsp;&amp;nbsp; ADDRESS SPOOFING NETWORKS:";more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq |tr \(\)\&amp;lt;\&amp;gt;\:\" \ ;echo " "'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #ff0000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #000000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;I noticed that the vip and ip interface was not displayed in the old version. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #ff0000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #000000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;Example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #ff0000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: #000000; white-space: normal; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-align: left;"&gt;&lt;IMG __jive_id="66695" class="image-1 jive-image" height="297" src="https://community.checkpoint.com/legacyfs/online/checkpoint/66695_pastedImage_5.png" width="311" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;For more infos see in this article with revisions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;A _jive_internal="true" class="" data-containerid="2057" data-containertype="14" data-objectid="2990" data-objecttype="102" href="https://community.checkpoint.com/docs/DOC-2990-show-address-spoofing-networks-via-cli"&gt;Show Address Spoofing Networks via CLI &lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;-&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 11:36:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33211#M2666</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-25T11:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33212#M2667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope this will be integrated into CCC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 11:52:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33212#M2667</guid>
      <dc:creator>AlekseiShelepov</dc:creator>
      <dc:date>2018-06-25T11:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33213#M2668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And the latest version:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ifconfig -a |grep -B 1 inet |grep encap| awk '{print $1}' | grep -v lo | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;echo -n " VIP "; cphaprob -a if |grep %|grep -v U|grep -v D | cut -c16-| tr -d "\r\n" ;echo;echo -n " IP ";ifconfig % | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1;echo -n " Mask " ;ifconfig % | sed -rn "2s/ .*:(.*)$/\1/p";echo -n " ANTISPOOFING ENABLED: ";more $FWDIR/state/local/FW1/local.set |grep -A 30 % | grep has_addr_info | cut -c17- | tr \) " " |sort -ng| uniq ; echo -n " DETECT=true or PREVENT=false: "; more $FWDIR/state/local/FW1/local.set |grep -A 30 "eth5" | grep monitor_only | cut -c16- | tr \) " " |sort -ng| uniq ;echo " ADDRESS SPOOFING NETWORKS:";more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq |tr \(\)\&amp;lt;\&amp;gt;\:\" \ ;echo " "'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can see the states off:&lt;/P&gt;&lt;P&gt;- ANTISPOOFING ENABLED&lt;/P&gt;&lt;P&gt;- DETECT=true or PREVENT=false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66696" class="image-1 jive-image" height="289" src="https://community.checkpoint.com/legacyfs/online/checkpoint/66696_pastedImage_3.png" width="313" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;For more infos see in this article with revisions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;A _jive_internal="true" data-containerid="2057" data-containertype="14" data-objectid="2990" data-objecttype="102" href="https://community.checkpoint.com/docs/DOC-2990-show-address-spoofing-networks-via-cli"&gt;Show Address Spoofing Networks via CLI &lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Now I need a break. The one-liner make me crazy&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Heiko&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 12:24:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33213#M2668</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-25T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33214#M2669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's talk about some improvements.&lt;/P&gt;&lt;P&gt;Instead of your beginning:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ifconfig -a |grep -B 1 inet |grep encap| awk '{print $1}' | grep -v lo | grep -v ":" | grep -v ^lo‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'd suggest&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;grep -B1 ifindex $FWDIR/state/local/FW1/local.set | sed -n '1~3p' | cut -c 4- | sort | uniq‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;instead to actually reflect the calculated topology from SmartDashboard and not the one that is configured on GAiA OS. Otherwise users will run into issues if the configured interfaces topology in SmartDashboard doesn't match the one ifconfig results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore I'd be of help if your One-liner would&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;would return &lt;STRONG&gt;MODE: Detect&lt;/STRONG&gt; or &lt;STRONG&gt;Mode: Prevent&lt;/STRONG&gt; instead of&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;DETECT=true or PREVENT=false&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also noticed that your One-liner is currently grepping directly for &lt;STRONG&gt;eth5&lt;/STRONG&gt;. This doesn't look correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 02:10:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33214#M2669</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2018-06-26T02:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33215#M2670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the 2500 points. It's a little too much for a one-liner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's a great community and we should all help each other without rewards.&lt;/P&gt;&lt;P&gt;I gave you back 2500 points &lt;IMG __jive_id="66743" height="20" src="https://community.checkpoint.com/legacyfs/online/checkpoint/66743_pastedImage_3.png" style="border: 0px; font-weight: inherit;" width="20" /&gt; for your great work&amp;nbsp;in this article &lt;A href="https://community.checkpoint.com/docs/DOC-2214"&gt;Common Check Point Commands (ccc)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And thanks to everyone who helped to find the great commands for ccc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 07:01:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33215#M2670</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-26T07:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33216#M2671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, of course a &lt;SPAN style="color: #ff0000;"&gt;%&lt;/SPAN&gt; must be used instead of &lt;SPAN style="color: #ff0000;"&gt;eth5&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the right version:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;ifconfig -a |grep -B 1 inet |grep encap| awk '{print $1}' | grep -v lo | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;echo -n " VIP "; cphaprob -a if |grep %|grep -v U|grep -v D | cut -c16-| tr -d "\r\n" ;echo;echo -n " IP ";ifconfig % | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1;echo -n " Mask " ;ifconfig % | sed -rn "2s/ .*:(.*)$/\1/p";echo -n " ANTISPOOFING ENABLED:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ";more $FWDIR/state/local/FW1/local.set |grep -A 30 &lt;SPAN style="color: #ff0000;"&gt;%&lt;/SPAN&gt; | grep has_addr_info | cut -c17- | tr \) " " |sort -ng| uniq ; echo -n " DETECT=true or PREVENT=false: "; more $FWDIR/state/local/FW1/local.set |grep -A 30 % | grep monitor_only | cut -c16- | tr \) " " |sort -ng| uniq ;echo " ADDRESS SPOOFING NETWORKS:";more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq |tr \(\)\&amp;lt;\&amp;gt;\:\" \ ;echo " "'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 07:06:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33216#M2671</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-26T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33217#M2672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the "fw ctl zdebug drop" problem is not solvable because there is no interface mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output from "fw ctl zdebug drop":&lt;/P&gt;&lt;P&gt;;[cpu_1];[fw4_0];fw_log_drop_conn: Packet &amp;lt;dir 1, 1.1.1.2:59655 -&amp;gt; 2.9.2.3:53 IPP 17&amp;gt;, dropped by do_inbound, Reason: Address spoofing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/55229"&gt;Heiko&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 12:07:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33217#M2672</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-26T12:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33218#M2673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm checking on this if we could utilise some "after" event log fetch from log storage but that would be dependent on&amp;nbsp;spoofing being logged actually. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://community.checkpoint.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&amp;nbsp; and it would not be that instantaneous &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 07:31:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33218#M2673</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2018-06-27T07:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33219#M2674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/55229"&gt;Heiko Ankenbrand&lt;/A&gt;‌: I added to output not false/true but PREVENT/DETECT, but encountered another thing, not considered in your one-liner: VLAN Trunks (phy. IFs are also displayed and with all VLAN VIPs/Spoofing Networks)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the altered one-liner and a screenshot with the VLAN trunk issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# ifconfig -a |grep -B 1 inet |grep encap| awk '{print $1}' | grep -v lo | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;echo -n " VIP "; cphaprob -a if |grep %|grep -v U|grep -v D | cut -c16-| tr -d "\r\n" ;echo;echo -n " IP ";ifconfig % | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1;echo -n " Mask " ;ifconfig % | sed -rn "2s/ .*:(.*)$/\1/p";echo -en " ANTISPOOFING ENABLED:\t";more $FWDIR/state/local/FW1/local.set |grep -A 30 % | grep has_addr_info | cut -c17- | tr \) " " |sort -ng| uniq ; echo -en " ANTISPOOFING MODE:\t"; if [ `more $FWDIR/state/local/FW1/local.set |grep -A 30 % | grep monitor_only | cut -c16- | tr \) " " |sort -ng| uniq` ]; then echo "PREVENT"; else echo "DETECT"; fi;echo " ADDRESS SPOOFING NETWORKS:";more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq |tr \(\)\&amp;lt;\&amp;gt;\:\" \ ;echo " "'&lt;/EM&gt;&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/66761_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 07:37:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33219#M2674</guid>
      <dc:creator>Norbert_Bohusch</dc:creator>
      <dc:date>2018-06-27T07:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33220#M2675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Had after 4 hours no more nerves to improve the command &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/55229"&gt;Heiko&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 10:23:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33220#M2675</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-27T10:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33221#M2676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Norbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a smal issue in the one-liner. I had add "|grep -o false".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;ifconfig -a |grep -B 1 inet |grep encap| awk '{print $1}' | grep -v lo | grep -v ":" | grep -v ^lo | xargs -I % sh -c 'echo %;echo -n " VIP "; cphaprob -a if |grep %|grep -v U|grep -v D | cut -c16-| tr -d "\r\n" ;echo;echo -n " IP ";ifconfig % | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1;echo -n " Mask " ;ifconfig % | sed -rn "2s/ .*:(.*)$/\1/p";echo -en " ANTISPOOFING ENABLED:\t";more $FWDIR/state/local/FW1/local.set |grep -A 30 % | grep has_addr_info | cut -c17- | tr \) " " |sort -ng| uniq ; echo -en " ANTISPOOFING MODE:\t"; if [ `more $FWDIR/state/local/FW1/local.set |grep -A 30 % | grep monitor_only | cut -c16- | tr \) " " |sort -ng| uniq&lt;SPAN style="color: #ff0000;"&gt;| &lt;STRONG&gt;grep -o false&lt;/STRONG&gt;&lt;/SPAN&gt;` ]; then echo "PREVENT"; else echo "DETECT"; fi; &lt;SPAN style="color: #ff9900;"&gt;&lt;STRONG&gt;echo -en " ANTISPOOFING TOPO:\t"; if [ `more $FWDIR/state/local/FW1/local.set |grep -A 30 % | grep external | cut -c12- | tr \) " " |sort -ng| uniq| grep -o true` ]; then echo "External"; else echo "Internal"; fi&lt;/STRONG&gt;&lt;/SPAN&gt;;echo " ADDRESS SPOOFING NETWORKS:";more $FWDIR/state/local/FW1/local.set | grep -A 30 %|grep ": (\""|sort -ng| uniq |tr \(\)\&amp;lt;\&amp;gt;\:\" \ ;echo " "'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also added the interface topology setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66769" class="image-3 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/66769_pastedImage_13.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66768" class="image-2 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/66768_pastedImage_12.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is the longest one-liner in the forum &lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/laugh.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;For more infos see in this article with revisions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;A _jive_internal="true" data-containerid="2057" data-containertype="14" data-objectid="2990" data-objecttype="102" href="https://community.checkpoint.com/docs/DOC-2990-show-address-spoofing-networks-via-cli"&gt;Show Address Spoofing Networks via CLI &lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX,&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="55229" data-objecttype="3" href="https://community.checkpoint.com/people/h.ank2614aef2-c5d1-3f73-bbbd-45c59b9e2728"&gt;Heiko&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:24:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33221#M2676</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-27T12:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33222#M2677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can also add more fields.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;:ifindex (3)&lt;BR /&gt;:span_port_interface (false)&lt;BR /&gt;:has_dir_scan_info (true)&lt;BR /&gt;:dir_scan_table (dir_scan_addrs_list4)&lt;BR /&gt;:has_addr_info (true)&lt;BR /&gt;:addr_table (valid_addrs_list4)&lt;BR /&gt;:mgmt_if_id (4)&lt;BR /&gt;:activate_mc_enforce (0)&lt;BR /&gt;:positive_mc_list (0)&lt;BR /&gt;:mc_log (0)&lt;BR /&gt;:overlap_nat (false)&lt;BR /&gt;:overlap_nat_src_addr ()&lt;BR /&gt;:overlap_nat_dst_addr ()&lt;BR /&gt;:overlap_nat_netmask (255.255.255.0)&lt;BR /&gt;:spooftrack (log)&lt;BR /&gt;:monitor_only (false)&lt;BR /&gt;:external (true)&lt;BR /&gt;:internal_type (undefined)&lt;BR /&gt;:access (undefined)&lt;BR /&gt;:dmz (false)&lt;BR /&gt;:mss_value (0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think "spooftrack" is intresting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or routing information of the interface&lt;/P&gt;&lt;P&gt;--&amp;gt; netstat -rn | grep &amp;lt;interface&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want other fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="55229" data-objecttype="3" href="https://community.checkpoint.com/people/h.ank2614aef2-c5d1-3f73-bbbd-45c59b9e2728"&gt;Heiko&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:43:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33222#M2677</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-06-27T12:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner for Address Spoofing Troubleshooting</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33223#M2678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My original version is integrated &lt;A _jive_internal="true" href="https://community.checkpoint.com/docs/DOC-2214-common-check-point-commands-ccc"&gt;within ccc&lt;/A&gt; starting from version 2.5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 09:08:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/One-liner-for-Address-Spoofing-Troubleshooting/m-p/33223#M2678</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2018-06-28T09:08:39Z</dc:date>
    </item>
  </channel>
</rss>

