<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>yurisk.info &#187; Checkpoint NG/NGX</title>
	<atom:link href="http://yurisk.info/category/checkpoint-ngngx/feed/" rel="self" type="application/rss+xml" />
	<link>http://yurisk.info</link>
	<description>Yuri Slobodyanyuk&#039;s blog on IT Security and Networking</description>
	<lastBuildDate>Mon, 16 Apr 2012 17:23:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Check duplex and speed settings of all interfaces in one go</title>
		<link>http://yurisk.info/2012/02/16/check-duplex-and-speed-settings-of-all-interfaces-in-one-go/</link>
		<comments>http://yurisk.info/2012/02/16/check-duplex-and-speed-settings-of-all-interfaces-in-one-go/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 18:36:39 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Awk weekly]]></category>
		<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[awk weekly]]></category>
		<category><![CDATA[Checkpoint]]></category>
		<category><![CDATA[Stories from the trenches]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1834</guid>
		<description><![CDATA[One of the first things you do when checking connectivity issues on the Checkpoint (or any networking gear for that matter) is to see speed and duplex parameters of the interfaces. But have you tried to do it on a firewall with 15-20 interfaces ? No fun entering one by one interfaces&#8217; names. Here is [...]]]></description>
			<content:encoded><![CDATA[<p>One of the first things you do when checking connectivity issues on the Checkpoint (or any networking gear for that matter) is to see speed and duplex parameters of the interfaces. But have you tried to do it on a firewall with 15-20 interfaces ?<br />
No fun entering one by one interfaces&#8217; names. Here is the one-liner I use to get speed and duplex settings of all interfaces in one go.</p>
<p>#<strong> for ii in $(ifconfig | awk &#8216;/Ethernet/ {print $1}&#8217;) ;do ethtool $ii; done | egrep  &#8216;eth|Speed|Duplex&#8217; </strong><br />
Settings for eth0:<br />
Speed: 100Mb/s<br />
Duplex: Full<br />
Settings for eth1:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth1.150:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth1.160:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth1.161:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth1.270:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth1.271:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
<span id="more-1834"></span><br />
Settings for eth1.281:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth1.35:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth2:<br />
Speed: 100Mb/s<br />
Duplex: Full<br />
Settings for eth3:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.112:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.211:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.311:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.71:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.72:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.73:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.413:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.419:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.451:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.407:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth4.408:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth5:<br />
Speed: 1000Mb/s<br />
Duplex: Full<br />
Settings for eth7:<br />
Speed: 1000Mb/s<br />
Duplex: Full</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2012/02/16/check-duplex-and-speed-settings-of-all-interfaces-in-one-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Funny way to expire Antispam license in Checkpoint</title>
		<link>http://yurisk.info/2012/02/13/funny-way-to-expire-antispam-license-in-checkpoint/</link>
		<comments>http://yurisk.info/2012/02/13/funny-way-to-expire-antispam-license-in-checkpoint/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 16:19:35 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[Checkpoint]]></category>
		<category><![CDATA[Stories from the trenches]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1821</guid>
		<description><![CDATA[After years with Checkpoint products I came to conclusion that if you don&#8217;t have logical explanation why something doesn&#8217;t work, it is most probably license issue. My client stopped getting emails behind UTM-132 at some remote branch . Doing the basics &#8211; telnet to port 25 (Checkpoint answered as it should),Exchange answering on port 25 [...]]]></description>
			<content:encoded><![CDATA[<p>After years with Checkpoint products I came to conclusion that if you don&#8217;t have logical explanation why something doesn&#8217;t work, it is most probably license issue.<br />
My client stopped getting emails behind UTM-132 at some remote branch . Doing the basics &#8211; telnet to port 25 (Checkpoint answered as it should),Exchange answering on port 25 as well didn&#8217;t come up with anything.<br />
Then I looked at mail spool in the Checkpoint and voila, all the emails that didn&#8217;t reach internal Exchange were stuck there for no obvious reason.<br />
The reason became obvious when I looked at the SmartTracker and saw &#8220;AntiSpam service license expired&#8221; message . Only then did I recall that this UTM had once Total security license that included the Antispam , but had expired long ago.<br />
Why upon expiring license Checkpoint instead of passing mails without Antispam filtering decided to &#8220;hijack&#8221; the mails is left without answer.</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2012/02/13/funny-way-to-expire-antispam-license-in-checkpoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>awk weekly &#8211; Security rule hits statistics . Checkpoint</title>
		<link>http://yurisk.info/2012/01/31/awk-weekly-rule-hits-statistics-checkpoint/</link>
		<comments>http://yurisk.info/2012/01/31/awk-weekly-rule-hits-statistics-checkpoint/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 08:50:36 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Awk weekly]]></category>
		<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[awk weekly]]></category>
		<category><![CDATA[Checkpoint]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=572</guid>
		<description><![CDATA[As I mentioned before once you export firewall logs into human-readable format you can do lots of interesting things &#8211; for example script that gives statistics of how many times each Security rule was hit . Be aware that this counts explicit Security rules only &#8211; i.e. the ones you see in Security tab of [...]]]></description>
			<content:encoded><![CDATA[<p>As I mentioned before once you export firewall logs into human-readable format you can do lots of interesting things &#8211; for example script that gives statistics of how many times each Security rule was hit .<br />
Be aware that this counts explicit Security rules only &#8211; i.e. the ones you see in Security tab of the Smartdashboard. No other rules you usually see in Smartview Tracker are counted &#8211; e.g. SmartDefense,Web Filtering etc. Also afterwards I sort it by number of hits to see what rules are used most:</p>
<div class="cmd">awk -F\;  &#39; {match($0,/rule: +([0-9]+)/,rules);rule_count[rules[1]]++} END {for (rule_number in rule_count) print &quot; Rule number: &quot;  rule_number &quot; Hits: &quot; rule_count[rule_number]}&#39; ./fw.log.txt | sort -n -k5 </div>
<pre>
Rule number:  Hits: 1197330 <strong> Ignore this line as it counts non-matched lines I dont want to filter with additional conditions and added time processing</strong>
 Rule number: 2 Hits: 9
 Rule number: 5 Hits: 366
 Rule number: 11 Hits: 12296
 Rule number: 9 Hits: 14457
 Rule number: 0 Hits: 17094
 Rule number: 1 Hits: 44066
 Rule number: 7 Hits: 233643
 Rule number: 10 Hits: 366275
 Rule number: 6 Hits: 424639 </pre>
<div class="portant"><strong> Update 2012 </strong> Below is the script to use Rule ID instead of Rule sequential numbers &#8211; this way changing rules order will not affect statistics.  The script matches also non-security rules &#8211; e.g. email session id, that are a bit shorter then Rule ID, but I didn&#8217;t want to slow down the processing with additional formatting .
</div>
<div class="cmd">
awk -F\;  &#39; {match($0,/{([[:print:]]+)}/,rules);rule_count[rules[1]]++} END {for (rule_number in rule_count) print &quot; Rule number: &quot;  rule_number &quot; Hits: &quot; rule_count[rule_number]}&#39; ./fw.log.txt | sort -n -k5 </div>
<pre>
Rule number: D199972C-ED3E-4EB4-8B83-813333156D18 Hits: 175
 Rule number: 85A905A7-951E-4100-A4BA-E13333151D29 Hits: 219
 Rule number: 81333316-E942-4313-BB7D-E1333315802F Hits: 1519
 Rule number: 71333215-2DB5-4A3A-95BC-5080AD0F5564 Hits: 2298
 Rule number: 11331315-AE52-44E0-A42A-711029B5768E Hits: 3755
 Rule number: 01333315-D290-4B05-AFE7-23BF24D889FF Hits: 4116
 Rule number: 121FA62F-3885-4328-8090-BF1333315eB1 Hits: 399793
 Rule number: FE40E076-BAEB-4979-8E41-5EF1333315e6 Hits: 440101
 Rule number: BB3F6772-4D38-4D5A-952A-301333315de8 Hits: 1354341
Running time for a file of 900 Mb with 4.7 million records
real    5m50.287s
user    4m22.890s
sys     0m3.190s
</pre>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2012/01/31/awk-weekly-rule-hits-statistics-checkpoint/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Time-based access limiting on Checkpoint or any Linux for that matter</title>
		<link>http://yurisk.info/2011/11/14/time-based-access-limiting-on-checkpoint-or-any-linux-for-that-matter/</link>
		<comments>http://yurisk.info/2011/11/14/time-based-access-limiting-on-checkpoint-or-any-linux-for-that-matter/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 21:08:16 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Checkpoint]]></category>
		<category><![CDATA[Stories from the trenches]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1776</guid>
		<description><![CDATA[Time-based access-lists in Cisco world are available since &#8230; last century for sure. But is it possible that Linux doesn&#8217;t have anything like that ? No way &#8211; of course it can do and do it better. Here is how . Access control based on time of the day is available via pam module, and [...]]]></description>
			<content:encoded><![CDATA[<p>Time-based access-lists in Cisco world are available since &#8230; last century for sure. But is it possible that Linux doesn&#8217;t have anything like that ? No way &#8211; of course it can do and do it better. Here is how .<br />
Access control based on time of the day is available via pam module, and as almost all software today supports working with pam modules, it means it is available universally.<br />
Steps to do it are these:</p>
<ul>
<li> Enable pam_time.so module for the software of interest in its config file in /etc/pam.d ;</li>
<li> Configure time range(s) when this service is accepting connections using file /etc/security/time.conf
<li> Most probably restart the service and we are set. </li>
<p>E.g. Let&#8217;s restrict user ftp_user so that it is able to connect to vsftpd daemon only during working hours of the weekdays.<br />
- Add to file /etc/pam.d/vsftpd the following line<br />
   <strong> account     required    /lib/security/pam_time.so </strong><br />
- Set time limits in /etc/security/time.conf with this line<br />
    <strong> vsftpd;*;ftp_user;Wk0800-1700 </strong><br />
- Restart vsftpd to force it using pam_time.so module (need to do it just first time)<br />
  <strong> #service vsftpd restart </strong><br />
And now during the off-limit hours the ftp_user will not be able to connect by FTP, that is it .</p>
<p>For Checkpoint all the above holds true, but as you don&#8217;t have much servers there , the most probable candidate for such restrictions is ssh daemon. For example firewall that the client has access by ssh to it as well &#8211; while mail alerts for such access (see <a href="http://yurisk.info/2010/02/01/mail-alert-on-ssh-login-or-any-other-rule-hit-in-checkpoint/"> Mail alert on ssh access in Checkpoint</a>) will warn me about such access, it does me no good if someone on client side accesses the firewall at 02:00 am at night and I get alert . But if it happens during working hours only, I can see such alert and act in real time.<br />
Example for limiting ssh access to the firewall to working hours only.<br />
<strong>/etc/security/time.conf : </strong><br />
  sshd;*;client_user;Wk0900-1900<br />
<strong>/etc/pam.d/sshd :</strong><br />
 account    required    /lib/security/pam_time.so</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/11/14/time-based-access-limiting-on-checkpoint-or-any-linux-for-that-matter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Set NTP time source on Checkpoint to have correct log timestamps</title>
		<link>http://yurisk.info/2011/11/12/set-ntp-time-source-on-checkpoint-to-have-correct-log-timestamps/</link>
		<comments>http://yurisk.info/2011/11/12/set-ntp-time-source-on-checkpoint-to-have-correct-log-timestamps/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 17:29:44 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[Checkpoint]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1770</guid>
		<description><![CDATA[It is hard to argue that logs are as good as correct they are. And correct timestamps of the logs are crucial to this. Internal clock is prone to drifting with time, in my experience I&#8217;ve seen some UTM appliances to drift as much as 40 minutes in just one year ! Even worse is [...]]]></description>
			<content:encoded><![CDATA[<p>It is hard to argue that logs are as good as correct they are. And correct timestamps of the logs are crucial to this. Internal clock is prone to drifting with time, in my  experience I&#8217;ve seen some UTM appliances to drift as much as 40 minutes in just one year !  Even worse  is that you can never be sure of the drift distribution over time &#8211; it may be incremental drift every day, or sudden jump due to who knows what. <br />
To prevent this from happening I use NTP time synchronization on all of my servers/firewalls. If you have been in system administration for some time it is old news for you &#8211; just use ntpd daemon and pool.ntp.org servers located close to you, and you are set in 5 minutes.<br />
In Checkpoint they took the hardening of the  underlying OS to extreme and supplied only outdated ntpdate utility for the task, no ntpd for us.<br />
Not a big deal &#8211; I use the cron job below to run every 30 minutes ntpdate to update the firewall clock and so better be you.<br />
Cheers<br />
<strong> 30 * * * * /usr/sbin/ntpdate 1.uk.pool.ntp.org > dev/null </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/11/12/set-ntp-time-source-on-checkpoint-to-have-correct-log-timestamps/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>All you need to know about networking in Checkpoint firewall SecurePlatform FAQ</title>
		<link>http://yurisk.info/2011/10/27/all-you-need-to-know-about-networking-in-checkpoint-firewall-secureplatform-faq/</link>
		<comments>http://yurisk.info/2011/10/27/all-you-need-to-know-about-networking-in-checkpoint-firewall-secureplatform-faq/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 11:32:13 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[cheat sheet]]></category>
		<category><![CDATA[Checkpoint]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1738</guid>
		<description><![CDATA[Q. How do I see available interfaces, errors on them , IP addresses . Q. How do I see routing table of the firewall. Q. How do I see duplex, speed, physical link status of the interface . Q. How do I manually set duplex, speed, autonegotiation settings of an interface. Q. How do I [...]]]></description>
			<content:encoded><![CDATA[<p> <a href="#Q1">Q. How do I see available interfaces, errors on them , IP addresses .</a><br />
 <a href="#Q2">Q. How do I see routing table of the firewall.</a><br />
 <a href="#Q3">Q. How do I see duplex, speed, physical link status of the interface .</a><br />
 <a href="#Q4">Q. How do I manually set duplex, speed, autonegotiation settings of an interface.</a><br />
 <a href="#Q5">Q. How do I save changes to the interface duplex ,speed or autonegotiaiton permanently.</a><br />
 <a href="#Q6">Q. How do I add, delete, change routes.</a><br />
 <a href="#Q7">Q. How do I delete, change IP address on the interface.</a><br />
 <a href="#Q8">Q. How do I add, change, delete VLAN .</a><br />
 <a href="#Q9">Q. How do I see existing VLANs .</a><br />
 <a href="#Q10">Q. Can I combine few interfaces into one logical interface .</a><br />
<a href="#Q11">Q. How do I shut and unshut an interface.</a></p>
<div class="cmd"><a name="Q1">Q. How do I see available interfaces, errors on them , IP addresses .</a></div>
<p> A. # ifconfig</p>
<div class="cmd"><a name="Q2">Q. How do I see routing table of the firewall.</a></div>
<p> A. # route -en</p>
<pre>Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
19.247.195.20   0.0.0.0         255.255.255.252 U         0 0          0 External
10.123.123.0    0.0.0.0         255.255.255.224 U         0 0          0 Lan1
</pre>
<p>Legend:<br />
   Gateway &#8211; via which gateway this network is available, 0.0.0.0 means this network is  configured locally on the interface<br />
   Iface &#8211; name of the interface via which this network is reachable</p>
<div class="cmd"><a name="Q3">Q. How do I see duplex, speed, physical link status of the interface .</a></div>
<p> A. # ethtool &lt;name of the interface you want to check, names are case-sensitive><br />
    e.g. # ethtool External<br />
Settings for External:<br />
        Supported ports: [ TP MII ]<br />
        Supported link modes:   10baseT/Half 10baseT/Full<br />
                                100baseT/Half 100baseT/Full<br />
        Supports auto-negotiation: Yes<br />
        Advertised link modes:  10baseT/Half 10baseT/Full<br />
                                100baseT/Half 100baseT/Full<br />
        Advertised auto-negotiation: Yes<br />
        Speed: 100Mb/s<br />
        Duplex: Full<br />
        Port: MII<br />
        PHYAD: 1<br />
        Transceiver: internal<br />
        Auto-negotiation: on<br />
        Supports Wake-on: g<br />
        Wake-on: g<br />
        Current message level: 0&#215;00000007 (7)<br />
        Link detected: yes</p>
<div class="cmd"><a name="Q4">Q. How do I manually set duplex, speed, autonegotiation settings of an interface.</a></div>
<p> A. # ethtool -s &lt;name of interface&gt; speed 100<br />
      ethtool -s &lt;name of interface&gt; duplex full<br />
      ethtool -s &lt;name of interface&gt; autoneg off<br />
 IMPORTANT: the changes above will be active until reboot of the firewall, to set them<br />
  permanently see below.</p>
<div class="cmd"><a name="Q5">Q. How do I save changes to the interface duplex ,speed or autonegotiaiton permanently.</a></div>
<p> A. # eth_set &lt;interface&gt; [10h|10f|100h|100f|1000h|1000f|autoneg]<br />
   e.g # eth_set Lan1 100f</p>
<div class="cmd"><a name="Q6">Q. How do I add, delete, change routes.</a></div>
<p> A. Using #sysconfig   utility and its interactive menu (option 6) .</p>
<div class="cmd"><a name="Q7">Q. How do I delete, change IP address on the interface</a></div>
<p> A. # sysconfig then option 5 .</p>
<div class="cmd"><a name="Q8">Q. How do I add, change, delete VLAN .</a></div>
<p> A. # sysconfig , then option 5 .</p>
<div class="cmd"><a name="Q9">Q. How do I see existing VLANs .</a></div>
<p> A  Either via #sysconfig , then option 5 or ifconfig, VLAN interfaces will have format of   &lt;physical interface name&gt;.&lt;vlan number&gt; .<br />
    e.g. # ifconfig<br />
    eth7.301    Link encap:Ethernet  HWaddr 00:1B:4A:CF:26:71</p>
<div class="cmd"><a name="Q10">Q. Can I combine few interfaces into one logical interface .</a></div>
<p> A. Yes , such interface is called Bond. Note that out of all interfaces added to the Bond interface, only one will be active and passing the traffic, the rest will be in standby  mode in case active interface fails.<br />
NOTE 2 In new versions it is possible to have bond in Load Sharing mode.</p>
<div class="cmd"><a name="Q11">Q. How do I shut and unshut an interface. </a></div>
<p>A. #ifconfig &lt;interface name &gt; down<br />
    # ifconfig &lt;interface name &gt; up</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/10/27/all-you-need-to-know-about-networking-in-checkpoint-firewall-secureplatform-faq/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enable RADIUS Authentication for SSH and WEBGui access to the Checkpoint firewall</title>
		<link>http://yurisk.info/2011/08/02/enable-radius-authentication-for-ssh-and-webgui-access-to-the-checkpoint-firewall/</link>
		<comments>http://yurisk.info/2011/08/02/enable-radius-authentication-for-ssh-and-webgui-access-to-the-checkpoint-firewall/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 06:58:29 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[Checkpoint]]></category>
		<category><![CDATA[Video How-to]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1680</guid>
		<description><![CDATA[User actions accountability is one of the building blocks of Non-repudiation in Security. In Checkpoint , nevertheless, the default (and widely used) user authentication for SSH and WEBGui sessions is local. Actually Checkpoint thought about that long ago and have been offering Radius authentication for users accessing the SecurePlatform via SSH or WEBgui for quite [...]]]></description>
			<content:encoded><![CDATA[<p>User actions accountability is one of the building blocks of Non-repudiation  in  Security.<br />
In Checkpoint , nevertheless, the default (and widely used) user authentication for SSH and WEBGui sessions  is local. Actually Checkpoint thought about that long ago and have been offering Radius authentication for users accessing the SecurePlatform via SSH or WEBgui for quite long time. I&#8217;ll put the discussion why they did it as a separately priced feature aside. <br />
But if you have SecurePlatform Pro license for NGX R65 or earlier or Advanced Networking Blade for R70 or later then you can use it once Pro features are enabled on the SPLAT.<br />
To help you configuring this I recorded this video , so be secure and enjoy.<br />
PS As always feedback is welcome here as well as to the email yuri@yurisk.info.<br />
Direct <a href="http://vimeo.com/27166040"> link to Vimeo </a> </p>
<p><iframe src="http://player.vimeo.com/video/27166040" width="500" height="281" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/08/02/enable-radius-authentication-for-ssh-and-webgui-access-to-the-checkpoint-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable SNMP v3 in Checkpoint video walkthrough</title>
		<link>http://yurisk.info/2011/04/28/enable-snmp-v3-in-checkpoint-walkthrough/</link>
		<comments>http://yurisk.info/2011/04/28/enable-snmp-v3-in-checkpoint-walkthrough/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 07:25:16 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[Checkpoint]]></category>
		<category><![CDATA[Video How-to]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1643</guid>
		<description><![CDATA[SNMP version 3 has been with us for so many years but so very few Checkpoint folks use it that I decided to do this screencast/video showing how to enable and use SNMP v3 in Checkpoint firewall. NOTE - the language of narration is Hebrew . BTW I think of posting more videos like that . All [...]]]></description>
			<content:encoded><![CDATA[<p>SNMP version 3 has been with us for so many years but so very few Checkpoint folks use it that I decided to do this screencast/video showing how to enable and use SNMP v3 in Checkpoint firewall. NOTE - the language of narration is Hebrew .</p>
<p><iframe src="http://player.vimeo.com/video/22473169" width="500" height="300" frameborder="0"></iframe></p>
<p>BTW I think of posting more videos like that . All of them will be available under  <a href="http://vimeo.com/yurisk">http://vimeo.com/yurisk</a></p>
<p>BTW2 If you have free user in Vimeo.com you can download the videos as files as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/04/28/enable-snmp-v3-in-checkpoint-walkthrough/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Two tips to secure SSH access from specific IPs to specific users in Checkpoint or any Linux</title>
		<link>http://yurisk.info/2011/04/05/two-tips-to-secure-ssh-access-from-specific-ips-to-specific-users-in-checkpoint-or-any-linux/</link>
		<comments>http://yurisk.info/2011/04/05/two-tips-to-secure-ssh-access-from-specific-ips-to-specific-users-in-checkpoint-or-any-linux/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 07:06:06 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Checkpoint]]></category>
		<category><![CDATA[Stories from the trenches]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1636</guid>
		<description><![CDATA[Today I&#8217;ll bring you two tips to secure SSH access to the Checkpoint firewall beyond firewall rules itself. SSH access is the most powerful way to own the firewall so it should be secured to the paranoid level and even then it is never enough. Tip 1 Change the listening port.You may say obscurity is [...]]]></description>
			<content:encoded><![CDATA[<p>Today I&#8217;ll bring you two tips to secure SSH access to the Checkpoint firewall beyond firewall rules itself. SSH access is the most powerful way to own the firewall so it should be secured to the paranoid level and even then it is never enough.<br />
 <strong>Tip 1 Change the listening port.</strong><br />You may say obscurity is not security but I will not agree &#8211; any measure that makes attacking your system harder without much burden on you is valid. After all there is no such thing total security, only endless arms race. Checkpoint just being a Linux in disguise uses OPenSSH server so changing the port is done via :<br />NOTE before changing listening port don&#8217;t forget to allow incoming connection on this port in firewall rules.</p>
<div class="cmdout">/etc/ssh/sshd_config<br />#Port 22</div>
<p>You change the above line to (if say I want to change port to 5022):</p>
<div class="cmdout">Port 5022 </div>
<p>Then save , then restart the SSH daemon:</p>
<div class="cmd">[Expert@fireball]# service sshd restart</div>
<p>Now you connect to the firewall <strong>#ssh -p 5022 user@IP</strong><br />
<strong>Tip 2 Limit SSH access per user and per IP address</strong><br />
Openssh provides the possibility to restrict access for specific user to specific IP addresses. I will look here at few potential scenarios.<br />
<strong>Case 1 Limit all SSH users to access from specific IP </strong>, here from network 99.19.19.0/24:<br />
At the bottom of the same file /etc/ssh/sshd_config I add:</p>
<div class="cmdout">AllowUsers *@99.19.19.*</div>
<p>Save , restart SSH daemon and this will take effect &#8211; only users coming from network<br />
99.19.19.0/24  will be able to login by ssh , any other source IP will always get &#8220;Wrong username or password&#8221; <br />
<strong>Case 2  Limit some users to access from specific IPs but allow others from Any.</strong><br />
Checkpoint comes with default user admin that people often do not change, and I concluded over the years that changing people&#8217;s bad behavior  is much harder than changing firewalls. So I do this:<br />
When both me and client are managing the firewall, i create the username for me , here yurisk and restrict the username admin to internal nets (for emergency cases) and his specific IP.Here my user is yurisk, client&#8217;s user is admin and LAN is 10.88.88.0/24 and client&#8217;s WAN IP is 123.123.123.10</p>
<div class="cmdout">/etc/ssh/sshd_config <br />
AllowUsers  admin@123.123.123.10 admin@10.88.88.*  yurisk</div>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/04/05/two-tips-to-secure-ssh-access-from-specific-ips-to-specific-users-in-checkpoint-or-any-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checkpoint firewall VPN debug cheat sheet</title>
		<link>http://yurisk.info/2011/03/23/checkpoint-firewall-vpn-debug-cheat-sheet/</link>
		<comments>http://yurisk.info/2011/03/23/checkpoint-firewall-vpn-debug-cheat-sheet/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 07:52:51 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Checkpoint NG/NGX]]></category>
		<category><![CDATA[cheat sheet]]></category>
		<category><![CDATA[Checkpoint]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1537</guid>
		<description><![CDATA[I love cheat sheets. Once I learn some product or technology to the level of understanding how it works I find the cheat sheets with all the options to run it and keep it handy. In case of the Checkpoint firewalls such cheat sheets are pretty much absent so I will throw from time to [...]]]></description>
			<content:encoded><![CDATA[<p>I love cheat sheets. Once I learn some product or technology to the level of understanding how it works I find the cheat sheets with all the options to run it and keep it handy. In case of the Checkpoint firewalls such cheat sheets are pretty much absent so I will throw from time to time here cheat sheets from me.<br />
NB And to those claiming you need to know (read &#8211; memorize) everything, send them to Albert Einstein quote that when asked what  the speed of light is, answered &#8220;I don&#8217;t memorize things that can be found in any reference&#8221;.<br />
Today I&#8217;ll do VPN debug , basic stuff, no thrills. But we all started somewhere.<br />
<a href='http://yurisk.info/wp-content/uploads/2011/03/VPN_DEBUG_cheat_sheet.pdf'>Checkpoint VPN debug cheat sheet</a><br />
<div id="attachment_1591" class="wp-caption alignleft" style="width: 160px"><a href="http://yurisk.info/VPN_debug_cheat_sheet_p1.png"><img src="http://yurisk.info/wp-content/uploads/2011/03/VPN_debug_cheat_sheet_p1-150x150.png" alt="Checkpoint VPN debug cheat sheet , page 1" title="VPN_debug_cheat_sheet_p1" width="150" height="150" class="size-thumbnail wp-image-1591" /></a><p class="wp-caption-text">Checkpoint VPN debug cheat sheet , page 1</p></div><br />
<div id="attachment_1592" class="wp-caption alignleft" style="width: 160px"><a href="http://yurisk.info/VPN_debug_cheat_sheet_p2.png"><img src="http://yurisk.info/wp-content/uploads/2011/03/VPN_debug_cheat_sheet_p2-150x150.png" alt="Checkpoint VPN debug cheat sheet , page 2" title="VPN_debug_cheat_sheet_p2" width="150" height="150" class="size-thumbnail wp-image-1592" /></a><p class="wp-caption-text">Checkpoint VPN debug cheat sheet , page 2</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/03/23/checkpoint-firewall-vpn-debug-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

