<?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; Yuri</title>
	<atom:link href="http://yurisk.info/author/Author/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>How to enroll VPN client with IOS CA</title>
		<link>http://yurisk.info/2012/04/16/how-to-enroll-vpn-client-with-ios-ca/</link>
		<comments>http://yurisk.info/2012/04/16/how-to-enroll-vpn-client-with-ios-ca/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 17:23:20 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IOS Cisco]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1848</guid>
		<description><![CDATA[If you didn&#8217;t notice Cisco IOS routers can serve as CA servers as well. The example configurations are easy to find on the cisco.com but the only trick to know when enrolling Cisco VPN client with IOS CA is the syntax you put as url &#8211; the string should look: http://192.182.12.1:80/cgi-bin/pkiclient.exe I attach below screenshot [...]]]></description>
			<content:encoded><![CDATA[<p>If you didn&#8217;t notice Cisco IOS routers can serve as CA servers as well. The example configurations are easy to find on the cisco.com but the only trick to know when enrolling Cisco VPN client with IOS CA is the syntax you put as url &#8211; the string should look:<br />
<strong> http://192.182.12.1:80/cgi-bin/pkiclient.exe</strong><br />
I attach below screenshot so you can see what I mean.<br />
Some references as well .<br />
<a href="http://www.cisco.com/en/US/docs/ios/sec_secure_connectivity/configuration/guide/sec_cfg_mng_cert_serv_ps6441_TSD_Products_Configuration_Guide_Chapter.html" target=_blank> www.cisco.com </a> <br /><a href="http://ieoc.com/forums/t/12071.aspx" target=_blank>ieoc.com/forums/t/12071.aspx</a><br />
<div id="attachment_1851" class="wp-caption aligncenter" style="width: 160px"><a href="http://yurisk.info/wp-content/uploads/2012/04/certenrol.png"><img src="http://yurisk.info/wp-content/uploads/2012/04/certenrol-150x150.png" alt="URL to use when enrolling with Cisco CA" title="CA enrol with Cisco router" width="150" height="150" class="size-thumbnail wp-image-1851" /></a><p class="wp-caption-text">PKI client enrol with cisco CA</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2012/04/16/how-to-enroll-vpn-client-with-ios-ca/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Finally GEO location blocking has arrived to Fortigate</title>
		<link>http://yurisk.info/2012/02/09/finally-geo-location-blocking-has-arrived-to-fortigate/</link>
		<comments>http://yurisk.info/2012/02/09/finally-geo-location-blocking-has-arrived-to-fortigate/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 18:35:47 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Fortigate]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1810</guid>
		<description><![CDATA[It was predictable thing for Fortinet to do as everyone else has already been doing so. I haven’t verified myself but according to the informed source (can only say his name &#8211; Hen) they are using Maxmind database . So let’s see how to do it . First you create in New Address dialog window [...]]]></description>
			<content:encoded><![CDATA[<p>It was predictable thing for Fortinet to do as everyone else has already been doing so.<br />
I haven’t verified myself but according to the informed source (can only say his name &#8211; Hen) they are using<br />
<a "href=http://www.maxmind.com/"> Maxmind database</a> . So let’s see how to do it .<br />
First you create in New Address dialog window the Geography type object specifying the country. As you can only pick one country per address use Address Groups to combine few countries together.<br />
After creating such Address object you can use it in Firewall Policy just as you would the usual Address.<br />
Personal Note: While there is an ongoing fuss/hysteria about the cyberwar being waged that started 2 weeks ago when Saudi “hackers” DDOS’ed few Israel websites, from what I see in the field it is more of a FUD campaign, one of the byproducts of which is rush of many website owners in Israel to block Saudi Arabia IPs (or any Arabic world IPs for that matter). What happened in fact was that most of DDOS came from anywhere but Arab world (Russia, China,US) , from botnets-for-hire.<br />
The only reason I can think of why you would use Geo location block is to lower noise/size of logs by silently dropping traffic from unwanted countries.<br />

<a href='http://yurisk.info/2012/02/09/finally-geo-location-blocking-has-arrived-to-fortigate/fortigate_geolocation1/' title='Fortigate_geolocation1'><img width="150" height="150" src="http://yurisk.info/wp-content/uploads/2012/02/Fortigate_geolocation1-150x150.png" class="attachment-thumbnail" alt="Fortigate_geolocation1" title="Fortigate_geolocation1" /></a>
<a href='http://yurisk.info/2012/02/09/finally-geo-location-blocking-has-arrived-to-fortigate/fortigate_geolocation2/' title='Fortigate_geolocation2'><img width="150" height="150" src="http://yurisk.info/wp-content/uploads/2012/02/Fortigate_geolocation2-150x150.png" class="attachment-thumbnail" alt="Fortigate_geolocation2" title="Fortigate_geolocation2" /></a>
<a href='http://yurisk.info/2012/02/09/finally-geo-location-blocking-has-arrived-to-fortigate/fortigate_geolocation3/' title='Fortigate_geolocation3'><img width="150" height="150" src="http://yurisk.info/wp-content/uploads/2012/02/Fortigate_geolocation3-150x150.png" class="attachment-thumbnail" alt="Fortigate_geolocation3" title="Fortigate_geolocation3" /></a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2012/02/09/finally-geo-location-blocking-has-arrived-to-fortigate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert Fortigate  diagnose sniffer packet output into tcpdump format understood by Wireshark</title>
		<link>http://yurisk.info/2012/02/06/convert-fortigate-diagnose-sniffer-packet-output-into-tcpdump-format-understood-by-wireshark/</link>
		<comments>http://yurisk.info/2012/02/06/convert-fortigate-diagnose-sniffer-packet-output-into-tcpdump-format-understood-by-wireshark/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 18:06:31 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Fortigate]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1803</guid>
		<description><![CDATA[Running diagnose sniffer packet on Fortinet Fortigate unit outputs human-readable packet information and packet data . Only that sometimes you would like to have the traffic sniffed at Fortigate in Wireshark-readable format so that it can be analyzed by all powerful Wireshark. For this case Fortinet came up with the script and application that takes [...]]]></description>
			<content:encoded><![CDATA[<p>Running <strong> diagnose sniffer packet</strong> on Fortinet Fortigate unit outputs human-readable packet information and packet data . Only that sometimes you would like to have the traffic sniffed at Fortigate in Wireshark-readable format so that it can be analyzed by all powerful Wireshark.<br />
For this case Fortinet came up with the script and application that takes text output of this sniffer command and parses it into tcpdump format (.cap) which you can later open in Wireshark.<br />
I guess there are other scripts available that do just that (after all it is just parsing the text file) , but from Fortinet you can find it here:<br />
<a href="http://kb.fortinet.com/kb/viewContent.do?externalId=11186&#038;sliceId=1">kb.fortinet.com/kb/viewContent.do?externalId=11186&#038;sliceId=1</a> </p>
<p>Or by searching their website for<br />
<strong>fgt2eth.pl<br />
fgt2eth.zip</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2012/02/06/convert-fortigate-diagnose-sniffer-packet-output-into-tcpdump-format-understood-by-wireshark/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 2 factor authentication to protect your Gmail account if you have not done so already</title>
		<link>http://yurisk.info/2011/10/26/enable-2-factor-authentication-to-protect-your-gmail-account-if-you-have-not-done-so/</link>
		<comments>http://yurisk.info/2011/10/26/enable-2-factor-authentication-to-protect-your-gmail-account-if-you-have-not-done-so/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 11:34:42 +0000</pubDate>
		<dc:creator>Yuri</dc:creator>
				<category><![CDATA[Scan of the week]]></category>
		<category><![CDATA[Stay safe online]]></category>
		<category><![CDATA[Stories from the trenches]]></category>

		<guid isPermaLink="false">http://yurisk.info/?p=1728</guid>
		<description><![CDATA[Today i did an improvised poll at work who is using the 2 factor authentication with their Gmail mail account and got only one positive answer &#8211; me . The question was in turn inspired by the article in Atlantic Monthly where James Fallows depicts in detail his wife&#8217;s Gmail account being hacked and how [...]]]></description>
			<content:encoded><![CDATA[<p>Today i did an improvised poll at work who is using the 2 factor authentication with their Gmail mail account and got only one positive answer &#8211; me <img src='http://yurisk.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . The question was in turn inspired by the article in Atlantic Monthly where <a href="http://www.theatlantic.com/magazine/archive/2011/11/hacked/8673/1/<br />
" target=_blank> James Fallows </a> depicts in detail his wife&#8217;s Gmail account being hacked and how much trouble it was to get it back. I can only add that not using absolutely free and easy feature to safeguard your precious asset, mail account &#8211; is pretty reckless in our time . Just imagine what it would  be to have ALL your Gmail inbox emptied and have your access to the account lost due to a hack &#8230;<br />
I&#8217;ve always known that the best way to solve the problems is to prevent them from occurring at all, so go ahead and use this Gmail feature and have less problems in life to solve .<br />
My personal experience of few months is that it works with any mobile provider in Israel and it is pretty much &#8216; set and forget &#8216; type of configuration, just be able to receive once a month SMS , it can&#8217;t  be any easier I guess.<br />
<a href="http://googleblog.blogspot.com/2011/02/advanced-sign-in-security-for-your.html" target=_blank > Advanced sign-in security for your Google account  </a></p>
]]></content:encoded>
			<wfw:commentRss>http://yurisk.info/2011/10/26/enable-2-factor-authentication-to-protect-your-gmail-account-if-you-have-not-done-so/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

